Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf stat: Add AGGR_UNSET mode

Adding AGGR_UNSET mode, so we could distinguish unset aggr_mode in
following patches.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Tested-by: Kan Liang <kan.liang@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1444992092-17897-30-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Jiri Olsa and committed by
Arnaldo Carvalho de Melo
208df99e 581cc8a2

+7
+5
tools/perf/builtin-stat.c
··· 479 479 csv_sep); 480 480 break; 481 481 case AGGR_GLOBAL: 482 + case AGGR_UNSET: 482 483 default: 483 484 break; 484 485 } ··· 800 799 case AGGR_GLOBAL: 801 800 default: 802 801 fprintf(output, "# time counts %*s events\n", unit_width, "unit"); 802 + case AGGR_UNSET: 803 + break; 803 804 } 804 805 } 805 806 ··· 883 880 evlist__for_each(evsel_list, counter) 884 881 print_counter(counter, prefix); 885 882 break; 883 + case AGGR_UNSET: 886 884 default: 887 885 break; 888 886 } ··· 964 960 case AGGR_NONE: 965 961 case AGGR_GLOBAL: 966 962 case AGGR_THREAD: 963 + case AGGR_UNSET: 967 964 default: 968 965 break; 969 966 }
+1
tools/perf/util/stat.c
··· 272 272 aggr->ena += count->ena; 273 273 aggr->run += count->run; 274 274 } 275 + case AGGR_UNSET: 275 276 default: 276 277 break; 277 278 }
+1
tools/perf/util/stat.h
··· 31 31 AGGR_SOCKET, 32 32 AGGR_CORE, 33 33 AGGR_THREAD, 34 + AGGR_UNSET, 34 35 }; 35 36 36 37 struct perf_stat_config {