aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2014-03-19 20:10:29 -0400
committerJiri Olsa <jolsa@kernel.org>2014-06-01 08:35:05 -0400
commit2bf1a12340bda1bf621f27b9892094a51b1297fd (patch)
tree63622c1a2101a1ffd2027f3df38bfb8708a7b0ac /tools
parent8d8e645ceafd726b8317949f899e4b3acfb20d29 (diff)
perf tools: Do not auto-remove Children column if --fields given
Depending on the configuration perf inserts/removes the Children column in the output automatically. But it might not be what user wants if [s]he give --fields option explicitly. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Tested-by: Rodrigo Campos <rodrigo@sdfg.com.ar> Cc: Arun Sharma <asharma@fb.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Link: http://lkml.kernel.org/r/1401335910-16832-18-git-send-email-namhyung@kernel.org Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/ui/hist.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/ui/hist.c b/tools/perf/ui/hist.c
index 8ca638754acc..498adb23c02e 100644
--- a/tools/perf/ui/hist.c
+++ b/tools/perf/ui/hist.c
@@ -513,6 +513,9 @@ void perf_hpp__column_disable(unsigned col)
513 513
514void perf_hpp__cancel_cumulate(void) 514void perf_hpp__cancel_cumulate(void)
515{ 515{
516 if (field_order)
517 return;
518
516 perf_hpp__column_disable(PERF_HPP__OVERHEAD_ACC); 519 perf_hpp__column_disable(PERF_HPP__OVERHEAD_ACC);
517 perf_hpp__format[PERF_HPP__OVERHEAD].header = hpp__header_overhead; 520 perf_hpp__format[PERF_HPP__OVERHEAD].header = hpp__header_overhead;
518} 521}