Searched refs:evsel (Results 101 - 125 of 181) sorted by last modified time

12345678

/linux-master/tools/perf/util/
H A Ddlfilter.c18 #include "evsel.h"
284 return &d->evsel->core.attr;
493 struct evsel *evsel,
506 d->evsel = evsel;
563 (evsel->core.attr.sample_type & PERF_SAMPLE_ADDR) &&
564 sample_addr_correlates_sym(&evsel->core.attr);
566 d_sample.event = evsel__name(evsel);
490 dlfilter__do_filter_event(struct dlfilter *d, union perf_event *event, struct perf_sample *sample, struct evsel *evsel, struct machine *machine, struct addr_location *al, struct addr_location *addr_al, bool early) argument
H A Dcallchain.h11 struct evsel;
253 struct evsel *evsel, struct addr_location *al,
H A Dcgroup.c3 #include "evsel.h"
103 struct evsel *counter;
155 struct evsel *counter;
201 static void evsel__set_default_cgroup(struct evsel *evsel, struct cgroup *cgroup) argument
203 if (evsel->cgrp == NULL)
204 evsel->cgrp = cgroup__get(cgroup);
209 struct evsel *evsel; local
211 evlist__for_each_entry(evlist, evsel)
420 struct evsel *pos, *evsel, *leader; local
[all...]
H A Dbpf_off_cpu.c4 #include "util/evsel.h"
41 struct evsel *evsel; local
52 evsel = evsel__new(&attr);
53 if (!evsel) {
58 evsel->core.attr.freq = 1;
59 evsel->core.attr.sample_period = 1;
61 evsel->core.attr.sample_type = PERF_SAMPLE_CALLCHAIN;
63 evlist__add(evlist, evsel);
65 free(evsel
253 struct evsel *evsel; local
299 struct evsel *evsel; local
[all...]
H A Dbuild-id.c48 struct evsel *evsel __maybe_unused,
H A Dbpf-filter.c9 #include "util/evsel.h"
58 static int check_sample_flags(struct evsel *evsel, struct perf_bpf_filter_expr *expr) argument
62 if (evsel->core.attr.sample_type & expr->sample_flags)
69 if (check_sample_flags(evsel, group) < 0)
78 evsel__name(evsel), expr->sample_flags);
82 pr_err("Error: %s event does not have %s\n", evsel__name(evsel), info->name);
88 int perf_bpf_filter__prepare(struct evsel *evsel) argument
104 list_for_each_entry(expr, &evsel
157 perf_bpf_filter__destroy(struct evsel *evsel) argument
169 perf_bpf_filter__lost_count(struct evsel *evsel) argument
[all...]
H A Damd-sample-raw.c269 struct evsel *evsel; local
274 evsel = evlist__event2evsel(evlist, event);
275 if (!evsel)
278 if (evsel->core.attr.type == ibs_fetch_type) {
284 } else if (evsel->core.attr.type == ibs_op_type) {
H A Dmetricgroup.h11 struct evsel;
18 * A node in a rblist keyed by the evsel. The global rblist of metric events
19 * generally exists in perf_stat_config. The evsel is looked up in the rblist
24 struct evsel *evsel; member in struct:metric_event
25 bool is_default; /* the metric evsel from the Default metricgroup */
42 * One in a list of metric_expr associated with an evsel. The data is used to
62 struct evsel **metric_events;
70 struct evsel *evsel,
[all...]
H A Dintel-bts.c18 #include "evsel.h"
732 struct evsel *evsel)
737 return evsel->core.attr.type == bts->pmu_type;
773 struct evsel *evsel; local
779 evlist__for_each_entry(evlist, evsel) {
780 if (evsel->core.attr.type == bts->pmu_type && evsel->core.ids) {
794 attr.sample_type = evsel
731 intel_bts_evsel_is_auxtrace(struct perf_session *session, struct evsel *evsel) argument
[all...]
H A Dheader.h101 struct evsel *events;
H A Devsel_fprintf.c6 #include "evsel.h"
43 int evsel__fprintf(struct evsel *evsel, struct perf_attr_details *details, FILE *fp) argument
49 struct evsel *pos;
51 if (!evsel__is_group_leader(evsel))
54 if (evsel->core.nr_members > 1)
55 printed += fprintf(fp, "%s{", evsel->group_name ?: "");
57 printed += fprintf(fp, "%s", evsel__name(evsel));
58 for_each_group_member(pos, evsel)
61 if (evsel
[all...]
H A Devsel_fprintf.h8 struct evsel;
18 int evsel__fprintf(struct evsel *evsel, struct perf_attr_details *details, FILE *fp);
H A Darm-spe.c23 #include "evsel.h"
789 struct evsel *evsel; local
797 evlist__for_each_entry(evlist, evsel) {
798 if ((evsel->core.attr.sample_type & PERF_SAMPLE_TIME))
1057 struct evsel *evsel)
1061 return evsel->core.attr.type == spe->pmu_type;
1108 struct evsel *evsel; local
1056 arm_spe_evsel_is_auxtrace(struct perf_session *session, struct evsel *evsel) argument
1124 struct evsel *evsel; local
[all...]
/linux-master/tools/perf/tests/
H A Dhists_link.c6 #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 Dparse-metric.c35 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 Dhists_output.c8 #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 Dhists_filter.c6 #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 Dhists_cumulate.c8 #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 Devsel-roundtrip-name.c3 #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...]
/linux-master/tools/perf/
H A Dbuiltin-diff.c13 #include "util/evsel.h"
394 struct evsel *evsel,
399 struct hists *hists = evsel__hists(evsel);
401 .evsel = evsel,
486 static struct evsel *evsel_match(struct evsel *evsel, argument
489 struct evsel *
391 diff__process_sample_event(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct evsel *evsel, struct machine *machine) argument
501 struct evsel *evsel; local
988 struct evsel *evsel; local
[all...]
H A Dbuiltin-timechart.c18 #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 Dbuiltin-kmem.c6 #include "util/evsel.h"
174 static int evsel__process_alloc_event(struct evsel *evsel, struct perf_sample *sample) argument
176 unsigned long ptr = evsel__intval(evsel, sample, "ptr"),
177 call_site = evsel__intval(evsel, sample, "call_site");
178 int bytes_req = evsel__intval(evsel, sample, "bytes_req"),
179 bytes_alloc = evsel__intval(evsel, sample, "bytes_alloc");
201 if (evsel__field(evsel, "node")) {
205 node2 = evsel__intval(evsel, sample, "node");
246 static int evsel__process_free_event(struct evsel *evse argument
397 find_callsite(struct evsel *evsel, struct perf_sample *sample) argument
754 parse_gfp_flags(struct evsel *evsel, struct perf_sample *sample, unsigned int gfp_flags) argument
806 evsel__process_page_alloc_event(struct evsel *evsel, struct perf_sample *sample) argument
878 evsel__process_page_free_event(struct evsel *evsel, struct perf_sample *sample) argument
958 process_sample_event(struct perf_tool *tool __maybe_unused, union perf_event *event, struct perf_sample *sample, struct evsel *evsel, struct machine *machine) argument
1388 struct evsel *evsel; local
2015 struct evsel *evsel = evlist__find_tracepoint_by_name(session->evlist, "kmem:mm_page_alloc"); local
[all...]
/linux-master/tools/perf/arch/x86/util/
H A Devlist.c9 #include "evsel.h"
28 struct evsel *evsel = evsel__new(attrs + i); local
30 if (evsel == NULL)
32 list_add_tail(&evsel->core.node, &head);
38 struct evsel *evsel; local
40 evsel = evsel__new(attrs + i);
41 if (evsel == NULL)
43 evsel
58 struct evsel *evsel, *n; local
[all...]
H A Devsel.c4 #include "util/evsel.h"
9 #include "evsel.h"
16 void arch_evsel__set_sample_weight(struct evsel *evsel) argument
18 evsel__set_sample_bit(evsel, WEIGHT_STRUCT);
21 /* Check whether the evsel's PMU supports the perf metrics */
22 bool evsel__sys_has_perf_metrics(const struct evsel *evsel) argument
24 const char *pmu_name = evsel->pmu_name ? evsel
41 arch_evsel__must_be_in_group(const struct evsel *evsel) argument
50 arch_evsel__hw_name(struct evsel *evsel, char *bf, size_t size) argument
77 arch__post_evsel_config(struct evsel *evsel, struct perf_event_attr *attr) argument
105 arch_evsel__open_strerror(struct evsel *evsel, char *msg, size_t size) argument
[all...]
/linux-master/tools/perf/ui/
H A Dhist.c12 #include "../util/evsel.h"
32 struct evsel *evsel = hists_to_evsel(hists); local
47 if (evsel__is_group_event(evsel)) {
50 int nr_members = evsel->core.nr_members;
52 prev_idx = evsel__group_idx(evsel);
61 evsel = hists_to_evsel(pair->hists);
62 idx_delta = evsel__group_idx(evsel) - prev_idx - 1;
86 prev_idx = evsel__group_idx(evsel);
167 struct evsel *evse local
172 struct evsel *evsel = hists_to_evsel(pair->hists); local
189 struct evsel *evsel = hists_to_evsel(a->hists); local
231 struct evsel *evsel; local
295 struct evsel *evsel = hists_to_evsel(hists); local
869 struct evsel *evsel; local
[all...]

Completed in 270 milliseconds

12345678