Lines Matching refs:me
37 struct metric_event me = { in metricgroup__lookup() local
44 nd = rblist__find(metric_events, &me); in metricgroup__lookup()
48 rblist__add_node(metric_events, &me); in metricgroup__lookup()
49 nd = rblist__find(metric_events, &me); in metricgroup__lookup()
73 struct metric_event *me = malloc(sizeof(struct metric_event)); in metric_event_new() local
75 if (!me) in metric_event_new()
77 memcpy(me, entry, sizeof(struct metric_event)); in metric_event_new()
78 me->evsel = ((struct metric_event *)entry)->evsel; in metric_event_new()
79 INIT_LIST_HEAD(&me->head); in metric_event_new()
80 return &me->nd; in metric_event_new()
86 struct metric_event *me = container_of(rb_node, struct metric_event, nd); in metric_event_delete() local
89 list_for_each_entry_safe(expr, tmp, &me->head, nd) { in metric_event_delete()
96 free(me); in metric_event_delete()
372 struct mep *me = malloc(sizeof(struct mep)); in mep_new() local
374 if (!me) in mep_new()
376 memcpy(me, entry, sizeof(struct mep)); in mep_new()
377 me->name = strdup(me->name); in mep_new()
378 if (!me->name) in mep_new()
380 me->metrics = strlist__new(NULL, NULL); in mep_new()
381 if (!me->metrics) in mep_new()
383 return &me->nd; in mep_new()
385 zfree(&me->name); in mep_new()
387 free(me); in mep_new()
394 struct mep me = { in mep_lookup() local
397 nd = rblist__find(groups, &me); in mep_lookup()
400 rblist__add_node(groups, &me); in mep_lookup()
401 nd = rblist__find(groups, &me); in mep_lookup()
410 struct mep *me = container_of(nd, struct mep, nd); in mep_delete() local
412 strlist__delete(me->metrics); in mep_delete()
413 zfree(&me->name); in mep_delete()
414 free(me); in mep_delete()
458 struct mep *me; in metricgroup__print_pmu_event() local
485 me = mep_lookup(groups, g); in metricgroup__print_pmu_event()
486 if (!me) in metricgroup__print_pmu_event()
488 strlist__add(me->metrics, s); in metricgroup__print_pmu_event()
629 struct mep *me = container_of(node, struct mep, nd); in metricgroup__print() local
632 printf("%s%s%s", me->name, metrics && !raw ? ":" : "", raw ? " " : "\n"); in metricgroup__print()
634 metricgroup__print_strlist(me->metrics, raw); in metricgroup__print()
1589 struct metric_event *me; in parse_groups() local
1639 me = metricgroup__lookup(metric_events_list, metric_events[0], true); in parse_groups()
1669 list_add(&expr->nd, &me->head); in parse_groups()