/tools/lib/traceevent/ |
D | parse-filter.c | 197 static void free_arg(struct filter_arg *arg) in free_arg() argument 199 if (!arg) in free_arg() 202 switch (arg->type) { in free_arg() 208 free_arg(arg->num.left); in free_arg() 209 free_arg(arg->num.right); in free_arg() 213 free_arg(arg->exp.left); in free_arg() 214 free_arg(arg->exp.right); in free_arg() 218 free(arg->str.val); in free_arg() 219 regfree(&arg->str.reg); in free_arg() 220 free(arg->str.buffer); in free_arg() [all …]
|
D | event-parse.c | 108 struct event_format *event, struct print_arg *arg); 806 static void free_arg(struct print_arg *arg) in free_arg() argument 810 if (!arg) in free_arg() 813 switch (arg->type) { in free_arg() 815 free(arg->atom.atom); in free_arg() 818 free(arg->field.name); in free_arg() 821 free_arg(arg->flags.field); in free_arg() 822 free(arg->flags.delim); in free_arg() 823 free_flag_sym(arg->flags.flags); in free_arg() 826 free_arg(arg->symbol.field); in free_arg() [all …]
|
/tools/perf/util/ |
D | parse-options.c | 22 int flags, const char **arg) in get_arg() argument 25 *arg = p->opt; in get_arg() 29 *arg = (const char *)opt->defval; in get_arg() 32 *arg = *++p->argv; in get_arg() 41 const char *s, *arg = NULL; in get_value() local 152 if (get_arg(p, opt, flags, &arg)) in get_value() 154 return (*opt->callback)(opt, arg, 0) ? (-1) : 0; in get_value() 165 if (get_arg(p, opt, flags, &arg)) in get_value() 167 *(int *)opt->value = strtol(arg, (char **)&s, 10); in get_value() 181 if (get_arg(p, opt, flags, &arg)) in get_value() [all …]
|
D | unwind-libdw.c | 81 return ui->cb(&e, ui->arg); in entry() 84 static pid_t next_thread(Dwfl *dwfl, void *arg, void **thread_argp) in next_thread() argument 90 *thread_argp = arg; in next_thread() 117 void *arg) in memory_read() argument 119 struct unwind_info *ui = arg; in memory_read() 160 frame_callback(Dwfl_Frame *state, void *arg) in frame_callback() argument 162 struct unwind_info *ui = arg; in frame_callback() 174 int unwind__get_entries(unwind_entry_cb_t cb, void *arg, in unwind__get_entries() argument 184 .arg = arg, in unwind__get_entries()
|
D | unwind-libunwind.c | 41 int need_unwind_info, void *arg); 327 int need_unwind_info, void *arg) in find_proc_info() argument 329 struct unwind_info *ui = arg; in find_proc_info() 353 need_unwind_info, arg); in find_proc_info() 374 need_unwind_info, arg); in find_proc_info() 385 void __maybe_unused *arg) in access_fpreg() argument 393 void __maybe_unused *arg) in get_dyn_info_list_addr() argument 400 void __maybe_unused *arg) in resume() argument 410 unw_word_t __maybe_unused *offp, void __maybe_unused *arg) in get_proc_name() argument 440 int __write, void *arg) in access_mem() argument [all …]
|
D | unwind.h | 15 typedef int (*unwind_entry_cb_t)(struct unwind_entry *entry, void *arg); 18 int unwind__get_entries(unwind_entry_cb_t cb, void *arg, 39 void *arg __maybe_unused, in unwind__get_entries()
|
D | unwind-libdw.h | 9 bool libdw__arch_set_initial_registers(Dwfl_Thread *thread, void *arg); 17 void *arg; member
|
D | callchain.h | 194 int record_parse_callchain_opt(const struct option *opt, const char *arg, int unset); 195 int record_callchain_opt(const struct option *opt, const char *arg, int unset); 205 extern int parse_callchain_record(const char *arg, struct callchain_param *param); 206 int parse_callchain_record_opt(const char *arg, struct callchain_param *param); 207 int parse_callchain_report_opt(const char *arg); 208 int parse_callchain_top_opt(const char *arg);
|
D | probe-event.c | 1080 int parse_line_range_desc(const char *arg, struct line_range *lr) in parse_line_range_desc() argument 1082 char *range, *file, *name = strdup(arg); in parse_line_range_desc() 1158 static int parse_perf_probe_point(char *arg, struct perf_probe_event *pev) in parse_perf_probe_point() argument 1171 if (!arg) in parse_perf_probe_point() 1174 ptr = strpbrk(arg, ";=@+%"); in parse_perf_probe_point() 1178 if (strchr(arg, ':')) { in parse_perf_probe_point() 1182 if (!is_c_func_name(arg)) { in parse_perf_probe_point() 1184 "follow C symbol-naming rule.\n", arg); in parse_perf_probe_point() 1187 pev->event = strdup(arg); in parse_perf_probe_point() 1191 arg = tmp; in parse_perf_probe_point() [all …]
|
D | bpf-loader.h | 30 int fd, void *arg); 51 bpf_prog_iter_callback_t func, void *arg); 77 void *arg __maybe_unused) in bpf__foreach_tev()
|
D | exec_cmd.c | 131 const char *arg; in execl_perf_cmd() local 138 arg = argv[argc++] = va_arg(param, char *); in execl_perf_cmd() 139 if (!arg) in execl_perf_cmd()
|
/tools/perf/util/intel-pt-decoder/ |
D | intel-pt-log.h | 46 #define intel_pt_log_packet(arg, ...) \ argument 49 __intel_pt_log_packet(arg, ##__VA_ARGS__); \ 52 #define intel_pt_log_insn(arg, ...) \ argument 55 __intel_pt_log_insn(arg, ##__VA_ARGS__); \ 58 #define intel_pt_log_insn_no_data(arg, ...) \ argument 61 __intel_pt_log_insn_no_data(arg, ##__VA_ARGS__); \
|
/tools/testing/selftests/ptrace/ |
D | peeksiginfo.c | 45 struct ptrace_peeksiginfo_args arg; in check_error_paths() local 67 arg.nr = SIGNR; in check_error_paths() 68 arg.off = 0; in check_error_paths() 71 arg.flags = ~0; in check_error_paths() 72 ret = sys_ptrace(PTRACE_PEEKSIGINFO, child, &arg, addr_rw); in check_error_paths() 79 arg.flags = 0; in check_error_paths() 82 ret = sys_ptrace(PTRACE_PEEKSIGINFO, child, &arg, in check_error_paths() 90 ret = sys_ptrace(PTRACE_PEEKSIGINFO, child, &arg, addr_ro); in check_error_paths() 106 struct ptrace_peeksiginfo_args arg = {.flags = 0, .nr = nr, .off = 0}; in check_direct_path() local 112 arg.flags = PTRACE_PEEKSIGINFO_SHARED; in check_direct_path() [all …]
|
/tools/usb/usbip/src/ |
D | usbip_network.c | 38 void usbip_setup_port_number(char *arg) in usbip_setup_port_number() argument 40 dbg("parsing port arg '%s'", arg); in usbip_setup_port_number() 42 unsigned long int port = strtoul(arg, &end, 10); in usbip_setup_port_number() 44 if (end == arg) { in usbip_setup_port_number() 45 err("port: could not parse '%s' as a decimal integer", arg); in usbip_setup_port_number() 50 err("port: garbage at end of '%s'", arg); in usbip_setup_port_number() 56 arg, UINT16_MAX); in usbip_setup_port_number() 61 usbip_port_string = arg; in usbip_setup_port_number()
|
/tools/perf/ |
D | builtin-trace.c | 301 struct syscall_arg *arg) in __syscall_arg__scnprintf_strarray() argument 303 struct strarray *sa = arg->parm; in __syscall_arg__scnprintf_strarray() 304 int idx = arg->val - sa->offset; in __syscall_arg__scnprintf_strarray() 307 return scnprintf(bf, size, intfmt, arg->val); in __syscall_arg__scnprintf_strarray() 313 struct syscall_arg *arg) in syscall_arg__scnprintf_strarray() argument 315 return __syscall_arg__scnprintf_strarray(bf, size, "%d", arg); in syscall_arg__scnprintf_strarray() 326 struct syscall_arg *arg) in syscall_arg__scnprintf_strhexarray() argument 328 return __syscall_arg__scnprintf_strarray(bf, size, "%#x", arg); in syscall_arg__scnprintf_strhexarray() 335 struct syscall_arg *arg); 340 struct syscall_arg *arg) in syscall_arg__scnprintf_fd_at() argument [all …]
|
/tools/lib/symbol/ |
D | kallsyms.c | 11 int kallsyms__parse(const char *filename, void *arg, in kallsyms__parse() argument 12 int (*process_symbol)(void *arg, const char *name, in kallsyms__parse() argument 53 err = process_symbol(arg, symbol_name, symbol_type, start); in kallsyms__parse()
|
D | kallsyms.h | 22 int kallsyms__parse(const char *filename, void *arg, 23 int (*process_symbol)(void *arg, const char *name,
|
/tools/testing/selftests/futex/functional/ |
D | futex_requeue_pi.c | 73 int create_rt_thread(pthread_t *pth, void*(*func)(void *), void *arg, in create_rt_thread() argument 102 ret = pthread_create(pth, &attr, func, arg); in create_rt_thread() 111 void *waiterfn(void *arg) in waiterfn() argument 113 struct thread_arg *args = (struct thread_arg *)arg; in waiterfn() 147 void *broadcast_wakerfn(void *arg) in broadcast_wakerfn() argument 149 struct thread_arg *args = (struct thread_arg *)arg; in broadcast_wakerfn() 195 void *signal_wakerfn(void *arg) in signal_wakerfn() argument 197 struct thread_arg *args = (struct thread_arg *)arg; in signal_wakerfn() 260 void *third_party_blocker(void *arg) in third_party_blocker() argument 262 struct thread_arg *args = (struct thread_arg *)arg; in third_party_blocker()
|
D | futex_requeue_pi_signal_restart.c | 52 int create_rt_thread(pthread_t *pth, void*(*func)(void *), void *arg, in create_rt_thread() argument 81 ret = pthread_create(pth, &attr, func, arg); in create_rt_thread() 95 void *waiterfn(void *arg) in waiterfn() argument
|
/tools/include/asm/ |
D | bug.h | 6 #define __WARN_printf(arg...) do { fprintf(stderr, arg); } while (0) argument
|
/tools/testing/selftests/vm/ |
D | thuge-gen.c | 234 int arg = ilog2(ps) << MAP_HUGE_SHIFT; in main() local 235 printf("Testing %luMB mmap with shift %x\n", ps >> 20, arg); in main() 236 test_mmap(ps, MAP_HUGETLB | arg); in main() 246 int arg = ilog2(ps) << SHM_HUGE_SHIFT; in main() local 247 printf("Testing %luMB shmget with shift %x\n", ps >> 20, arg); in main() 248 test_shmget(ps, SHM_HUGETLB | arg); in main()
|
D | userfaultfd.c | 109 static void *locking_thread(void *arg) in locking_thread() argument 111 unsigned long cpu = (unsigned long) arg; in locking_thread() 245 static void *uffd_poll_thread(void *arg) in uffd_poll_thread() argument 247 unsigned long cpu = (unsigned long) arg; in uffd_poll_thread() 284 if (msg.arg.pagefault.flags & UFFD_PAGEFAULT_FLAG_WRITE) in uffd_poll_thread() 286 offset = (char *)(unsigned long)msg.arg.pagefault.address - in uffd_poll_thread() 297 static void *uffd_read_thread(void *arg) in uffd_read_thread() argument 304 this_cpu_userfaults = (unsigned long *) arg; in uffd_read_thread() 322 msg.arg.pagefault.flags & UFFD_PAGEFAULT_FLAG_WRITE) in uffd_read_thread() 324 offset = (char *)(unsigned long)msg.arg.pagefault.address - in uffd_read_thread() [all …]
|
/tools/perf/arch/arm/util/ |
D | unwind-libdw.c | 5 bool libdw__arch_set_initial_registers(Dwfl_Thread *thread, void *arg) in libdw__arch_set_initial_registers() argument 7 struct unwind_info *ui = arg; in libdw__arch_set_initial_registers()
|
/tools/perf/arch/x86/util/ |
D | unwind-libdw.c | 5 bool libdw__arch_set_initial_registers(Dwfl_Thread *thread, void *arg) in libdw__arch_set_initial_registers() argument 7 struct unwind_info *ui = arg; in libdw__arch_set_initial_registers()
|
/tools/perf/ui/browsers/ |
D | hists.c | 450 hbt->timer(hbt->arg); in hist_browser__run() 523 struct callchain_print_arg *arg); 529 struct callchain_print_arg *arg) in hist_browser__show_callchain_entry() argument 540 arg->is_current_entry = true; in hist_browser__show_callchain_entry() 555 struct callchain_print_arg *arg) in hist_browser__fprintf_callchain_entry() argument 559 arg->printed += fprintf(arg->fp, "%*s%c %s\n", offset, " ", in hist_browser__fprintf_callchain_entry() 584 struct callchain_print_arg *arg, in hist_browser__show_callchain() argument 615 if (arg->row_offset != 0) { in hist_browser__show_callchain() 616 arg->row_offset--; in hist_browser__show_callchain() 633 print(browser, chain, str, offset + extra_offset, row, arg); in hist_browser__show_callchain() [all …]
|