]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit - tools/perf/util/scripting-engines/trace-event-python.c
perf script python: Add addr into perf sample dict
authorLeo Yan <leo.yan@linaro.org>
Mon, 28 May 2018 08:45:01 +0000 (16:45 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 30 May 2018 18:39:31 +0000 (15:39 -0300)
commit943f32a0e8a4ea513dc68b00720a6c65842135e8
treea68f93c14b849d3d65365290d983d87995310943
parent0c711138fa61188aa379210e9e08ac76838dea03
perf script python: Add addr into perf sample dict

ARM CoreSight auxtrace uses 'sample->addr' to record the target address
for branch instructions, so the data of 'sample->addr' is required for
tracing data analysis.

This commit collects data of 'sample->addr' into perf sample dict,
finally can be used for python script for parsing event.

Signed-off-by: Leo Yan <leo.yan@linaro.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Mike Leach <mike.leach@linaro.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Robert Walker <robert.walker@arm.com>
Cc: Tor Jeremiassen <tor@ti.com>
Cc: coresight@lists.linaro.org
Cc: kim.phillips@arm.co
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-doc@vger.kernel.org
Link: http://lkml.kernel.org/r/1527497103-3593-3-git-send-email-leo.yan@linaro.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/scripting-engines/trace-event-python.c