summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2022-10-27 16:54:46 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2022-10-31 11:06:52 -0300
commit7e5c6f2c1aa2daa0d8aca657377450529f381fe6 (patch)
treed79d669827efda8d8098147a712fea4a8dfb611b
parent628d69995e66343266475e6afc76192f5878b605 (diff)
downloadlinux-7e5c6f2c1aa2daa0d8aca657377450529f381fe6.tar.bz2
perf machine: Move machine__resolve() from event.h
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>
-rw-r--r--tools/perf/util/event.h3
-rw-r--r--tools/perf/util/machine.h3
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h
index 8b71ac1af81b..ea5bd1f62b0f 100644
--- a/tools/perf/util/event.h
+++ b/tools/perf/util/event.h
@@ -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;
diff --git a/tools/perf/util/machine.h b/tools/perf/util/machine.h
index 74935dfaa937..6267c1d6f232 100644
--- a/tools/perf/util/machine.h
+++ b/tools/perf/util/machine.h
@@ -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 */