summaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-script.c
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2019-08-06 05:35:19 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-09-25 08:51:46 -0400
commit648b5af3f3ae7f4fad7395c8dc84cb79eafe2ba9 (patch)
tree86619a0fb6a508bb1fe98b400f57a760612d08ff /tools/perf/builtin-script.c
parent65aa2e6bae3658cbc84c2e628a5c0ca163686204 (diff)
libperf: Move 'system_wide' from 'struct evsel' to 'struct perf_evsel'
Move the 'system_wide 'member from perf's evsel to libperf's perf_evsel. Committer notes: Added stdbool.h as we now use bool here. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Michael Petlan <mpetlan@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lore.kernel.org/lkml/20190913132355.21634-20-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-script.c')
-rw-r--r--tools/perf/builtin-script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c
index a17a9306bdf6..e7a49e2d7575 100644
--- a/tools/perf/builtin-script.c
+++ b/tools/perf/builtin-script.c
@@ -1916,7 +1916,7 @@ static void __process_stat(struct evsel *counter, u64 tstamp)
1916 int cpu, thread; 1916 int cpu, thread;
1917 static int header_printed; 1917 static int header_printed;
1918 1918
1919 if (counter->system_wide) 1919 if (counter->core.system_wide)
1920 nthreads = 1; 1920 nthreads = 1;
1921 1921
1922 if (!header_printed) { 1922 if (!header_printed) {