perf thread: Move thread__resolve() from event.h
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 27 Oct 2022 19:54:46 +0000 (16:54 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 31 Oct 2022 14:07:03 +0000 (11:07 -0300)
Its a thread method, so move it to thread.h, this way some places that
were using event.h just to get this prototype may stop doing so and
speed up building and disentanble the header dependency graph.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/event.h
tools/perf/util/thread.h

index bc6c1e2..6663a67 100644 (file)
@@ -335,13 +335,8 @@ int perf_event__process(struct perf_tool *tool,
                        struct perf_sample *sample,
                        struct machine *machine);
 
-struct addr_location;
-struct thread;
-
 bool is_bts_event(struct perf_event_attr *attr);
 bool sample_addr_correlates_sym(struct perf_event_attr *attr);
-void thread__resolve(struct thread *thread, struct addr_location *al,
-                    struct perf_sample *sample);
 
 const char *perf_event__name(unsigned int id);
 
index 241f300..395c626 100644 (file)
@@ -158,4 +158,7 @@ static inline bool thread__is_filtered(struct thread *thread)
 
 void thread__free_stitch_list(struct thread *thread);
 
+void thread__resolve(struct thread *thread, struct addr_location *al,
+                    struct perf_sample *sample);
+
 #endif /* __PERF_THREAD_H */