From: Jiri Olsa Date: Sun, 10 Jul 2016 14:30:27 +0000 (+0200) Subject: perf c2c report: Iterate node display in browser X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1a56a42534da8f1d2faf8df99787833ce67e8fdb;p=linux-beck.git perf c2c report: Iterate node display in browser Adding TUI support to switch between Node entry versions in real time with 'n' key. Signed-off-by: Jiri Olsa Cc: Andi Kleen Cc: David Ahern Cc: Don Zickus Cc: Joe Mario Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/n/tip-xqbw4h4dxig54wff7fd14lao@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/builtin-c2c.c b/tools/perf/builtin-c2c.c index 4645461bd997..205939527945 100644 --- a/tools/perf/builtin-c2c.c +++ b/tools/perf/builtin-c2c.c @@ -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: