path: root/tools/perf/builtin-stat.c
diff options
authorJiri Olsa <>2015-08-07 12:51:03 +0200
committerArnaldo Carvalho de Melo <>2015-08-08 14:16:49 -0300
commitd809560b36a7ed31fbaf3719fdf79ddcbd30950b (patch)
treec9ec855af138848caccbe3a0a8c43c54e26a9999 /tools/perf/builtin-stat.c
parentf1d800bf615b84ca253af372d2dac8cdef743a20 (diff)
perf stat: Move perf_counts struct and functions into separate object
Moving 'struct perf_counts' and associated functions into separate object, so we could remove stat.c object dependency from python build. It makes the python code to build properly, because it fails to load due to missing stat-shadow.c object dependency if some patches from Kan Liang are applied. So apply this one, then Kan's. Signed-off-by: Jiri Olsa <> Cc: Andi Kleen <> Cc: Jiri Olsa <> Cc: Kan Liang <> Cc: Namhyung Kim <> Link: Signed-off-by: Arnaldo Carvalho de Melo <>
Diffstat (limited to 'tools/perf/builtin-stat.c')
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c
index a054ddc0b2a0..7aa039bd379a 100644
--- a/tools/perf/builtin-stat.c
+++ b/tools/perf/builtin-stat.c
@@ -58,6 +58,7 @@
#include "util/cpumap.h"
#include "util/thread.h"
#include "util/thread_map.h"
+#include "util/counts.h"
#include <stdlib.h>
#include <sys/prctl.h>