diff options
author | Mathieu Poirier <mathieu.poirier@linaro.org> | 2018-03-30 22:10:32 +0000 |
---|---|---|
committer | Mathieu Poirier <mathieu.poirier@linaro.org> | 2019-04-03 04:17:30 -0600 |
commit | 5b8f0f6caf09d1b5c03ff6a2004f4af325f90d32 (patch) | |
tree | c80bac6db804f8993149f8bf210c9dd5cb8d261e | |
parent | 4d49c2b60ac5e45dedf70a5f7c5106f94201074d (diff) |
perf tools: Configure SWITCH_EVENTS in CPU-wide mode
Ask the perf core to generate an event when processes are swapped in/out of
context. That way proper action can be taken by the decoding code when
faced with such event.
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
-rw-r--r-- | tools/perf/arch/arm/util/cs-etm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/arch/arm/util/cs-etm.c b/tools/perf/arch/arm/util/cs-etm.c index 59b189314422..19f2049a20c1 100644 --- a/tools/perf/arch/arm/util/cs-etm.c +++ b/tools/perf/arch/arm/util/cs-etm.c @@ -257,6 +257,9 @@ static int cs_etm_recording_options(struct auxtrace_record *itr, ptr->evlist = evlist; ptr->snapshot_mode = opts->auxtrace_snapshot_mode; + if (perf_can_record_switch_events()) + opts->record_switch_events = true; + evlist__for_each_entry(evlist, evsel) { if (evsel->attr.type == cs_etm_pmu->type) { if (cs_etm_evsel) { |