Home
last modified time | relevance | path

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

12345678910

/tools/perf/trace/beauty/
Dfcntl.c18 static size_t syscall_arg__scnprintf_fcntl_getfd(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_fcntl_getfd() argument
20 return fcntl__scnprintf_getfd(arg->val, bf, size, arg->show_string_prefix); in syscall_arg__scnprintf_fcntl_getfd()
31 static size_t syscall_arg__scnprintf_fcntl_getlease(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_fcntl_getlease() argument
33 return fcntl__scnprintf_getlease(arg->val, bf, size, arg->show_string_prefix); in syscall_arg__scnprintf_fcntl_getlease()
36 size_t syscall_arg__scnprintf_fcntl_cmd(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_fcntl_cmd() argument
38 if (arg->val == F_GETFL) { in syscall_arg__scnprintf_fcntl_cmd()
39 syscall_arg__set_ret_scnprintf(arg, syscall_arg__scnprintf_open_flags); in syscall_arg__scnprintf_fcntl_cmd()
42 if (arg->val == F_GETFD) { in syscall_arg__scnprintf_fcntl_cmd()
43 syscall_arg__set_ret_scnprintf(arg, syscall_arg__scnprintf_fcntl_getfd); in syscall_arg__scnprintf_fcntl_cmd()
46 if (arg->val == F_DUPFD_CLOEXEC || arg->val == F_DUPFD) { in syscall_arg__scnprintf_fcntl_cmd()
[all …]
Dbeauty.h121 unsigned long syscall_arg__val(struct syscall_arg *arg, u8 idx);
123 size_t syscall_arg__scnprintf_strarray_flags(char *bf, size_t size, struct syscall_arg *arg);
126 bool syscall_arg__strtoul_strarray(char *bf, size_t size, struct syscall_arg *arg, u64 *ret);
129 bool syscall_arg__strtoul_strarray_flags(char *bf, size_t size, struct syscall_arg *arg, u64 *ret);
132 bool syscall_arg__strtoul_strarrays(char *bf, size_t size, struct syscall_arg *arg, u64 *ret);
135 size_t syscall_arg__scnprintf_x86_irq_vectors(char *bf, size_t size, struct syscall_arg *arg);
138 bool syscall_arg__strtoul_x86_irq_vectors(char *bf, size_t size, struct syscall_arg *arg, u64 *ret);
141 size_t syscall_arg__scnprintf_x86_MSR(char *bf, size_t size, struct syscall_arg *arg);
144 bool syscall_arg__strtoul_x86_MSR(char *bf, size_t size, struct syscall_arg *arg, u64 *ret);
147 size_t syscall_arg__scnprintf_strarrays(char *bf, size_t size, struct syscall_arg *arg);
[all …]
Dkcmp.c16 size_t syscall_arg__scnprintf_kcmp_idx(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_kcmp_idx() argument
18 unsigned long fd = arg->val; in syscall_arg__scnprintf_kcmp_idx()
19 int type = syscall_arg__val(arg, 2); in syscall_arg__scnprintf_kcmp_idx()
23 return syscall_arg__scnprintf_long(bf, size, arg); in syscall_arg__scnprintf_kcmp_idx()
25 pid = syscall_arg__val(arg, arg->idx == 3 ? 0 : 1); /* idx1 -> pid1, idx2 -> pid2 */ in syscall_arg__scnprintf_kcmp_idx()
26 return pid__scnprintf_fd(arg->trace, pid, fd, bf, size); in syscall_arg__scnprintf_kcmp_idx()
35 size_t syscall_arg__scnprintf_kcmp_type(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_kcmp_type() argument
37 unsigned long type = arg->val; in syscall_arg__scnprintf_kcmp_type()
40 arg->mask |= (1 << 3) | (1 << 4); /* Ignore idx1 and idx2 */ in syscall_arg__scnprintf_kcmp_type()
42 return kcmp__scnprintf_type(type, bf, size, arg->show_string_prefix); in syscall_arg__scnprintf_kcmp_type()
Dprctl.c27 size_t syscall_arg__scnprintf_prctl_arg2(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_prctl_arg2() argument
29 int option = syscall_arg__val(arg, 0); in syscall_arg__scnprintf_prctl_arg2()
32 return prctl__scnprintf_set_mm(arg->val, bf, size, arg->show_string_prefix); in syscall_arg__scnprintf_prctl_arg2()
38 return syscall_arg__scnprintf_hex(bf, size, arg); in syscall_arg__scnprintf_prctl_arg2()
40 return syscall_arg__scnprintf_long(bf, size, arg); in syscall_arg__scnprintf_prctl_arg2()
43 size_t syscall_arg__scnprintf_prctl_arg3(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_prctl_arg3() argument
45 int option = syscall_arg__val(arg, 0); in syscall_arg__scnprintf_prctl_arg3()
48 return syscall_arg__scnprintf_hex(bf, size, arg); in syscall_arg__scnprintf_prctl_arg3()
50 return syscall_arg__scnprintf_long(bf, size, arg); in syscall_arg__scnprintf_prctl_arg3()
53 size_t syscall_arg__scnprintf_prctl_option(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_prctl_option() argument
[all …]
Dfutex_op.c20 static size_t syscall_arg__scnprintf_futex_op(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_futex_op() argument
22 bool show_prefix = arg->show_string_prefix; in syscall_arg__scnprintf_futex_op()
32 int op = arg->val; in syscall_arg__scnprintf_futex_op()
38 P_FUTEX_OP(WAIT); arg->mask |= SCF_VAL3|SCF_UADDR2; break; in syscall_arg__scnprintf_futex_op()
39 P_FUTEX_OP(WAKE); arg->mask |= SCF_VAL3|SCF_UADDR2|SCF_TIMEOUT; break; in syscall_arg__scnprintf_futex_op()
40 P_FUTEX_OP(FD); arg->mask |= SCF_VAL3|SCF_UADDR2|SCF_TIMEOUT; break; in syscall_arg__scnprintf_futex_op()
41 P_FUTEX_OP(REQUEUE); arg->mask |= SCF_VAL3|SCF_TIMEOUT; break; in syscall_arg__scnprintf_futex_op()
42 P_FUTEX_OP(CMP_REQUEUE); arg->mask |= SCF_TIMEOUT; break; in syscall_arg__scnprintf_futex_op()
43 P_FUTEX_OP(CMP_REQUEUE_PI); arg->mask |= SCF_TIMEOUT; break; in syscall_arg__scnprintf_futex_op()
45 P_FUTEX_OP(LOCK_PI); arg->mask |= SCF_VAL3|SCF_UADDR2|SCF_TIMEOUT; break; in syscall_arg__scnprintf_futex_op()
[all …]
Dmmap.c12 static size_t syscall_arg__scnprintf_mmap_prot(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_mmap_prot() argument
14 unsigned long prot = arg->val; in syscall_arg__scnprintf_mmap_prot()
17 return scnprintf(bf, size, "%sNONE", arg->show_string_prefix ? strarray__mmap_prot.prefix : ""); in syscall_arg__scnprintf_mmap_prot()
19 return mmap__scnprintf_prot(prot, bf, size, arg->show_string_prefix); in syscall_arg__scnprintf_mmap_prot()
33 struct syscall_arg *arg) in syscall_arg__scnprintf_mmap_flags() argument
35 unsigned long flags = arg->val; in syscall_arg__scnprintf_mmap_flags()
38 arg->mask |= (1 << 4) | (1 << 5); /* Mask 4th ('fd') and 5th ('offset') args, ignored */ in syscall_arg__scnprintf_mmap_flags()
40 return mmap__scnprintf_flags(flags, bf, size, arg->show_string_prefix); in syscall_arg__scnprintf_mmap_flags()
53 static size_t syscall_arg__scnprintf_mremap_flags(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_mremap_flags() argument
55 unsigned long flags = arg->val; in syscall_arg__scnprintf_mremap_flags()
[all …]
Dsocket.c20 size_t syscall_arg__scnprintf_socket_protocol(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_socket_protocol() argument
22 int domain = syscall_arg__val(arg, 0); in syscall_arg__scnprintf_socket_protocol()
25 return socket__scnprintf_ipproto(arg->val, bf, size, arg->show_string_prefix); in syscall_arg__scnprintf_socket_protocol()
27 return syscall_arg__scnprintf_int(bf, size, arg); in syscall_arg__scnprintf_socket_protocol()
Dseccomp.c9 static size_t syscall_arg__scnprintf_seccomp_op(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_seccomp_op() argument
11 bool show_prefix = arg->show_string_prefix; in syscall_arg__scnprintf_seccomp_op()
13 int op = arg->val; in syscall_arg__scnprintf_seccomp_op()
34 struct syscall_arg *arg) in syscall_arg__scnprintf_seccomp_flags() argument
36 bool show_prefix = arg->show_string_prefix; in syscall_arg__scnprintf_seccomp_flags()
38 int printed = 0, flags = arg->val; in syscall_arg__scnprintf_seccomp_flags()
Dmount_flags.c22 unsigned long syscall_arg__mask_val_mount_flags(struct syscall_arg *arg __maybe_unused, unsigned lo… in syscall_arg__mask_val_mount_flags()
38 size_t syscall_arg__scnprintf_mount_flags(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_mount_flags() argument
40 unsigned long flags = arg->val; in syscall_arg__scnprintf_mount_flags()
42 return mount__scnprintf_flags(flags, bf, size, arg->show_string_prefix); in syscall_arg__scnprintf_mount_flags()
Dclone.c58 size_t syscall_arg__scnprintf_clone_flags(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_clone_flags() argument
60 unsigned long flags = arg->val; in syscall_arg__scnprintf_clone_flags()
69 arg->mask |= SCC_PARENT_TIDPTR; in syscall_arg__scnprintf_clone_flags()
72 arg->mask |= SCC_CHILD_TIDPTR; in syscall_arg__scnprintf_clone_flags()
75 arg->mask |= SCC_TLS; in syscall_arg__scnprintf_clone_flags()
77 return clone__scnprintf_flags(flags, bf, size, arg->show_string_prefix); in syscall_arg__scnprintf_clone_flags()
Dstatx.c14 size_t syscall_arg__scnprintf_statx_flags(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_statx_flags() argument
16 bool show_prefix = arg->show_string_prefix; in syscall_arg__scnprintf_statx_flags()
18 int printed = 0, flags = arg->val; in syscall_arg__scnprintf_statx_flags()
44 size_t syscall_arg__scnprintf_statx_mask(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_statx_mask() argument
46 bool show_prefix = arg->show_string_prefix; in syscall_arg__scnprintf_statx_mask()
48 int printed = 0, flags = arg->val; in syscall_arg__scnprintf_statx_mask()
Dsockaddr.c48 static size_t syscall_arg__scnprintf_augmented_sockaddr(struct syscall_arg *arg, char *bf, size_t s… in syscall_arg__scnprintf_augmented_sockaddr() argument
50 struct sockaddr *sa = (struct sockaddr *)arg->augmented.args; in syscall_arg__scnprintf_augmented_sockaddr()
54 …strarray__scnprintf(&strarray__socket_families, family, sizeof(family), "%d", arg->show_string_pre… in syscall_arg__scnprintf_augmented_sockaddr()
63 size_t syscall_arg__scnprintf_sockaddr(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_sockaddr() argument
65 if (arg->augmented.args) in syscall_arg__scnprintf_sockaddr()
66 return syscall_arg__scnprintf_augmented_sockaddr(arg, bf, size); in syscall_arg__scnprintf_sockaddr()
68 return scnprintf(bf, size, "%#lx", arg->val); in syscall_arg__scnprintf_sockaddr()
Dfutex_val3.c8 static size_t syscall_arg__scnprintf_futex_val3(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_futex_val3() argument
11 unsigned int bitset = arg->val; in syscall_arg__scnprintf_futex_val3()
14 return scnprintf(bf, size, "%s%s", arg->show_string_prefix ? prefix : "", "MATCH_ANY"); in syscall_arg__scnprintf_futex_val3()
/tools/lib/traceevent/
Dparse-filter.c184 static void free_arg(struct tep_filter_arg *arg) in free_arg() argument
186 if (!arg) in free_arg()
189 switch (arg->type) { in free_arg()
195 free_arg(arg->num.left); in free_arg()
196 free_arg(arg->num.right); in free_arg()
200 free_arg(arg->exp.left); in free_arg()
201 free_arg(arg->exp.right); in free_arg()
205 free(arg->str.val); in free_arg()
206 regfree(&arg->str.reg); in free_arg()
207 free(arg->str.buffer); in free_arg()
[all …]
Devent-parse.c106 struct tep_event *event, struct tep_print_arg *arg);
862 static void free_arg(struct tep_print_arg *arg) in free_arg() argument
866 if (!arg) in free_arg()
869 switch (arg->type) { in free_arg()
871 free(arg->atom.atom); in free_arg()
874 free(arg->field.name); in free_arg()
877 free_arg(arg->flags.field); in free_arg()
878 free(arg->flags.delim); in free_arg()
879 free_flag_sym(arg->flags.flags); in free_arg()
882 free_arg(arg->symbol.field); in free_arg()
[all …]
/tools/perf/
Dbuiltin-config.c121 static int parse_config_arg(char *arg, char **var, char **value) in parse_config_arg() argument
123 const char *last_dot = strchr(arg, '.'); in parse_config_arg()
129 if (last_dot == NULL || last_dot == arg) { in parse_config_arg()
130 pr_err("The config variable does not contain a section name: %s\n", arg); in parse_config_arg()
134 pr_err("The config variable does not contain a variable name: %s\n", arg); in parse_config_arg()
138 *value = strchr(arg, '='); in parse_config_arg()
140 *var = arg; in parse_config_arg()
142 pr_err("The config variable does not contain a value: %s\n", arg); in parse_config_arg()
146 *var = strsep(&arg, "="); in parse_config_arg()
148 pr_err("invalid config variable: %s\n", arg); in parse_config_arg()
[all …]
Dbuiltin-trace.c96 size_t (*scnprintf)(char *bf, size_t size, struct syscall_arg *arg);
97 bool (*strtoul)(char *bf, size_t size, struct syscall_arg *arg, u64 *val);
98 unsigned long (*mask_val)(struct syscall_arg *arg, unsigned long val);
112 struct syscall_arg_fmt arg[RAW_SYSCALL_ARGS_NUM]; member
523 struct syscall_arg *arg) in __syscall_arg__scnprintf_strarray() argument
525 return strarray__scnprintf(arg->parm, bf, size, intfmt, arg->show_string_prefix, arg->val); in __syscall_arg__scnprintf_strarray()
529 struct syscall_arg *arg) in syscall_arg__scnprintf_strarray() argument
531 return __syscall_arg__scnprintf_strarray(bf, size, "%d", arg); in syscall_arg__scnprintf_strarray()
536 bool syscall_arg__strtoul_strarray(char *bf, size_t size, struct syscall_arg *arg, u64 *ret) in syscall_arg__strtoul_strarray() argument
538 return strarray__strtoul(arg->parm, bf, size, ret); in syscall_arg__strtoul_strarray()
[all …]
/tools/lib/subcmd/
Dparse-options.c49 int flags, const char **arg) in get_arg() argument
64 if (arg) in get_arg()
65 *arg = res; in get_arg()
72 const char *s, *arg = NULL; in get_value() local
249 if (get_arg(p, opt, flags, &arg)) in get_value()
251 return (*opt->callback)(opt, arg, 0) ? (-1) : 0; in get_value()
262 if (get_arg(p, opt, flags, &arg)) in get_value()
264 *(int *)opt->value = strtol(arg, (char **)&s, 10); in get_value()
278 if (get_arg(p, opt, flags, &arg)) in get_value()
280 if (arg[0] == '-') in get_value()
[all …]
/tools/perf/util/intel-pt-decoder/
Dintel-pt-log.h38 #define intel_pt_log_packet(arg, ...) \ argument
41 __intel_pt_log_packet(arg, ##__VA_ARGS__); \
44 #define intel_pt_log_insn(arg, ...) \ argument
47 __intel_pt_log_insn(arg, ##__VA_ARGS__); \
50 #define intel_pt_log_insn_no_data(arg, ...) \ argument
53 __intel_pt_log_insn_no_data(arg, ##__VA_ARGS__); \
/tools/testing/selftests/ptrace/
Dpeeksiginfo.c46 struct ptrace_peeksiginfo_args arg; in check_error_paths() local
68 arg.nr = SIGNR; in check_error_paths()
69 arg.off = 0; in check_error_paths()
72 arg.flags = ~0; in check_error_paths()
73 ret = sys_ptrace(PTRACE_PEEKSIGINFO, child, &arg, addr_rw); in check_error_paths()
80 arg.flags = 0; in check_error_paths()
83 ret = sys_ptrace(PTRACE_PEEKSIGINFO, child, &arg, in check_error_paths()
91 ret = sys_ptrace(PTRACE_PEEKSIGINFO, child, &arg, addr_ro); in check_error_paths()
107 struct ptrace_peeksiginfo_args arg = {.flags = 0, .nr = nr, .off = 0}; in check_direct_path() local
113 arg.flags = PTRACE_PEEKSIGINFO_SHARED; in check_direct_path()
[all …]
/tools/perf/examples/bpf/
Daugmented_raw_syscalls.c75 struct augmented_arg arg, arg2; member
97 unsigned int augmented_arg__read_str(struct augmented_arg *augmented_arg, const void *arg, unsigned… in augmented_arg__read_str() argument
100 int string_len = probe_read_str(&augmented_arg->value, arg_len, arg); in augmented_arg__read_str()
183 …len += augmented_arg__read_str(&augmented_args->arg, filename_arg, sizeof(augmented_args->arg.valu… in sys_enter_open()
198 …len += augmented_arg__read_str(&augmented_args->arg, filename_arg, sizeof(augmented_args->arg.valu… in sys_enter_openat()
214 …ldpath_len = augmented_arg__read_str(&augmented_args->arg, oldpath_arg, sizeof(augmented_args->arg in sys_enter_rename()
215 …mented_arg__read_str((void *)(&augmented_args->arg) + oldpath_len, newpath_arg, sizeof(augmented_a… in sys_enter_rename()
231 …ldpath_len = augmented_arg__read_str(&augmented_args->arg, oldpath_arg, sizeof(augmented_args->arg in sys_enter_renameat()
232 …mented_arg__read_str((void *)(&augmented_args->arg) + oldpath_len, newpath_arg, sizeof(augmented_a… in sys_enter_renameat()
/tools/perf/scripts/python/bin/
Dmem-phys-addr-record17 arg=$(echo $load | tr -d ' ')
18 arg="$arg:P"
19 perf record --phys-data -e $arg $@
/tools/testing/selftests/exec/
Dbinfmt_script44 fill="A", arg="", newline="\n", hashbang="#!"):
52 remaining = size - len(hashbang) - len(leading) - len(root) - len(target) - len(arg)
67 buf=hashbang + leading + root + middle + target + arg + newline
137arg=" -I/nix/store/x6yyav38jgr924nkna62q3pkp0dgmzlx-perl5.28.1-File-Slurp-9999.25/lib/perl5/site_p…
143 test(name="exact-trunc-whitespace", size=SIZE, arg=" ")
145 test(name="exact-trunc-arg", size=SIZE, arg=" f")
147 test(name="one-under-full-arg", size=SIZE-1, arg=" f")
153 test(name="one-under-trunc-arg", size=SIZE-1, arg=" ")
157 test(name="one-under-leading-trunc-arg", size=SIZE-1, leading=" ", arg=" ")
160 test(name="two-under-trunc-arg", size=SIZE-2, arg=" ")
[all …]
/tools/perf/trace/beauty/tracepoints/
Dx86_irq_vectors.c19 size_t syscall_arg__scnprintf_x86_irq_vectors(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_x86_irq_vectors() argument
21 unsigned long vector = arg->val; in syscall_arg__scnprintf_x86_irq_vectors()
23 return x86_irq_vectors__scnprintf(vector, bf, size, arg->show_string_prefix); in syscall_arg__scnprintf_x86_irq_vectors()
26 bool syscall_arg__strtoul_x86_irq_vectors(char *bf, size_t size, struct syscall_arg *arg __maybe_un… in syscall_arg__strtoul_x86_irq_vectors()
Dx86_msr.c29 size_t syscall_arg__scnprintf_x86_MSR(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_x86_MSR() argument
31 unsigned long flags = arg->val; in syscall_arg__scnprintf_x86_MSR()
33 return x86_MSR__scnprintf(flags, bf, size, arg->show_string_prefix); in syscall_arg__scnprintf_x86_MSR()
36 bool syscall_arg__strtoul_x86_MSR(char *bf, size_t size, struct syscall_arg *arg __maybe_unused, u6… in syscall_arg__strtoul_x86_MSR()

12345678910