]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
perf tools: Do not auto-remove Children column if --fields given
authorNamhyung Kim <namhyung@kernel.org>
Thu, 20 Mar 2014 00:10:29 +0000 (09:10 +0900)
committerJiri Olsa <jolsa@kernel.org>
Sun, 1 Jun 2014 12:35:05 +0000 (14:35 +0200)
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>
tools/perf/ui/hist.c

index 8ca638754acc8e37b4844609fbbc473d85dfc1e4..498adb23c02ef9992f82c840aca5aa31220af9bf 100644 (file)
@@ -513,6 +513,9 @@ void perf_hpp__column_disable(unsigned col)
 
 void perf_hpp__cancel_cumulate(void)
 {
+       if (field_order)
+               return;
+
        perf_hpp__column_disable(PERF_HPP__OVERHEAD_ACC);
        perf_hpp__format[PERF_HPP__OVERHEAD].header = hpp__header_overhead;
 }