perf symbol: Move addr_location__put() 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:56 +0000 (11:06 -0300)
Its a addr_location method, so move it to symbol.h, where 'struct
addr_location' is, 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/symbol.h

index ea5bd1f62b0fe45b4314861a54dd5c2271870d4d..bc6c1e2206cf64e0dce3c33292fdca397991547e 100644 (file)
@@ -336,9 +336,6 @@ int perf_event__process(struct perf_tool *tool,
                        struct machine *machine);
 
 struct addr_location;
-
-void addr_location__put(struct addr_location *al);
-
 struct thread;
 
 bool is_bts_event(struct perf_event_attr *attr);
index 0b893dcc8ea6807262642e7aac5661df60238c3f..e297de14184c53acd6202f0c8beb19e2479bb258 100644 (file)
@@ -132,6 +132,8 @@ struct addr_location {
        s32           socket;
 };
 
+void addr_location__put(struct addr_location *al);
+
 int dso__load(struct dso *dso, struct map *map);
 int dso__load_vmlinux(struct dso *dso, struct map *map,
                      const char *vmlinux, bool vmlinux_allocated);