aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-script.c
diff options
context:
space:
mode:
authorAdrian Hunter <[email protected]>2017-05-26 08:17:38 +0000
committerArnaldo Carvalho de Melo <[email protected]>2017-06-30 14:50:55 +0000
commit644e0840ad4615e032d67adec6ee60f821b669fe (patch)
tree88db8b2f914c735ac90fdafab4f4904689dbf4da /tools/perf/builtin-script.c
parentperf intel-pt: Do not use TSC packets for calculating CPU cycles to TSC (diff)
downloadkernel-644e0840ad4615e032d67adec6ee60f821b669fe.tar.gz
kernel-644e0840ad4615e032d67adec6ee60f821b669fe.zip
perf auxtrace: Add CPU filter support
Decoding auxtrace data can take a long time. To avoid decoding unnecessarily, filter auxtrace data that is collected per-cpu before it is decoded. Signed-off-by: Adrian Hunter <[email protected]> Cc: Andi Kleen <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/builtin-script.c')
-rw-r--r--tools/perf/builtin-script.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c
index b458a0cc3544..83cdc0a61fd6 100644
--- a/tools/perf/builtin-script.c
+++ b/tools/perf/builtin-script.c
@@ -2992,6 +2992,7 @@ int cmd_script(int argc, const char **argv)
err = perf_session__cpu_bitmap(session, cpu_list, cpu_bitmap);
if (err < 0)
goto out_delete;
+ itrace_synth_opts.cpu_bitmap = cpu_bitmap;
}
if (!no_callchain)