OSDN Git Service

perf machine: Move machine__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:06:52 +0000 (11:06 -0300)
Its a machine method, so move it to machine.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/machine.h

index 8b71ac1..ea5bd1f 100644 (file)
@@ -337,9 +337,6 @@ int perf_event__process(struct perf_tool *tool,
 
 struct addr_location;
 
-int machine__resolve(struct machine *machine, struct addr_location *al,
-                    struct perf_sample *sample);
-
 void addr_location__put(struct addr_location *al);
 
 struct thread;
index 74935df..6267c1d 100644 (file)
@@ -305,4 +305,7 @@ int machine__create_extra_kernel_map(struct machine *machine,
 int machine__map_x86_64_entry_trampolines(struct machine *machine,
                                          struct dso *kernel);
 
+int machine__resolve(struct machine *machine, struct addr_location *al,
+                    struct perf_sample *sample);
+
 #endif /* __PERF_MACHINE_H */