aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/evsel.c
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2011-05-30 13:08:23 -0600
committerArnaldo Carvalho de Melo <acme@redhat.com>2011-06-02 13:31:01 -0300
commit7cec0922389e080d11ec43dd23aa778e136bd1e1 (patch)
tree0d772b32f38b4ef16e4256711e947b38baa2c2f9 /tools/perf/util/evsel.c
parentperf script: Make printing of dso a separate field option (diff)
downloadlinux-dev-7cec0922389e080d11ec43dd23aa778e136bd1e1.tar.xz
linux-dev-7cec0922389e080d11ec43dd23aa778e136bd1e1.zip
perf script: Add printing of sample address
Resolve to a function or variable if possible and if the sym option is enabled. Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/1306782503-22002-1-git-send-email-dsahern@gmail.com Signed-off-by: David Ahern <dsahern@gmail.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/evsel.c')
-rw-r--r--tools/perf/util/evsel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c
index 0239eb87b232..a03a36b7908a 100644
--- a/tools/perf/util/evsel.c
+++ b/tools/perf/util/evsel.c
@@ -377,6 +377,7 @@ int perf_event__parse_sample(const union perf_event *event, u64 type,
array++;
}
+ data->addr = 0;
if (type & PERF_SAMPLE_ADDR) {
data->addr = *array;
array++;