diff options
author | Jiri Olsa <jolsa@redhat.com> | 2013-01-31 17:34:25 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-07-12 12:53:59 -0400 |
commit | 2b8bfa6bb8a7d26935207710397386759b42125c (patch) | |
tree | a6275ee746ccb43a3a22d0b86ec5a5ea2b31b9b9 /tools/perf/ui/hist.c | |
parent | 2c5d4b4a087c448d7818b89294c98d4977dfe76c (diff) |
perf tools: Centralize default columns init in perf_hpp__init
Now when diff command is separated from other standard outputs,
we can use perf_hpp__init to initialize all standard columns.
Moving PERF_HPP__OVERHEAD column init back to perf_hpp__init,
and removing extra enable calls.
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Reviewed-by: Namhyung Kim <namhyung@kernel.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/n/tip-nj2xk89tj972tbqswfs498ex@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/ui/hist.c')
-rw-r--r-- | tools/perf/ui/hist.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/ui/hist.c b/tools/perf/ui/hist.c index 5440d56d884a..f45c97f694da 100644 --- a/tools/perf/ui/hist.c +++ b/tools/perf/ui/hist.c | |||
@@ -421,6 +421,8 @@ LIST_HEAD(perf_hpp__list); | |||
421 | 421 | ||
422 | void perf_hpp__init(void) | 422 | void perf_hpp__init(void) |
423 | { | 423 | { |
424 | perf_hpp__column_enable(PERF_HPP__OVERHEAD); | ||
425 | |||
424 | if (symbol_conf.show_cpu_utilization) { | 426 | if (symbol_conf.show_cpu_utilization) { |
425 | perf_hpp__column_enable(PERF_HPP__OVERHEAD_SYS); | 427 | perf_hpp__column_enable(PERF_HPP__OVERHEAD_SYS); |
426 | perf_hpp__column_enable(PERF_HPP__OVERHEAD_US); | 428 | perf_hpp__column_enable(PERF_HPP__OVERHEAD_US); |