Home
last modified time | relevance | path

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

/openbmc/linux/tools/perf/tests/
H A Dswitch-tracking.c270 struct event_node *events_array, *node; in process_events() local
289 events_array = calloc(cnt, sizeof(struct event_node)); in process_events()
290 if (!events_array) { in process_events()
298 events_array[pos++] = *node; in process_events()
300 qsort(events_array, cnt, sizeof(struct event_node), compar); in process_events()
303 ret = process_event(evlist, events_array[pos].event, in process_events()
312 free(events_array); in process_events()