Home
last modified time | relevance | path

Searched refs:op (Results 1 – 25 of 28) sorted by relevance

12

/tools/perf/tests/
Devsel-roundtrip-name.c10 int type, op, err = 0, ret = 0, i, idx; in perf_evsel__roundtrip_cache_name_test() local
18 for (op = 0; op < PERF_COUNT_HW_CACHE_OP_MAX; op++) { in perf_evsel__roundtrip_cache_name_test()
20 if (!perf_evsel__is_cache_op_valid(type, op)) in perf_evsel__roundtrip_cache_name_test()
24 __perf_evsel__hw_cache_type_op_res_name(type, op, i, in perf_evsel__roundtrip_cache_name_test()
37 for (op = 0; op < PERF_COUNT_HW_CACHE_OP_MAX; op++) { in perf_evsel__roundtrip_cache_name_test()
39 if (!perf_evsel__is_cache_op_valid(type, op)) in perf_evsel__roundtrip_cache_name_test()
43 __perf_evsel__hw_cache_type_op_res_name(type, op, i, in perf_evsel__roundtrip_cache_name_test()
/tools/lib/traceevent/
Devent-plugin.c67 struct pevent_plugin_option *op; in traceevent_plugin_list_options() local
73 for (op = reg->options; op->name; op++) { in traceevent_plugin_list_options()
74 char *alias = op->plugin_alias ? op->plugin_alias : op->file; in traceevent_plugin_list_options()
77 name = malloc(strlen(op->name) + strlen(alias) + 2); in traceevent_plugin_list_options()
81 sprintf(name, "%s:%s", alias, op->name); in traceevent_plugin_list_options()
121 struct trace_plugin_options *op; in update_option() local
139 for (op = trace_plugin_options; op; op = op->next) { in update_option()
140 if (!op->plugin) in update_option()
142 if (strcmp(op->plugin, plugin) != 0) in update_option()
144 if (strcmp(op->option, option->name) != 0) in update_option()
[all …]
Dparse-filter.c230 free_arg(arg->op.left); in free_arg()
231 free_arg(arg->op.right); in free_arg()
416 arg->op.type = btype; in create_arg_op()
431 arg->op.type = etype; in create_arg_exp()
447 arg->op.type = etype; in create_arg_cmp()
453 add_right(struct filter_arg *op, struct filter_arg *arg, char *error_str) in add_right() argument
460 switch (op->type) { in add_right()
462 if (op->exp.right) in add_right()
464 op->exp.right = arg; in add_right()
468 if (op->op.right) in add_right()
[all …]
Dplugin_xen.c103 static const char *xen_hypercall_name(unsigned op) in xen_hypercall_name() argument
105 if (op < ARRAY_SIZE(xen_hypercall_names) && in xen_hypercall_name()
106 xen_hypercall_names[op] != NULL) in xen_hypercall_name()
107 return xen_hypercall_names[op]; in xen_hypercall_name()
115 unsigned int op = args[0]; in process_xen_hypercall_name() local
117 trace_seq_printf(s, "%s", xen_hypercall_name(op)); in process_xen_hypercall_name()
Devent-parse.c775 free(arg->op.op); in free_arg()
776 free_arg(arg->op.left); in free_arg()
777 free_arg(arg->op.right); in free_arg()
1662 arg->op.left = left; in process_cond()
1663 arg->op.right = right; in process_cond()
1678 arg->op.op = token; in process_cond()
1682 top->op.right = arg; in process_cond()
1689 top->op.right = NULL; in process_cond()
1715 top->op.right = arg; in process_array()
1729 static int get_op_prio(char *op) in get_op_prio() argument
[all …]
Devent-parse.h256 char *op; member
298 struct print_arg_op op; member
873 struct filter_arg_op op; member
/tools/power/cpupower/utils/helpers/
Dhelpers.h157 unsigned int cpuid_eax(unsigned int op);
158 unsigned int cpuid_ebx(unsigned int op);
159 unsigned int cpuid_ecx(unsigned int op);
160 unsigned int cpuid_edx(unsigned int op);
189 static inline unsigned int cpuid_eax(unsigned int op) { return 0; }; in cpuid_eax() argument
190 static inline unsigned int cpuid_ebx(unsigned int op) { return 0; }; in cpuid_ebx() argument
191 static inline unsigned int cpuid_ecx(unsigned int op) { return 0; }; in cpuid_ecx() argument
192 static inline unsigned int cpuid_edx(unsigned int op) { return 0; }; in cpuid_edx() argument
Dcpuid.c24 unsigned int cpuid_##reg(unsigned int op) \
27 __cpuid(op, eax, ebx, ecx, edx); \
/tools/net/
Dbpf_dbg.c218 const char *op, *fmt; in bpf_disasm() local
224 op = op_table[BPF_RET]; in bpf_disasm()
228 op = op_table[BPF_RET]; in bpf_disasm()
232 op = op_table[BPF_RET]; in bpf_disasm()
236 op = op_table[BPF_MISC_TAX]; in bpf_disasm()
240 op = op_table[BPF_MISC_TXA]; in bpf_disasm()
244 op = op_table[BPF_ST]; in bpf_disasm()
248 op = op_table[BPF_STX]; in bpf_disasm()
252 op = op_table[BPF_LD_W]; in bpf_disasm()
256 op = op_table[BPF_LD_H]; in bpf_disasm()
[all …]
/tools/perf/bench/
Dfutex.h35 #define futex(uaddr, op, val, timeout, uaddr2, val3, opflags) \ argument
36 syscall(SYS_futex, uaddr, op | opflags, val, timeout, uaddr2, val3)
/tools/perf/arch/x86/util/
Dheader.c10 cpuid(unsigned int op, unsigned int *a, unsigned int *b, unsigned int *c, in cpuid() argument
19 : "a" (op)); in cpuid()
/tools/hv/
Dhv_vss_daemon.c142 int op; in main() local
245 op = vss_msg->vss_hdr.operation; in main()
248 switch (op) { in main()
251 error = vss_operate(op); in main()
256 syslog(LOG_ERR, "Illegal op:%d\n", op); in main()
Dhv_kvp_daemon.c875 kvp_get_ip_info(int family, char *if_name, int op, in kvp_get_ip_info() argument
892 if (op == KVP_OP_ENUMERATE) { in kvp_get_ip_info()
944 if (op == KVP_OP_GET_IP_INFO) { in kvp_get_ip_info()
1390 int op; in main() local
1515 op = hv_msg->kvp_hdr.operation; in main()
1519 if ((in_hand_shake) && (op == KVP_OP_REGISTER1)) { in main()
1537 switch (op) { in main()
1610 if (op != KVP_OP_ENUMERATE) in main()
/tools/perf/scripts/python/
Dfutex-contention.py25 nr, uaddr, op, val, utime, uaddr2, val3): argument
26 cmd = op & FUTEX_CMD_MASK
/tools/perf/util/
Dprobe-finder.c174 Dwarf_Op *op; in convert_variable_location() local
188 if (dwarf_getlocation_addr(&attr, addr, &op, &nops, 1) <= 0) { in convert_variable_location()
199 if (dwarf_getlocation_addr(&attr, addr, &op, in convert_variable_location()
210 if (op->atom == DW_OP_addr) { in convert_variable_location()
227 if (op->atom == DW_OP_fbreg) { in convert_variable_location()
231 offs = op->number; in convert_variable_location()
232 op = &fb_ops[0]; in convert_variable_location()
235 if (op->atom >= DW_OP_breg0 && op->atom <= DW_OP_breg31) { in convert_variable_location()
236 regn = op->atom - DW_OP_breg0; in convert_variable_location()
237 offs += op->number; in convert_variable_location()
[all …]
Dstrfilter.c61 static struct strfilter_node *strfilter_node__alloc(const char *op, in strfilter_node__alloc() argument
68 node->p = op; in strfilter_node__alloc()
Dparse-events.c1263 unsigned int type, op, i, printed = 0; in print_hwcache_events() local
1267 for (op = 0; op < PERF_COUNT_HW_CACHE_OP_MAX; op++) { in print_hwcache_events()
1269 if (!perf_evsel__is_cache_op_valid(type, op)) in print_hwcache_events()
1273 __perf_evsel__hw_cache_type_op_res_name(type, op, i, in print_hwcache_events()
1279 type | (op << 8) | (i << 16))) in print_hwcache_events()
Devsel.h139 bool perf_evsel__is_cache_op_valid(u8 type, u8 op);
151 int __perf_evsel__hw_cache_type_op_res_name(u8 type, u8 op, u8 result,
Devsel.c411 bool perf_evsel__is_cache_op_valid(u8 type, u8 op) in perf_evsel__is_cache_op_valid() argument
413 if (perf_evsel__hw_cache_stat[type] & COP(op)) in perf_evsel__is_cache_op_valid()
419 int __perf_evsel__hw_cache_type_op_res_name(u8 type, u8 op, u8 result, in __perf_evsel__hw_cache_type_op_res_name() argument
424 perf_evsel__hw_cache_op[op][0], in __perf_evsel__hw_cache_type_op_res_name()
429 perf_evsel__hw_cache_op[op][1]); in __perf_evsel__hw_cache_type_op_res_name()
434 u8 op, result, type = (config >> 0) & 0xff; in __perf_evsel__hw_cache_name() local
440 op = (config >> 8) & 0xff; in __perf_evsel__hw_cache_name()
442 if (op > PERF_COUNT_HW_CACHE_OP_MAX) in __perf_evsel__hw_cache_name()
451 if (!perf_evsel__is_cache_op_valid(type, op)) in __perf_evsel__hw_cache_name()
454 return __perf_evsel__hw_cache_type_op_res_name(type, op, result, bf, size); in __perf_evsel__hw_cache_name()
/tools/usb/
Dffs-test.c373 const char *name, *op, *in_name, *out_name; in start_thread_helper() local
390 op = "write"; in start_thread_helper()
393 op = "read"; in start_thread_helper()
399 debug("%s: %s: EOF", name, op); in start_thread_helper()
402 debug("%s: %s", name, op); in start_thread_helper()
404 warn("%s: %s", name, op); in start_thread_helper()
/tools/perf/Documentation/
Dperf-bench.txt34 5.855061 usecs/op
123 8.091833 usecs/op
130 16.948000 usecs/op
Dperf-list.txt49 IBS execution sampling (IBS op) with the IBS Op Counter Control bit
54 perf record -a -e cpu-cycles:p ... # use ibs op counting cycles
56 perf record -a -e r0C1:p ... # use ibs op counting micro-ops
/tools/perf/util/scripting-engines/
Dtrace-event-perl.c225 if (strcmp(args->op.op, ":") == 0) in define_event_symbols()
227 define_event_symbols(event, ev_name, args->op.left); in define_event_symbols()
228 define_event_symbols(event, ev_name, args->op.right); in define_event_symbols()
Dtrace-event-python.c216 if (strcmp(args->op.op, ":") == 0) in define_event_symbols()
218 define_event_symbols(event, ev_name, args->op.left); in define_event_symbols()
219 define_event_symbols(event, ev_name, args->op.right); in define_event_symbols()
/tools/testing/ktest/
Dktest.pl782 my $op = $2;
785 if ($op eq "||") {
789 if ($op eq "&&") {
1118 my $op = $option;
1120 $op =~ s/\[.*\]//;
1121 if (!exists($option_map{$op}) &&
1122 !exists($default{$op}) &&
1123 !exists($used_options{$op})) {
1124 $not_used{$op} = 1;

12