- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 325 for parg (0.42 sec)
-
src/runtime/testdata/testprogcgo/tracebackctxt_c.c
if (arg->context == 0) { arg->context = 1; } } void tcTraceback(void* parg) { int base, i; struct cgoTracebackArg* arg = (struct cgoTracebackArg*)(parg); if (arg->context == 0 && arg->sigContext == 0) { // This shouldn't happen in this program. abort(); } // Return a variable number of PC values. base = arg->context << 8; for (i = 0; i < arg->context; i++) { if (i < arg->max) { arg->buf[i] = base + i;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 29 15:30:38 UTC 2021 - 2.3K bytes - Viewed (0) -
src/runtime/testdata/testprogcgo/pprof.go
// since runtime/pprof ignores the runtime.goexit base frame if it exists. void pprofCgoTraceback(void* parg) { struct cgoTracebackArg* arg = (struct cgoTracebackArg*)(parg); arg->buf[0] = (uintptr_t)(cpuHog) + 0x10; arg->buf[1] = (uintptr_t)(cpuHog2) + 0x4; arg->buf[2] = 0; } */ import "C" import ( "fmt" "os" "runtime" "runtime/pprof" "time" "unsafe" )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 12 19:45:58 UTC 2021 - 1.7K bytes - Viewed (0) -
src/runtime/testdata/testprogcgo/traceback_c.c
uintptr_t data; }; void cgoTraceback(void* parg) { struct cgoTracebackArg* arg = (struct cgoTracebackArg*)(parg); arg->buf[0] = 1; arg->buf[1] = 2; arg->buf[2] = 3; arg->buf[3] = 0; } void cgoSymbolizer(void* parg) { struct cgoSymbolizerArg* arg = (struct cgoSymbolizerArg*)(parg); if (arg->pc != arg->data + 1) { arg->file = "unexpected data"; } else { arg->file = "cgo symbolizer"; }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 24 21:47:44 UTC 2020 - 1.2K bytes - Viewed (0) -
src/runtime/pprof/testdata/mappingtest/main.go
uintptr_t context; uintptr_t sigContext; uintptr_t *buf; uintptr_t max; }; void CollectCgoTraceback(void* parg) { struct CgoTracebackArg* arg = (struct CgoTracebackArg*)(parg); arg->buf[0] = (uintptr_t)(CPUHogCFunction0); arg->buf[1] = (uintptr_t)(CPUHogCFunction); arg->buf[2] = 0; }; */ import "C" import ( "log" "os" "runtime" "runtime/pprof" "time" "unsafe" )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 08 02:40:04 UTC 2019 - 2K bytes - Viewed (0) -
ci/official/containers/linux_arm64/builder.devtoolset/rpm-patch.sh
grep '%patch' "${SPEC}" |while read cmd ; do N=$(echo "${cmd}" |sed 's,%patch\([0-9]\+\).*,\1,') file=$(grep "Patch$N:" "${SPEC}" |sed 's,.*: ,,') parg=$(echo "${cmd}" |sed 's,.*\(-p[0-9]\).*,\1,') if [[ ! "${file}" =~ doxygen && "${cmd}" != \#* ]]; then echo "patch ${parg} -s < ${file}" patch ${parg} -s < "${file}" fi
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Sep 18 14:52:45 UTC 2023 - 1.1K bytes - Viewed (0) -
src/runtime/testdata/testprogcgo/gprof.go
// license that can be found in the LICENSE file. package main // Test taking a goroutine profile with C traceback. /* // Defined in gprof_c.c. void CallGoSleep(void); void gprofCgoTraceback(void* parg); void gprofCgoContext(void* parg); */ import "C" import ( "fmt" "io" "runtime" "runtime/pprof" "time" "unsafe" ) func init() { register("GoroutineProfile", GoroutineProfile) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 11 15:34:02 UTC 2021 - 868 bytes - Viewed (0) -
src/runtime/testdata/testprogcgo/traceback.go
/* #cgo CFLAGS: -g -O0 // Defined in traceback_c.c. extern int crashInGo; int tracebackF1(void); void cgoTraceback(void* parg); void cgoSymbolizer(void* parg); */ import "C" import ( "runtime" "unsafe" ) func init() { register("CrashTraceback", CrashTraceback) register("CrashTracebackGo", CrashTracebackGo) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 24 21:47:44 UTC 2020 - 949 bytes - Viewed (0) -
src/runtime/testdata/testprogcgo/raceprof.go
// size of the hash table (1 << 10) and knows that the hash function // is simply multiplicative. void raceprofTraceback(void* parg) { struct cgoTracebackArg* arg = (struct cgoTracebackArg*)(parg); raceprofCount++; arg->buf[0] = raceprofCount * (1 << 10); arg->buf[1] = 0; } static void* raceprofThread(void* p) { int i; for (i = 0; i < 100; i++) { pthread_kill(pthread_self(), SIGPROF);
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 24 18:13:14 UTC 2023 - 1.7K bytes - Viewed (0) -
src/cmd/cgo/internal/testsanitizers/testdata/msan8.go
uintptr_t* buf; uintptr_t max; }; // msanGoTraceback is registered as the cgo traceback function. // This will be called when a signal occurs. void msanGoTraceback(void* parg) { struct cgoTracebackArg* arg = (struct cgoTracebackArg*)(parg); arg->buf[0] = 0; } // msanGoWait will be called with all registers undefined as far as // msan is concerned. It just waits for a signal.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 18 21:30:58 UTC 2023 - 2.7K bytes - Viewed (0) -
src/runtime/testdata/testprogcgo/threadpprof.go
// C thread are in cpuHog. void pprofCgoThreadTraceback(void* parg) { struct cgoTracebackArg* arg = (struct cgoTracebackArg*)(parg); if (pthread_self() == tid) { arg->buf[0] = (uintptr_t)(cpuHogThread) + 0x10; arg->buf[1] = (uintptr_t)(cpuHogThread2) + 0x4; arg->buf[2] = 0; } else arg->buf[0] = 0; } static void* cpuHogDriver(void* arg __attribute__ ((unused))) { while (1) { cpuHogThread(); }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 17 22:59:31 UTC 2022 - 2.5K bytes - Viewed (0)