aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorGravatar Adrian Hunter <adrian.hunter@intel.com> 2021-05-25 12:51:05 +0300
committerGravatar Arnaldo Carvalho de Melo <acme@redhat.com> 2021-05-25 10:07:17 -0300
commit3f8e009e01c4ed9f75c10f33936990f3a3d39fcd (patch)
treebf1c946587e5c2e87df60f916bb90a3901d1a23a /tools/perf/util/trace-event-scripting.c
parentperf scripting python: Factor out set_sym_in_dict() (diff)
downloadlinux-3f8e009e01c4ed9f75c10f33936990f3a3d39fcd.tar.gz
linux-3f8e009e01c4ed9f75c10f33936990f3a3d39fcd.tar.bz2
linux-3f8e009e01c4ed9f75c10f33936990f3a3d39fcd.zip
perf scripting python: Add 'addr_location' for 'addr'
If sample addr correlates to a symbol, add "addr_dso", "addr_symbol", and "addr_symoff" to python scripting. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Jiri Olsa <jolsa@redhat.com> Link: https://lore.kernel.org/r/20210525095112.1399-4-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
-rw-r--r--tools/perf/util/trace-event-scripting.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/util/trace-event-scripting.c b/tools/perf/util/trace-event-scripting.c
index cf6ed8b92d6f..6c51fba70d49 100644
--- a/tools/perf/util/trace-event-scripting.c
+++ b/tools/perf/util/trace-event-scripting.c
@@ -29,7 +29,8 @@ static int stop_script_unsupported(void)
static void process_event_unsupported(union perf_event *event __maybe_unused,
struct perf_sample *sample __maybe_unused,
struct evsel *evsel __maybe_unused,
- struct addr_location *al __maybe_unused)
+ struct addr_location *al __maybe_unused,
+ struct addr_location *addr_al __maybe_unused)
{
}