aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/evswitch.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2019-08-15 11:11:14 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-08-15 12:24:42 -0300
commit0b495b121585a1b6ca120fe13f950e2f86ca8197 (patch)
tree058b99e8bf9d87254f1ad1c4384e1234d014464c /tools/perf/util/evswitch.h
parentperf evswitch: Move switch logic to use in other tools (diff)
downloadlinux-dev-0b495b121585a1b6ca120fe13f950e2f86ca8197.tar.xz
linux-dev-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.h1
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;
};