/linux-master/tools/perf/ |
H A D | builtin-timechart.c | 18 #include "util/evsel.h" 570 struct evsel *evsel, 577 struct evsel *evsel, 582 if (evsel->core.attr.sample_type & PERF_SAMPLE_TIME) { 589 if (evsel->handler != NULL) { 590 tracepoint_handler f = evsel->handler; 591 return f(tchart, evsel, sample, 600 struct evsel *evse 574 process_sample_event(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct evsel *evsel, struct machine *machine) argument 599 process_sample_cpu_idle(struct timechart *tchart __maybe_unused, struct evsel *evsel, struct perf_sample *sample, const char *backtrace __maybe_unused) argument 615 process_sample_cpu_frequency(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample, const char *backtrace __maybe_unused) argument 628 process_sample_sched_wakeup(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample, const char *backtrace) argument 642 process_sample_sched_switch(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample, const char *backtrace) argument 658 process_sample_power_start(struct timechart *tchart __maybe_unused, struct evsel *evsel, struct perf_sample *sample, const char *backtrace __maybe_unused) argument 681 process_sample_power_frequency(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample, const char *backtrace __maybe_unused) argument 851 process_enter_read(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample) argument 861 process_exit_read(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample) argument 871 process_enter_write(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample) argument 881 process_exit_write(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample) argument 891 process_enter_sync(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample) argument 901 process_exit_sync(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample) argument 911 process_enter_tx(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample) argument 921 process_exit_tx(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample) argument 931 process_enter_rx(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample) argument 941 process_exit_rx(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample) argument 951 process_enter_poll(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample) argument 961 process_exit_poll(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample) argument [all...] |
H A D | builtin-top.c | 30 #include "util/evsel.h" 113 struct evsel *evsel; local 123 evsel = hists_to_evsel(he->hists); 150 err = symbol__annotate(&he->ms, evsel, NULL); 200 struct evsel *evsel, u64 ip) 217 err = hist_entry__inc_addr_samples(he, sample, evsel, ip); 243 struct evsel *evsel; local 324 struct evsel *evsel = top->sym_evsel; local 732 struct evsel *evsel = iter->evsel; variable in typeref:struct:evsel 743 perf_event__process_sample(struct perf_tool *tool, const union perf_event *event, struct evsel *evsel, struct perf_sample *sample, struct machine *machine) argument 856 perf_top__process_lost(struct perf_top *top, union perf_event *event, struct evsel *evsel) argument 865 perf_top__process_lost_samples(struct perf_top *top, union perf_event *event, struct evsel *evsel) argument 952 struct evsel *evsel; local 991 perf_top_overwrite_fallback(struct perf_top *top, struct evsel *evsel) argument 1143 struct evsel *evsel; local [all...] |
H A D | builtin-trace.c | 36 #include "util/evsel.h" 135 struct evsel *sys_enter, 294 * The evsel->priv as used by 'perf trace' 321 static inline struct syscall_tp *__evsel__syscall_tp(struct evsel *evsel) argument 323 struct evsel_trace *et = evsel->priv; 328 static struct syscall_tp *evsel__syscall_tp(struct evsel *evsel) argument 330 if (evsel->priv == NULL) { 331 evsel 342 __evsel__syscall_arg_fmt(struct evsel *evsel) argument 349 evsel__syscall_arg_fmt(struct evsel *evsel) argument 374 evsel__init_tp_uint_field(struct evsel *evsel, struct tp_field *field, const char *name) argument 388 evsel__init_tp_ptr_field(struct evsel *evsel, struct tp_field *field, const char *name) argument 402 evsel__delete_priv(struct evsel *evsel) argument 408 evsel__init_syscall_tp(struct evsel *evsel) argument 423 evsel__init_augmented_syscall_tp(struct evsel *evsel, struct evsel *tp) argument 441 evsel__init_augmented_syscall_tp_args(struct evsel *evsel) argument 448 evsel__init_augmented_syscall_tp_ret(struct evsel *evsel) argument 455 evsel__init_raw_syscall_tp(struct evsel *evsel, void *handler) argument 470 struct evsel *evsel = evsel__newtp("raw_syscalls", direction); local 1875 evsel__init_tp_arg_scnprintf(struct evsel *evsel) argument 2128 trace__syscall_info(struct trace *trace, struct evsel *evsel, int id) argument 2278 trace__fprintf_sample(struct trace *trace, struct evsel *evsel, struct perf_sample *sample, struct thread *thread) argument 2329 trace__sys_enter(struct trace *trace, struct evsel *evsel, union perf_event *event __maybe_unused, struct perf_sample *sample) argument 2408 trace__fprintf_sys_enter(struct trace *trace, struct evsel *evsel, struct perf_sample *sample) argument 2441 trace__resolve_callchain(struct trace *trace, struct evsel *evsel, struct perf_sample *sample, struct callchain_cursor *cursor) argument 2471 errno_to_name(struct evsel *evsel, int err) argument 2478 trace__sys_exit(struct trace *trace, struct evsel *evsel, union perf_event *event __maybe_unused, struct perf_sample *sample) argument 2614 trace__vfs_getname(struct trace *trace, struct evsel *evsel, union perf_event *event __maybe_unused, struct perf_sample *sample) argument 2675 trace__sched_stat_runtime(struct trace *trace, struct evsel *evsel, union perf_event *event __maybe_unused, struct perf_sample *sample) argument 2737 trace__fprintf_tp_fields(struct trace *trace, struct evsel *evsel, struct perf_sample *sample, struct thread *thread, void *augmented_args, int augmented_args_size) argument 2809 trace__event_handler(struct trace *trace, struct evsel *evsel, union perf_event *event __maybe_unused, struct perf_sample *sample) argument 2917 trace__pgfault(struct trace *trace, struct evsel *evsel, union perf_event *event __maybe_unused, struct perf_sample *sample) argument 2996 trace__set_base_time(struct trace *trace, struct evsel *evsel, struct perf_sample *sample) argument 3013 trace__process_sample(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct evsel *evsel, struct machine *machine __maybe_unused) argument 3113 struct evsel *evsel, *tmp; local 3143 struct evsel *evsel; local 3163 struct evsel *evsel; local 3174 struct evsel *evsel; local 3684 evsel__find_syscall_arg_fmt_by_name(struct evsel *evsel, char *arg) argument 3699 trace__expand_filter(struct trace *trace __maybe_unused, struct evsel *evsel) argument 3800 struct evsel *evsel; local 3818 struct evsel *evsel, *pgfault_maj = NULL, *pgfault_min = NULL; local 4122 struct evsel *evsel; local 4428 struct evsel *evsel; local 4436 evsel__set_syscall_arg_fmt(struct evsel *evsel, const char *name) argument 4457 struct evsel *evsel; local 4790 struct evsel *evsel; local [all...] |
/linux-master/tools/perf/python/ |
H A D | tracepoint.py | 8 class tracepoint(perf.evsel): 11 perf.evsel.__init__(self,
|
H A D | twatch.py | 14 evsel = perf.evsel(type = perf.TYPE_SOFTWARE, 28 evsel.open(cpus = cpus, threads = threads); 30 evlist.add(evsel)
|
/linux-master/tools/perf/tests/ |
H A D | backward-ring-buffer.c | 90 struct evsel *evsel __maybe_unused;
|
H A D | code-reading.c | 20 #include "evsel.h" 550 struct evsel *evsel = NULL; local 640 evsel = evlist__first(evlist); 642 evsel->core.attr.comm = 1; 643 evsel->core.attr.disabled = 1; 644 evsel->core.attr.enable_on_exec = 0;
|
H A D | event-times.c | 11 #include "evsel.h" 19 struct evsel *evsel = evlist__last(evlist); local 41 evsel->core.attr.enable_on_exec = 1; 61 struct evsel *evsel = evlist__last(evlist); local 73 evsel->core.attr.disabled = 1; 75 err = evsel__open_per_thread(evsel, threads); 82 return evsel__enable(evsel) == 0 ? TEST_OK : TEST_FAIL; 87 struct evsel *evse local 107 struct evsel *evsel = evlist__last(evlist); local 114 struct evsel *evsel = evlist__last(evlist); local 143 struct evsel *evsel = evlist__last(evlist); local 168 struct evsel *evsel; local [all...] |
H A D | event_update.c | 7 #include "evsel.h" 82 struct evsel *evsel; local 88 evsel = evlist__first(evlist); 91 !perf_evsel__alloc_id(&evsel->core, 1, 1)); 93 perf_evlist__id_add(&evlist->core, &evsel->core, 0, 0, 123); 95 free((char *)evsel->unit); 96 evsel->unit = strdup("KRAVA"); 99 !perf_event__synthesize_event_update_unit(NULL, evsel, process_event_unit)); 101 evsel [all...] |
H A D | evsel-roundtrip-name.c | 3 #include "evsel.h" 22 struct evsel *evsel; local 39 evlist__for_each_entry(evlist, evsel) { 40 if (strcmp(evsel__name(evsel), name)) { 41 pr_debug("%s != %s\n", evsel__name(evsel), name); 58 struct evsel *evsel; local 73 evlist__for_each_entry(evlist, evsel) { 74 if (strcmp(evsel__name(evsel), name [all...] |
H A D | evsel-tp-sched.c | 4 #include "evsel.h" 8 static int evsel__test_field(struct evsel *evsel, const char *name, int size, bool should_be_signed) argument 10 struct tep_format_field *field = evsel__field(evsel, name); 15 pr_debug("%s: \"%s\" field not found!\n", evsel->name, name); 22 evsel->name, name, is_signed, should_be_signed); 28 evsel->name, name, field->size, size); 38 struct evsel *evsel = evsel__newtp("sched", "sched_switch"); local 41 if (IS_ERR(evsel)) { [all...] |
H A D | expand-cgroup.c | 22 int nr_members; /* for the first evsel only */ 27 struct evsel *evsel; local 38 evlist__for_each_entry(evlist, evsel) { 39 ev_name[i] = strdup(evsel->name); 63 evlist__for_each_entry(evlist, evsel) { 64 if (!evsel__name_is(evsel, ev_name[i % nr_events])) { 66 pr_debug(" evsel[%d]: %s\n expected: %s\n", 67 i, evsel->name, ev_name[i % nr_events]); 70 if (strcmp(evsel [all...] |
H A D | hists_cumulate.c | 8 #include "util/evsel.h" 83 struct evsel *evsel = hists_to_evsel(hists); local 90 .evsel = evsel, 164 typedef int (*test_fn_t)(struct evsel *, struct machine *); 263 static int test1(struct evsel *evsel, struct machine *machine) argument 266 struct hists *hists = evsel__hists(evsel); 296 evsel__reset_sample_bit(evsel, CALLCHAI 314 test2(struct evsel *evsel, struct machine *machine) argument 462 test3(struct evsel *evsel, struct machine *machine) argument 519 test4(struct evsel *evsel, struct machine *machine) argument 710 struct evsel *evsel; local [all...] |
H A D | hists_filter.c | 6 #include "util/evsel.h" 52 struct evsel *evsel; local 59 * each evsel will have 10 samples but the 4th sample 63 evlist__for_each_entry(evlist, evsel) { 66 .evsel = evsel, 71 struct hists *hists = evsel__hists(evsel); 121 struct evsel *evsel; local [all...] |
H A D | hists_link.c | 6 #include "evsel.h" 68 struct evsel *evsel; local 76 * each evsel will have 10 samples - 5 common and 5 distinct. 77 * However the second evsel also has a collapsed entry for 80 evlist__for_each_entry(evlist, evsel) { 81 struct hists *hists = evsel__hists(evsel); 292 struct evsel *evsel, *first; local 325 evlist__for_each_entry(evlist, evsel) { [all...] |
H A D | hists_output.c | 8 #include "util/evsel.h" 53 struct evsel *evsel = hists_to_evsel(hists); local 60 .evsel = evsel, 129 typedef int (*test_fn_t)(struct evsel *, struct machine *); 138 static int test1(struct evsel *evsel, struct machine *machine) argument 141 struct hists *hists = evsel__hists(evsel); 171 evsel__output_resort(evsel, NUL 240 test2(struct evsel *evsel, struct machine *machine) argument 296 test3(struct evsel *evsel, struct machine *machine) argument 370 test4(struct evsel *evsel, struct machine *machine) argument 472 test5(struct evsel *evsel, struct machine *machine) argument 596 struct evsel *evsel; local [all...] |
H A D | keep-tracking.c | 13 #include "evsel.h" 77 struct evsel *evsel = NULL; local 97 evsel = evlist__first(evlist); 99 evsel->core.attr.comm = 1; 100 evsel->core.attr.disabled = 1; 101 evsel->core.attr.enable_on_exec = 0; 136 evsel = evlist__last(evlist); 138 CHECK__(evsel__disable(evsel));
|
H A D | mmap-basic.c | 10 #include "evsel.h" 45 struct evsel *evsels[nsyscalls], *evsel; local 140 evsel = evlist__id2evsel(evlist, sample.id); 141 if (evsel == NULL) { 143 " doesn't map to an evsel\n", sample.id); 146 nr_events[evsel->core.idx]++; 153 evlist__for_each_entry(evlist, evsel) { 154 if (nr_events[evsel->core.idx] != expected_nr_events[evsel 176 struct perf_evsel *evsel; local [all...] |
H A D | openat-syscall-all-cpus.c | 14 #include "evsel.h" 28 struct evsel *evsel; local 48 evsel = evsel__newtp("syscalls", "sys_enter_openat"); 49 if (IS_ERR(evsel)) { 56 if (evsel__open(evsel, cpus, threads) < 0) { 91 evsel->core.cpus = perf_cpu_map__get(cpus); 101 if (evsel__read_on_cpu(evsel, idx, 0) < 0) { 108 if (perf_counts(evsel->counts, idx, 0)->val != expected) { 110 expected, cpu.cpu, perf_counts(evsel [all...] |
H A D | openat-syscall-tp-fields.c | 9 #include "evsel.h" 42 struct evsel *evsel; local 51 evsel = evsel__newtp("syscalls", "sys_enter_openat"); 52 if (IS_ERR(evsel)) { 57 evlist__add(evlist, evsel); 65 evsel__config(evsel, &opts, NULL); 113 err = evsel__parse_sample(evsel, event, &sample); 119 tp_flags = evsel__intval(evsel, &sample, "flags");
|
H A D | openat-syscall.c | 12 #include "evsel.h" 21 struct evsel *evsel; local 32 evsel = evsel__newtp("syscalls", "sys_enter_openat"); 33 if (IS_ERR(evsel)) { 40 if (evsel__open_per_thread(evsel, threads) < 0) { 53 if (evsel__read_on_cpu(evsel, 0, 0) < 0) { 58 if (perf_counts(evsel->counts, 0, 0)->val != nr_openat_calls) { 60 nr_openat_calls, perf_counts(evsel->counts, 0, 0)->val); 66 perf_evsel__close_fd(&evsel [all...] |
H A D | parse-events.c | 3 #include "evsel.h" 37 static bool test_config(const struct evsel *evsel, __u64 expected_config) argument 39 __u32 type = evsel->core.attr.type; 40 __u64 config = evsel->core.attr.config; 52 static bool test_perf_config(const struct perf_evsel *evsel, __u64 expected_config) argument 54 return (evsel->attr.config & PERF_HW_EVENT_MASK) == expected_config; 87 struct evsel *evsel = evlist__first(evlist); local 91 TEST_ASSERT_VAL("wrong type", PERF_TYPE_TRACEPOINT == evsel 100 struct evsel *evsel; local 119 struct perf_evsel *evsel; local 157 struct evsel *evsel = evlist__first(evlist); local 166 assert_hw(struct perf_evsel *evsel, enum perf_hw_id id, const char *name) argument 183 struct perf_evsel *evsel; local 199 struct perf_evsel *evsel; local 221 struct evsel *evsel = evlist__first(evlist); local 231 struct perf_evsel *evsel; local 244 struct evsel *evsel = evlist__first(evlist); local 258 struct evsel *evsel = evlist__first(evlist); local 271 struct evsel *evsel = evlist__first(evlist); local 286 struct evsel *evsel = evlist__first(evlist); local 301 struct evsel *evsel = evlist__first(evlist); local 317 struct evsel *evsel = evlist__first(evlist); local 330 struct perf_evsel *evsel; local 347 struct perf_evsel *evsel; local 360 struct perf_evsel *evsel; local 373 struct perf_evsel *evsel; local 389 struct perf_evsel *evsel; local 400 struct perf_evsel *evsel; local 411 struct evsel *evsel = evlist__first(evlist); local 423 struct perf_evsel *evsel; local 436 struct evsel *evsel = evlist__first(evlist); local 451 struct evsel *evsel = evlist__first(evlist); local 466 struct evsel *evsel = evlist__first(evlist); local 481 struct evsel *evsel = evlist__first(evlist); local 495 struct evsel *evsel = evlist__first(evlist); local 509 struct evsel *evsel = evlist__first(evlist); local 523 struct evsel *evsel = evlist__first(evlist); local 537 struct evsel *evsel = evlist__first(evlist); local 551 struct evsel *evsel = evlist__first(evlist); local 565 struct evsel *evsel = evlist__first(evlist); local 579 struct evsel *evsel = evlist__first(evlist); local 593 struct evsel *evsel = evlist__first(evlist); local 607 struct evsel *evsel = evlist__first(evlist); local 625 struct evsel *evsel = evlist__first(evlist); local 645 struct evsel *evsel = evlist__first(evlist); local 688 struct evsel *evsel = evlist__first(evlist); local 709 struct evsel *evsel = evlist__first(evlist); local 740 struct evsel *evsel = evlist__first(evlist); local 760 struct evsel *evsel = NULL; local 876 struct evsel *evsel, *leader; local 925 struct evsel *evsel, *leader = NULL; local 989 struct evsel *evsel, *group1_leader = NULL, *group2_leader = NULL; local 1098 struct evsel *evsel, *leader; local 1149 struct evsel *evsel = NULL, *leader; local 1246 struct evsel *evsel = NULL, *leader; local 1293 struct evsel *evsel = NULL, *leader; local 1340 struct evsel *evsel = NULL, *leader; local 1387 struct evsel *evsel = NULL, *leader; local 1434 struct evsel *evsel = NULL, *leader; local 1494 struct evsel *evsel = NULL, *leader; local 1539 struct evsel *evsel = NULL; local 1557 struct evsel *evsel = NULL, *leader; local 1598 struct evsel *evsel = evlist__first(evlist); local 1611 struct evsel *evsel = NULL, *leader; local 1651 struct evsel *evsel = evlist__first(evlist); local 1666 struct evsel *evsel = evlist__first(evlist); local 1682 struct evsel *evsel = evlist__first(evlist); local 1694 struct evsel *evsel = evlist__first(evlist); local 1705 struct evsel *evsel = evlist__first(evlist); local 1713 struct evsel *evsel = evlist__first(evlist); local 1721 struct evsel *evsel = evlist__first(evlist); local 1729 struct evsel *evsel = evlist__first(evlist); local 1757 struct evsel *evsel = evlist__first(evlist); local 1765 struct evsel *evsel = evlist__first(evlist); local 1775 struct evsel *evsel = evlist__first(evlist); local 1785 struct evsel *evsel = evlist__first(evlist); local 1797 struct evsel *evsel = evlist__first(evlist); local 1809 struct evsel *evsel = evlist__first(evlist); local 1821 struct evsel *evsel = evlist__first(evlist); local [all...] |
H A D | parse-metric.c | 35 struct evsel *evsel; local 39 evlist__for_each_entry(evlist, evsel) { 40 count = find_value(evsel->name, vals); 41 evsel->supported = true; 42 evsel->stats->aggr->counts.val = count; 43 if (evsel__name_is(evsel, "duration_time")) 53 struct evsel *evsel; local 55 evlist__for_each_entry(evlist, evsel) { [all...] |
H A D | perf-record.c | 10 #include "evsel.h" 57 struct evsel *evsel; local 108 evsel = evlist__first(evlist); 109 evsel__set_sample_bit(evsel, CPU); 110 evsel__set_sample_bit(evsel, TID); 111 evsel__set_sample_bit(evsel, TIME);
|
H A D | perf-time-to-tsc.c | 17 #include "evsel.h" 82 struct evsel *evsel = NULL; local 109 evlist__for_each_entry(evlist, evsel) { 110 evsel->core.attr.comm = 1; 111 evsel->core.attr.disabled = 1; 112 evsel->core.attr.enable_on_exec = 0; 162 CHECK_NOT_NULL__(evsel = evlist__event2evsel(evlist, event)); 163 CHECK__(evsel__parse_sample(evsel, event, &sample)); 167 CHECK_NOT_NULL__(evsel [all...] |