]> git.baikalelectronics.ru Git - kernel.git/commit
perf annotate browser: Show current jump, back or forward
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 27 Apr 2012 19:35:29 +0000 (16:35 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 27 Apr 2012 19:35:29 +0000 (16:35 -0300)
commit8d1be11e0b675fddd66f0ad212c8df4118fa425a
treecbfeda30b6c728561e8a20cde6379f72d496b712
parentc9dbe7f0f78d2c77ea5ba1f10f6b167e04ad2626
perf annotate browser: Show current jump, back or forward

Instead of trying to show the current loop by naively looking for the
next backward jump, just use 'j' to toggle showing arrows connecting
jump with its target.

And do it for forward jumps as well.

Loop detection requires more code to follow the flow control, etc.

Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-soahcn1lz2u4wxj31ch0594j@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/ui/browsers/annotate.c