aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/machine.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2019-09-18 10:36:13 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-09-20 08:19:22 -0400
commitea49e01cfabd73c94a61649cd04fa524a2beff3c (patch)
tree3f8598c62cf6d33fcabf0561a8a43d49f8acf4c7 /tools/perf/util/machine.h
parentbd23ac11fe9312bab40e129b402757fd7a23dc8e (diff)
perf tools: Move event synthesizing routines to separate header
Those are the only routines using the perf_event__handler_t typedef and are all related, so move to a separate header to reduce the header dependency tree, lots of places were getting event.h and even stdio.h, limits.h indirectly, so fix those as well. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lkml.kernel.org/n/tip-yvx9u1mf7baq6cu1abfhbqgs@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/machine.h')
-rw-r--r--tools/perf/util/machine.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/tools/perf/util/machine.h b/tools/perf/util/machine.h
index ffd391a925a6..18e13c0ccd6a 100644
--- a/tools/perf/util/machine.h
+++ b/tools/perf/util/machine.h
@@ -6,7 +6,6 @@
6#include <linux/rbtree.h> 6#include <linux/rbtree.h>
7#include "map_groups.h" 7#include "map_groups.h"
8#include "dsos.h" 8#include "dsos.h"
9#include "event.h"
10#include "rwsem.h" 9#include "rwsem.h"
11 10
12struct addr_location; 11struct addr_location;
@@ -252,20 +251,6 @@ int machines__for_each_thread(struct machines *machines,
252 int (*fn)(struct thread *thread, void *p), 251 int (*fn)(struct thread *thread, void *p),
253 void *priv); 252 void *priv);
254 253
255int __machine__synthesize_threads(struct machine *machine, struct perf_tool *tool,
256 struct target *target, struct perf_thread_map *threads,
257 perf_event__handler_t process, bool data_mmap,
258 unsigned int nr_threads_synthesize);
259static inline
260int machine__synthesize_threads(struct machine *machine, struct target *target,
261 struct perf_thread_map *threads, bool data_mmap,
262 unsigned int nr_threads_synthesize)
263{
264 return __machine__synthesize_threads(machine, NULL, target, threads,
265 perf_event__process, data_mmap,
266 nr_threads_synthesize);
267}
268
269pid_t machine__get_current_tid(struct machine *machine, int cpu); 254pid_t machine__get_current_tid(struct machine *machine, int cpu);
270int machine__set_current_tid(struct machine *machine, int cpu, pid_t pid, 255int machine__set_current_tid(struct machine *machine, int cpu, pid_t pid,
271 pid_t tid); 256 pid_t tid);