2012-05-08 15:04:55

by Arnaldo Carvalho de Melo

[permalink] [raw]
Subject: [tip:perf/core] perf annotate browser: Add a right arrow before call instructions

Commit-ID: 88298f5a52dad53a7a9433470925fa90702bb486
Gitweb: http://git.kernel.org/tip/88298f5a52dad53a7a9433470925fa90702bb486
Author: Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Fri, 27 Apr 2012 15:10:54 -0300
Committer: Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Fri, 27 Apr 2012 15:10:54 -0300

perf annotate browser: Add a right arrow before call instructions

The counterpart of 'ret' instructions.

Suggested-by: Linus Torvalds <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
---
tools/perf/ui/browsers/annotate.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/tools/perf/ui/browsers/annotate.c b/tools/perf/ui/browsers/annotate.c
index 077380b..4778172 100644
--- a/tools/perf/ui/browsers/annotate.c
+++ b/tools/perf/ui/browsers/annotate.c
@@ -117,6 +117,9 @@ static void annotate_browser__write(struct ui_browser *self, void *entry, int ro
ui_browser__write_graph(self, fwd ? SLSMG_DARROW_CHAR :
SLSMG_UARROW_CHAR);
SLsmg_write_char(' ');
+ } else if (ins__is_call(dl->ins)) {
+ ui_browser__write_graph(self, SLSMG_RARROW_CHAR);
+ SLsmg_write_char(' ');
} else {
slsmg_write_nstring(" ", 2);
}