diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-08-15 11:11:14 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-08-15 12:24:42 -0300 |
commit | 0b495b121585a1b6ca120fe13f950e2f86ca8197 (patch) | |
tree | 058b99e8bf9d87254f1ad1c4384e1234d014464c /tools/perf/util/evswitch.h | |
parent | 8829e56fa050998164e496d380cd69186ae9b8d0 (diff) | |
download | linux-stable-0b495b121585a1b6ca120fe13f950e2f86ca8197.tar.gz linux-stable-0b495b121585a1b6ca120fe13f950e2f86ca8197.tar.bz2 linux-stable-0b495b121585a1b6ca120fe13f950e2f86ca8197.zip |
perf evswitch: Add the names of on/off events
So that we can have macros for the OPT_ entries and also for finding
those in an evlist, this way other tools will use this very easily.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Florian Weimer <fweimer@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: William Cohen <wcohen@redhat.com>
Link: https://lkml.kernel.org/n/tip-q0og1xoqqi0w38ve5u0a43k2@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/evswitch.h')
-rw-r--r-- | tools/perf/util/evswitch.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/evswitch.h b/tools/perf/util/evswitch.h index bae3a22ad719..891164504080 100644 --- a/tools/perf/util/evswitch.h +++ b/tools/perf/util/evswitch.h @@ -9,6 +9,7 @@ struct evsel; struct evswitch { struct evsel *on, *off; + const char *on_name, *off_name; bool discarding; bool show_on_off_events; }; |