summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/stat.h
diff options
context:
space:
mode:
authorJiri Olsa2015-07-21 14:31:23 +0200
committerArnaldo Carvalho de Melo2015-08-06 21:02:39 +0200
commit711a572ea8ae7e9ab6575403c6d632d058d5cb3d (patch)
treec05c20bdcc5313d46048cb7338e1f3f412236518 /tools/perf/util/stat.h
parentperf stat: Introduce struct perf_stat_config (diff)
downloadkernel-qcow2-linux-711a572ea8ae7e9ab6575403c6d632d058d5cb3d.tar.gz
kernel-qcow2-linux-711a572ea8ae7e9ab6575403c6d632d058d5cb3d.tar.xz
kernel-qcow2-linux-711a572ea8ae7e9ab6575403c6d632d058d5cb3d.zip
perf stat: Move 'scale' into struct perf_stat_config
Moving 'scale' into struct perf_stat_config. 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-4-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/stat.h b/tools/perf/util/stat.h
index 078bee49ccad..0a1d83faa7b9 100644
--- a/tools/perf/util/stat.h
+++ b/tools/perf/util/stat.h
@@ -52,6 +52,7 @@ struct perf_counts {
struct perf_stat_config {
enum aggr_mode aggr_mode;
+ bool scale;
};
static inline struct perf_counts_values*