aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/machine.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/machine.c')
-rw-r--r--tools/perf/util/machine.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/perf/util/machine.c b/tools/perf/util/machine.c
index b4749d3eed08..132de5cfb9b9 100644
--- a/tools/perf/util/machine.c
+++ b/tools/perf/util/machine.c
@@ -20,6 +20,7 @@
20#include "symbol.h" 20#include "symbol.h"
21#include "sort.h" 21#include "sort.h"
22#include "strlist.h" 22#include "strlist.h"
23#include "util/synthetic-events.h"
23#include "target.h" 24#include "target.h"
24#include "thread.h" 25#include "thread.h"
25#include "util.h" 26#include "util.h"
@@ -2624,6 +2625,15 @@ int __machine__synthesize_threads(struct machine *machine, struct perf_tool *too
2624 return 0; 2625 return 0;
2625} 2626}
2626 2627
2628int machine__synthesize_threads(struct machine *machine, struct target *target,
2629 struct perf_thread_map *threads, bool data_mmap,
2630 unsigned int nr_threads_synthesize)
2631{
2632 return __machine__synthesize_threads(machine, NULL, target, threads,
2633 perf_event__process, data_mmap,
2634 nr_threads_synthesize);
2635}
2636
2627pid_t machine__get_current_tid(struct machine *machine, int cpu) 2637pid_t machine__get_current_tid(struct machine *machine, int cpu)
2628{ 2638{
2629 int nr_cpus = min(machine->env->nr_cpus_online, MAX_NR_CPUS); 2639 int nr_cpus = min(machine->env->nr_cpus_online, MAX_NR_CPUS);