diff options
Diffstat (limited to 'tools/perf/util/machine.c')
-rw-r--r-- | tools/perf/util/machine.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/perf/util/machine.c b/tools/perf/util/machine.c index 585b4a3d64a4..7c3aa479201a 100644 --- a/tools/perf/util/machine.c +++ b/tools/perf/util/machine.c | |||
@@ -2218,12 +2218,16 @@ int machines__for_each_thread(struct machines *machines, | |||
2218 | int __machine__synthesize_threads(struct machine *machine, struct perf_tool *tool, | 2218 | int __machine__synthesize_threads(struct machine *machine, struct perf_tool *tool, |
2219 | struct target *target, struct thread_map *threads, | 2219 | struct target *target, struct thread_map *threads, |
2220 | perf_event__handler_t process, bool data_mmap, | 2220 | perf_event__handler_t process, bool data_mmap, |
2221 | unsigned int proc_map_timeout) | 2221 | unsigned int proc_map_timeout, |
2222 | unsigned int nr_threads_synthesize) | ||
2222 | { | 2223 | { |
2223 | if (target__has_task(target)) | 2224 | if (target__has_task(target)) |
2224 | return perf_event__synthesize_thread_map(tool, threads, process, machine, data_mmap, proc_map_timeout); | 2225 | return perf_event__synthesize_thread_map(tool, threads, process, machine, data_mmap, proc_map_timeout); |
2225 | else if (target__has_cpu(target)) | 2226 | else if (target__has_cpu(target)) |
2226 | return perf_event__synthesize_threads(tool, process, machine, data_mmap, proc_map_timeout); | 2227 | return perf_event__synthesize_threads(tool, process, |
2228 | machine, data_mmap, | ||
2229 | proc_map_timeout, | ||
2230 | nr_threads_synthesize); | ||
2227 | /* command specified */ | 2231 | /* command specified */ |
2228 | return 0; | 2232 | return 0; |
2229 | } | 2233 | } |