metric_event
if (metric_event == NULL) {
return topdown_insert_slots_event(list, idx + 1, metric_event);
struct evsel *pos, *metric_event = NULL;
if (metric_event == NULL && arch_is_topdown_metrics(pos))
metric_event = pos;
evsel->precise_max = metric_event->precise_max;
evsel->sample_read = metric_event->sample_read;
evsel->weak_group = metric_event->weak_group;
evsel->bpf_counter = metric_event->bpf_counter;
evsel->retire_lat = metric_event->retire_lat;
evsel__set_leader(evsel, evsel__leader(metric_event));
int topdown_insert_slots_event(struct list_head *list, int idx, struct evsel *metric_event)
struct evsel *evsel = evsel__new_idx(&metric_event->core.attr, idx);
evsel->core.cpus = perf_cpu_map__get(metric_event->core.cpus);
evsel->core.pmu_cpus = perf_cpu_map__get(metric_event->core.pmu_cpus);
evsel->pmu = metric_event->pmu;
int topdown_insert_slots_event(struct list_head *list, int idx, struct evsel *metric_event);
struct metric_event *metric_me = metricgroup__lookup(&metric_evlist->metric_events,
struct metric_event *script_me =
struct metric_event *me;
struct metric_event *me = metricgroup__lookup(&evlist->metric_events, evsel, false);
struct metric_event *me;
struct metric_event *old_me, *new_me;
old_me = container_of(nd, struct metric_event, nd);
struct metric_event *metricgroup__lookup(struct rblist *metric_events,
struct metric_event me = {
return container_of(nd, struct metric_event, nd);
return container_of(nd, struct metric_event, nd);
struct metric_event *a = container_of(rb_node,
struct metric_event,
const struct metric_event *b = entry;
struct metric_event *me = malloc(sizeof(struct metric_event));
memcpy(me, entry, sizeof(struct metric_event));
me->evsel = ((struct metric_event *)entry)->evsel;
struct metric_event *me = container_of(rb_node, struct metric_event, nd);
struct metric_event *metricgroup__lookup(struct rblist *metric_events,
struct metric_event *me = container_of(node, struct metric_event, nd);
struct metric_event *me = container_of(node, struct metric_event, nd);
struct metric_event *me = container_of(node, struct metric_event, nd);
struct metric_event *me;