aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/symbol.h
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2009-06-12 18:11:21 -0400
committerIngo Molnar <mingo@elte.hu>2009-06-13 06:58:23 -0400
commit301406b9c69e4914cf45ae9d5f929e7bcf0d93cd (patch)
tree42b8d04c4aac5dc1526bbeae9b3a1efa392ba9f4 /tools/perf/util/symbol.h
parentf3ad116588151b3371ae4e092290e4f48e62b8bb (diff)
perf annotate: Print the filename:line for annotated colored lines
When we have a colored line in perf annotate, ie a middle/high overhead one, it's sometimes useful to get the matching line and filename from the source file, especially this path prepares to another subsequent one which will print a sorted summary of midle/high overhead lines in the beginning of the output. Filename:Lines have the same color than the concerned ip lines. It can be slow because it relies on addr2line. We could also use objdump with -l but that implies we would have to bufferize objdump output and parse it to filter the relevant lines since we want to print a sorted summary in the beginning. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> LKML-Reference: <1244844682-12928-1-git-send-email-fweisbec@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/symbol.h')
-rw-r--r--tools/perf/util/symbol.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h
index 0d1292bd8270..5ad9b06c3f6f 100644
--- a/tools/perf/util/symbol.h
+++ b/tools/perf/util/symbol.h
@@ -12,6 +12,7 @@ struct symbol {
12 __u64 obj_start; 12 __u64 obj_start;
13 __u64 hist_sum; 13 __u64 hist_sum;
14 __u64 *hist; 14 __u64 *hist;
15 void *priv;
15 char name[0]; 16 char name[0];
16}; 17};
17 18