diff options
author | Jiri Olsa <jolsa@kernel.org> | 2015-07-21 14:31:22 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-08-06 21:02:29 +0200 |
commit | 421a50f3fafaf271bb3293378eaafca71337dfec (patch) | |
tree | ccd7ad591cd039b4e31115515013ba8e45b23c46 /tools/perf/util/stat.h | |
parent | perf tools: Add missing forward declaration of struct map to probe-event.h (diff) | |
download | linux-421a50f3fafaf271bb3293378eaafca71337dfec.tar.xz linux-421a50f3fafaf271bb3293378eaafca71337dfec.zip |
perf stat: Introduce struct perf_stat_config
Moving 'aggr_mode' into new struct. The point is to centralize the base
stat config so it could be used localy together with other stat routines
in other parts of perf code.
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
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/1437481927-29538-3-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/stat.h')
-rw-r--r-- | tools/perf/util/stat.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/util/stat.h b/tools/perf/util/stat.h index 1cfbe0a980ac..078bee49ccad 100644 --- a/tools/perf/util/stat.h +++ b/tools/perf/util/stat.h @@ -50,6 +50,10 @@ struct perf_counts { struct xyarray *values; }; +struct perf_stat_config { + enum aggr_mode aggr_mode; +}; + static inline struct perf_counts_values* perf_counts(struct perf_counts *counts, int cpu, int thread) { |