perf evswitch: Add the names of on/off events
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 15 Aug 2019 14:11:14 +0000 (11:11 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 15 Aug 2019 15:24:42 +0000 (12:24 -0300)
commit0b495b121585a1b6ca120fe13f950e2f86ca8197
tree058b99e8bf9d87254f1ad1c4384e1234d014464c
parent8829e56fa050998164e496d380cd69186ae9b8d0
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>
tools/perf/builtin-script.c
tools/perf/util/evswitch.h