]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
perf c2c report: Iterate node display in browser
authorJiri Olsa <jolsa@kernel.org>
Sun, 10 Jul 2016 14:30:27 +0000 (16:30 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 21 Oct 2016 13:32:00 +0000 (10:32 -0300)
Adding TUI support to switch between Node entry versions
in real time with 'n' key.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Joe Mario <jmario@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/n/tip-xqbw4h4dxig54wff7fd14lao@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-c2c.c

index 4645461bd9971c57eed90a1e71effe730e563fdd..2059395279454b50b767da86c2ddbf287044651e 100644 (file)
@@ -2207,6 +2207,10 @@ static int perf_c2c__browse_cacheline(struct hist_entry *he)
                case 's':
                        c2c.symbol_full = !c2c.symbol_full;
                        break;
+               case 'n':
+                       c2c.node_info = (c2c.node_info + 1) % 3;
+                       setup_nodes_header();
+                       break;
                case 'q':
                        goto out;
                default: