/tools/perf/util/ |
D | stat-shadow.c | 36 int ctx = 0; in evsel_context() local 39 ctx |= CTX_BIT_KERNEL; in evsel_context() 41 ctx |= CTX_BIT_USER; in evsel_context() 43 ctx |= CTX_BIT_HV; in evsel_context() 45 ctx |= CTX_BIT_HOST; in evsel_context() 47 ctx |= CTX_BIT_IDLE; in evsel_context() 49 return ctx; in evsel_context() 81 int ctx = evsel_context(counter); in perf_stat__update_shadow_stats() local 86 update_stats(&runtime_cycles_stats[ctx][cpu], count[0]); in perf_stat__update_shadow_stats() 88 update_stats(&runtime_cycles_in_tx_stats[ctx][cpu], count[0]); in perf_stat__update_shadow_stats() [all …]
|
D | parse-options.c | 363 void parse_options_start(struct parse_opt_ctx_t *ctx, in parse_options_start() argument 366 memset(ctx, 0, sizeof(*ctx)); in parse_options_start() 367 ctx->argc = argc - 1; in parse_options_start() 368 ctx->argv = argv + 1; in parse_options_start() 369 ctx->out = argv; in parse_options_start() 370 ctx->cpidx = ((flags & PARSE_OPT_KEEP_ARGV0) != 0); in parse_options_start() 371 ctx->flags = flags; in parse_options_start() 381 int parse_options_step(struct parse_opt_ctx_t *ctx, in parse_options_step() argument 385 int internal_help = !(ctx->flags & PARSE_OPT_NO_INTERNAL_HELP); in parse_options_step() 390 ctx->opt = NULL; in parse_options_step() [all …]
|
D | parse-options.h | 198 extern void parse_options_start(struct parse_opt_ctx_t *ctx, 201 extern int parse_options_step(struct parse_opt_ctx_t *ctx, 205 extern int parse_options_end(struct parse_opt_ctx_t *ctx);
|
/tools/perf/bench/ |
D | sched-messaging.c | 83 static void *sender(struct sender_context *ctx) in sender() argument 88 ready(ctx->ready_out, ctx->wakefd); in sender() 92 for (j = 0; j < ctx->num_fds; j++) { in sender() 96 ret = write(ctx->out_fds[j], data + done, in sender() 111 static void *receiver(struct receiver_context* ctx) in receiver() argument 116 close(ctx->in_fds[1]); in receiver() 119 ready(ctx->ready_out, ctx->wakefd); in receiver() 122 for (i = 0; i < ctx->num_packets; i++) { in receiver() 127 ret = read(ctx->in_fds[0], data + done, DATASIZE - done); in receiver() 138 static pthread_t create_worker(void *ctx, void *(*func)(void *)) in create_worker() argument [all …]
|
/tools/testing/selftests/x86/ |
D | unwind_vdso.c | 96 _Unwind_Reason_Code trace_fn(struct _Unwind_Context * ctx, void *opaque) in trace_fn() argument 99 unsigned long ip = _Unwind_GetIP(ctx); in trace_fn() 111 unsigned long eax = _Unwind_GetGR(ctx, 0); in trace_fn() 112 unsigned long ecx = _Unwind_GetGR(ctx, 1); in trace_fn() 113 unsigned long edx = _Unwind_GetGR(ctx, 2); in trace_fn() 114 unsigned long ebx = _Unwind_GetGR(ctx, 3); in trace_fn() 115 unsigned long ebp = _Unwind_GetGR(ctx, 5); in trace_fn() 116 unsigned long esi = _Unwind_GetGR(ctx, 6); in trace_fn() 117 unsigned long edi = _Unwind_GetGR(ctx, 7); in trace_fn() 137 ucontext_t *ctx = (ucontext_t *)ctx_void; in sigtrap() local [all …]
|
D | sigreturn.c | 281 static unsigned short *ssptr(ucontext_t *ctx) in ssptr() argument 283 struct selectors *sels = (void *)&ctx->uc_mcontext.gregs[REG_CSGSFS]; in ssptr() 287 static unsigned short *csptr(ucontext_t *ctx) in csptr() argument 289 struct selectors *sels = (void *)&ctx->uc_mcontext.gregs[REG_CSGSFS]; in csptr() 297 static greg_t *ssptr(ucontext_t *ctx) in ssptr() argument 299 return &ctx->uc_mcontext.gregs[REG_SS]; in ssptr() 302 static greg_t *csptr(ucontext_t *ctx) in csptr() argument 304 return &ctx->uc_mcontext.gregs[REG_CS]; in csptr() 318 ucontext_t *ctx = (ucontext_t*)ctx_void; in sigusr1() local 320 memcpy(&initial_regs, &ctx->uc_mcontext.gregs, sizeof(gregset_t)); in sigusr1() [all …]
|
D | syscall_arg_fault.c | 48 ucontext_t *ctx = (ucontext_t*)ctx_void; in sigsegv() local 50 if (ctx->uc_mcontext.gregs[REG_EAX] != -EFAULT) { in sigsegv() 52 ctx->uc_mcontext.gregs[REG_EAX]); in sigsegv()
|
D | entry_from_vm86.c | 57 ucontext_t *ctx = (ucontext_t*)ctx_void; in sighandler() local 59 if (ctx->uc_mcontext.gregs[REG_EFL] & X86_EFLAGS_VM || in sighandler() 60 (ctx->uc_mcontext.gregs[REG_CS] & 3) != 3) { in sighandler() 74 (unsigned long)ctx->uc_mcontext.gregs[REG_EFL], in sighandler() 75 (unsigned short)ctx->uc_mcontext.gregs[REG_CS]); in sighandler()
|
D | single_step_syscall.c | 81 ucontext_t *ctx = (ucontext_t*)ctx_void; in sigtrap() local 95 (unsigned long)ctx->uc_mcontext.gregs[REG_IP]); in sigtrap()
|
D | sysret_ss_attrs.c | 31 static void *threadproc(void *ctx) in threadproc() argument
|
D | test_vsyscall.c | 441 ucontext_t *ctx = (ucontext_t *)ctx_void; in sigtrap() local 442 unsigned long ip = ctx->uc_mcontext.gregs[REG_RIP]; in sigtrap()
|
D | ldt_gdt.c | 383 static void *threadproc(void *ctx) in threadproc() argument
|
/tools/perf/ui/gtk/ |
D | util.c | 12 struct perf_gtk_context *ctx; in perf_gtk__activate_context() local 14 ctx = malloc(sizeof(*pgctx)); in perf_gtk__activate_context() 15 if (ctx) in perf_gtk__activate_context() 16 ctx->main_window = window; in perf_gtk__activate_context() 18 return ctx; in perf_gtk__activate_context() 21 int perf_gtk__deactivate_context(struct perf_gtk_context **ctx) in perf_gtk__deactivate_context() argument 23 if (!perf_gtk__is_active_context(*ctx)) in perf_gtk__deactivate_context() 26 zfree(ctx); in perf_gtk__deactivate_context()
|
D | gtk.h | 28 static inline bool perf_gtk__is_active_context(struct perf_gtk_context *ctx) in perf_gtk__is_active_context() argument 30 return ctx && ctx->main_window; in perf_gtk__is_active_context() 34 int perf_gtk__deactivate_context(struct perf_gtk_context **ctx);
|
/tools/usb/ffs-aio-example/multibuff/host_app/ |
D | test.c | 50 libusb_context *ctx; member 66 state->ctx = NULL; in test_init() 70 ret = libusb_init(&state->ctx); in test_init() 76 cnt = libusb_get_device_list(state->ctx, &list); in test_init() 137 libusb_exit(state->ctx); in test_init() 151 libusb_exit(state->ctx); in test_exit()
|
/tools/usb/ffs-aio-example/simple/host_app/ |
D | test.c | 50 libusb_context *ctx; member 66 state->ctx = NULL; in test_init() 70 ret = libusb_init(&state->ctx); in test_init() 76 cnt = libusb_get_device_list(state->ctx, &list); in test_init() 137 libusb_exit(state->ctx); in test_init() 151 libusb_exit(state->ctx); in test_exit()
|
/tools/usb/ffs-aio-example/simple/device_app/ |
D | aio_simple.c | 212 io_context_t ctx; in main() local 260 memset(&ctx, 0, sizeof(ctx)); in main() 262 if (io_setup(2, &ctx) < 0) { in main() 311 ret = io_getevents(ctx, 1, 2, e, NULL); in main() 331 ret = io_submit(ctx, 1, &iocb_in); in main() 345 ret = io_submit(ctx, 1, &iocb_out); in main() 356 io_destroy(ctx); in main()
|
/tools/usb/ffs-aio-example/multibuff/device_app/ |
D | aio_multibuff.c | 242 io_context_t ctx; in main() local 286 memset(&ctx, 0, sizeof(ctx)); in main() 288 if (io_setup(AIO_MAX, &ctx) < 0) { in main() 340 ret = io_submit(ctx, iobuf[i].cnt, iobuf[i].iocb); in main() 361 ret = io_getevents(ctx, 1, BUFS_MAX, e, NULL); in main() 374 io_destroy(ctx); in main()
|
/tools/perf/tests/ |
D | bpf-script-test-kbuild.c | 15 int bpf_func__vfs_llseek(void *ctx) in bpf_func__vfs_llseek() argument
|
D | bpf-script-example.c | 35 int bpf_func__sys_epoll_pwait(void *ctx) in bpf_func__sys_epoll_pwait() argument
|
/tools/perf/ |
D | builtin-sched.c | 502 static void *thread_func(void *ctx) in thread_func() argument 504 struct sched_thread_parms *parms = ctx; in thread_func()
|