Lines Matching refs:evsel
11 #include "evsel.h"
298 const char *event_name(struct perf_evsel *evsel)
300 u64 config = evsel->attr.config;
301 int type = evsel->attr.type;
303 if (evsel->name)
304 return evsel->name;
849 struct perf_evsel *evsel;
850 evsel = perf_evsel__new(&attr, evlist->nr_entries);
851 if (evsel == NULL)
853 perf_evlist__add(evlist, evsel);
855 evsel->name = calloc(str - ostr + 1, 1);
856 if (!evsel->name)
858 strncpy(evsel->name, ostr, str - ostr);