]> git.baikalelectronics.ru Git - kernel.git/commit
perf mem: Support AUX trace
authorLeo Yan <leo.yan@linaro.org>
Fri, 6 Nov 2020 09:48:51 +0000 (17:48 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 11 Nov 2020 15:25:45 +0000 (12:25 -0300)
commit4ca5c1caa72ab176de14b2783b1e011df85b2d75
tree917e00af366f0a4f0b22b7f29067476cd516e063
parent67a1cb25ae280662eb3be6737e5ef2aa6dabd17a
perf mem: Support AUX trace

The 'perf mem' tool doesn't support AUX trace data so it cannot receive
the hardware tracing data.

On arm64, although it doesn't support PMU events for memory load and
store, ARM SPE is a good candidate for memory profiling, the hardware
tracer can record memory accessing operations with affiliated
information (e.g. physical address and virtual address for accessing,
cache levels, TLB walking, latency, etc).

To allow "perf mem" tool to support AUX trace, this patch adds the AUX
callbacks for session structure; make itrace memory event as default for
"perf mem", this tells the AUX trace decoder to synthesize memory
samples.

Signed-off-by: Leo Yan <leo.yan@linaro.org>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Link: https://lore.kernel.org/r/20201106094853.21082-8-leo.yan@linaro.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-mem.c