Home
last modified time | relevance | path

Searched refs:arg (Results 1 – 25 of 80) sorted by relevance

1234

/tools/lib/traceevent/
Dparse-filter.c197 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 …]
Devent-parse.c108 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/
Dparse-options.c22 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 …]
Dunwind-libdw.c81 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()
Dunwind-libunwind.c41 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 …]
Dunwind.h15 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()
Dunwind-libdw.h9 bool libdw__arch_set_initial_registers(Dwfl_Thread *thread, void *arg);
17 void *arg; member
Dcallchain.h194 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);
Dprobe-event.c1080 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 …]
Dbpf-loader.h30 int fd, void *arg);
51 bpf_prog_iter_callback_t func, void *arg);
77 void *arg __maybe_unused) in bpf__foreach_tev()
Dexec_cmd.c131 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/
Dintel-pt-log.h46 #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/
Dpeeksiginfo.c45 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/
Dusbip_network.c38 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/
Dbuiltin-trace.c301 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/
Dkallsyms.c11 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()
Dkallsyms.h22 int kallsyms__parse(const char *filename, void *arg,
23 int (*process_symbol)(void *arg, const char *name,
/tools/testing/selftests/futex/functional/
Dfutex_requeue_pi.c73 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()
Dfutex_requeue_pi_signal_restart.c52 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/
Dbug.h6 #define __WARN_printf(arg...) do { fprintf(stderr, arg); } while (0) argument
/tools/testing/selftests/vm/
Dthuge-gen.c234 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()
Duserfaultfd.c109 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/
Dunwind-libdw.c5 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/
Dunwind-libdw.c5 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/
Dhists.c450 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 …]

1234