]> 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)
commit60ed020e91a217285730a45e06307a7f265155b6
treecbfeda30b6c728561e8a20cde6379f72d496b712
parent24fbf9ce6177d93cf8e3c94640160a21283ceaf6
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