Home
last modified time | relevance | path

Searched refs:metric_event (Results 1 – 10 of 10) sorted by relevance

/linux/tools/perf/arch/x86/util/
H A Dtopdown.c87 int topdown_insert_slots_event(struct list_head *list, int idx, struct evsel *metric_event) in topdown_insert_slots_event() argument
89 struct evsel *evsel = evsel__new_idx(&metric_event->core.attr, idx); in topdown_insert_slots_event()
95 evsel->core.cpus = perf_cpu_map__get(metric_event->core.cpus); in topdown_insert_slots_event()
96 evsel->core.pmu_cpus = perf_cpu_map__get(metric_event->core.pmu_cpus); in topdown_insert_slots_event()
98 evsel->pmu = metric_event->pmu; in topdown_insert_slots_event()
100 evsel->precise_max = metric_event->precise_max; in topdown_insert_slots_event()
101 evsel->sample_read = metric_event->sample_read; in topdown_insert_slots_event()
102 evsel->weak_group = metric_event->weak_group; in topdown_insert_slots_event()
103 evsel->bpf_counter = metric_event->bpf_counter; in topdown_insert_slots_event()
104 evsel->retire_lat = metric_event->retire_lat; in topdown_insert_slots_event()
[all …]
H A Devlist.c87 struct evsel *pos, *metric_event = NULL; in arch_evlist__add_required_events() local
98 if (metric_event == NULL && arch_is_topdown_metrics(pos)) in arch_evlist__add_required_events()
99 metric_event = pos; in arch_evlist__add_required_events()
102 if (metric_event == NULL) { in arch_evlist__add_required_events()
106 return topdown_insert_slots_event(list, idx + 1, metric_event); in arch_evlist__add_required_events()
H A Dtopdown.h13 int topdown_insert_slots_event(struct list_head *list, int idx, struct evsel *metric_event);
/linux/tools/perf/util/
H A Dmetricgroup.c36 struct metric_event *metricgroup__lookup(struct rblist *metric_events, in metricgroup__lookup()
41 struct metric_event me = { in metricgroup__lookup()
52 return container_of(nd, struct metric_event, nd); in metricgroup__lookup()
57 return container_of(nd, struct metric_event, nd); in metricgroup__lookup()
64 struct metric_event *a = container_of(rb_node, in metric_event_cmp()
65 struct metric_event, in metric_event_cmp()
67 const struct metric_event *b = entry; in metric_event_cmp()
79 struct metric_event *me = malloc(sizeof(struct metric_event)); in metric_event_new()
83 memcpy(me, entry, sizeof(struct metric_event)); in metric_event_new()
84 me->evsel = ((struct metric_event *)entry)->evsel; in metric_event_new()
[all …]
H A Dmetricgroup.h22 struct metric_event { struct
69 struct metric_event *metricgroup__lookup(struct rblist *metric_events,
H A Dpython.c1317 struct metric_event *me = container_of(node, struct metric_event, nd); in pyrf_evlist__metrics()
1424 struct metric_event *me = container_of(node, struct metric_event, nd); in pyrf_evlist__compute_metric()
2043 struct metric_event *me = container_of(node, struct metric_event, nd); in pyrf_evlist__from_evlist()
H A Dstat-shadow.c277 struct metric_event *me; in perf_stat__print_shadow_stats_metricgroup()
/linux/tools/perf/tests/
H A Dparse-metric.c52 struct metric_event *me; in compute_single()
H A Dpmu-events.c878 struct metric_event *me = metricgroup__lookup(&evlist->metric_events, evsel, false); in test__parsing_callback()
/linux/tools/perf/
H A Dbuiltin-script.c2224 struct metric_event *metric_me = metricgroup__lookup(&metric_evlist->metric_events, in script_find_metrics()
2245 struct metric_event *script_me = in script_find_metrics()