diff options
author | 2015-07-21 12:44:04 +0300 | |
---|---|---|
committer | 2015-07-23 22:51:13 -0300 | |
commit | b757bb09134f479a087ece08d2cd2a6ba31c9210 (patch) | |
tree | 43c27fd49ea428f2e62c62c93040c7cdf3cc13fc /tools/perf/util/evlist.h | |
parent | perf tools: Add new PERF_RECORD_SWITCH event (diff) | |
download | linux-b757bb09134f479a087ece08d2cd2a6ba31c9210.tar.gz linux-b757bb09134f479a087ece08d2cd2a6ba31c9210.tar.bz2 linux-b757bb09134f479a087ece08d2cd2a6ba31c9210.zip |
perf record: Add option --switch-events to select PERF_RECORD_SWITCH events
Add an option to select PERF_RECORD_SWITCH events.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Tested-by: Jiri Olsa <jolsa@redhat.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Pawel Moll <pawel.moll@arm.com>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1437471846-26995-4-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/evlist.h')
-rw-r--r-- | tools/perf/util/evlist.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/evlist.h b/tools/perf/util/evlist.h index 406a8216a51e..a8930b68456b 100644 --- a/tools/perf/util/evlist.h +++ b/tools/perf/util/evlist.h @@ -114,6 +114,7 @@ void perf_evlist__close(struct perf_evlist *evlist); void perf_evlist__set_id_pos(struct perf_evlist *evlist); bool perf_can_sample_identifier(void); +bool perf_can_record_switch_events(void); void perf_evlist__config(struct perf_evlist *evlist, struct record_opts *opts); int record_opts__config(struct record_opts *opts); |