diff options
Diffstat (limited to 'tools/perf/util/evsel.h')
-rw-r--r-- | tools/perf/util/evsel.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/perf/util/evsel.h b/tools/perf/util/evsel.h index 1d3d5a3dbe60..f6fc8f651a25 100644 --- a/tools/perf/util/evsel.h +++ b/tools/perf/util/evsel.h | |||
@@ -37,6 +37,12 @@ struct perf_sample_id { | |||
37 | struct perf_evsel *evsel; | 37 | struct perf_evsel *evsel; |
38 | }; | 38 | }; |
39 | 39 | ||
40 | /** struct perf_evsel - event selector | ||
41 | * | ||
42 | * @name - Can be set to retain the original event name passed by the user, | ||
43 | * so that when showing results in tools such as 'perf stat', we | ||
44 | * show the name used, not some alias. | ||
45 | */ | ||
40 | struct perf_evsel { | 46 | struct perf_evsel { |
41 | struct list_head node; | 47 | struct list_head node; |
42 | struct perf_event_attr attr; | 48 | struct perf_event_attr attr; |
@@ -45,6 +51,7 @@ struct perf_evsel { | |||
45 | struct xyarray *id; | 51 | struct xyarray *id; |
46 | struct perf_counts *counts; | 52 | struct perf_counts *counts; |
47 | int idx; | 53 | int idx; |
54 | char *name; | ||
48 | void *priv; | 55 | void *priv; |
49 | struct cgroup_sel *cgrp; | 56 | struct cgroup_sel *cgrp; |
50 | }; | 57 | }; |