aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/arch/arm/util
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2022-05-06 15:25:47 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2022-05-10 14:27:19 -0300
commit7df319e5b3b60f159bebf2949f7e28823fff2086 (patch)
tree99d373bd5591b755dce13d4b3495db1a5cd8d54c /tools/perf/arch/arm/util
parentlibperf evlist: Add evsel as a parameter to ->idx() (diff)
downloadlinux-dev-7df319e5b3b60f159bebf2949f7e28823fff2086.tar.xz
linux-dev-7df319e5b3b60f159bebf2949f7e28823fff2086.zip
perf auxtrace: Record whether an auxtrace mmap is needed
Add a flag needs_auxtrace_mmap to record whether an auxtrace mmap is needed, in preparation for correctly determining whether or not an auxtrace mmap is needed. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Acked-by: Ian Rogers <irogers@google.com> Cc: Alexey Bayduraev <alexey.v.bayduraev@linux.intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Leo Yan <leo.yan@linaro.org> Cc: Namhyung Kim <namhyung@kernel.org> Link: http://lore.kernel.org/lkml/20220506122601.367589-10-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/arch/arm/util')
-rw-r--r--tools/perf/arch/arm/util/cs-etm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/arch/arm/util/cs-etm.c b/tools/perf/arch/arm/util/cs-etm.c
index 11c71aa219f7..1b54638d53b0 100644
--- a/tools/perf/arch/arm/util/cs-etm.c
+++ b/tools/perf/arch/arm/util/cs-etm.c
@@ -319,6 +319,7 @@ static int cs_etm_recording_options(struct auxtrace_record *itr,
}
evsel->core.attr.freq = 0;
evsel->core.attr.sample_period = 1;
+ evsel->needs_auxtrace_mmap = true;
cs_etm_evsel = evsel;
opts->full_auxtrace = true;
}