diff options
Diffstat (limited to 'tools/perf/builtin-script.c')
-rw-r--r-- | tools/perf/builtin-script.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index a787c5cb1331..46fadbbe1c3e 100644 --- a/tools/perf/builtin-script.c +++ b/tools/perf/builtin-script.c | |||
@@ -48,6 +48,7 @@ | |||
48 | #include <fcntl.h> | 48 | #include <fcntl.h> |
49 | #include <unistd.h> | 49 | #include <unistd.h> |
50 | #include <subcmd/pager.h> | 50 | #include <subcmd/pager.h> |
51 | #include <perf/evlist.h> | ||
51 | 52 | ||
52 | #include <linux/ctype.h> | 53 | #include <linux/ctype.h> |
53 | 54 | ||
@@ -3264,7 +3265,7 @@ static int set_maps(struct perf_script *script) | |||
3264 | if (WARN_ONCE(script->allocated, "stats double allocation\n")) | 3265 | if (WARN_ONCE(script->allocated, "stats double allocation\n")) |
3265 | return -EINVAL; | 3266 | return -EINVAL; |
3266 | 3267 | ||
3267 | perf_evlist__set_maps(evlist, script->cpus, script->threads); | 3268 | perf_evlist__set_maps(&evlist->core, script->cpus, script->threads); |
3268 | 3269 | ||
3269 | if (perf_evlist__alloc_stats(evlist, true)) | 3270 | if (perf_evlist__alloc_stats(evlist, true)) |
3270 | return -ENOMEM; | 3271 | return -ENOMEM; |