perf symbol: Move addr_location__put() from event.h

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>
This commit is contained in:
Arnaldo Carvalho de Melo 2022-10-27 16:54:46 -03:00
parent 7e5c6f2c1a
commit d1e633e4cd
2 changed files with 2 additions and 3 deletions

View File

@ -336,9 +336,6 @@ int perf_event__process(struct perf_tool *tool,
struct machine *machine); struct machine *machine);
struct addr_location; struct addr_location;
void addr_location__put(struct addr_location *al);
struct thread; struct thread;
bool is_bts_event(struct perf_event_attr *attr); bool is_bts_event(struct perf_event_attr *attr);

View File

@ -132,6 +132,8 @@ struct addr_location {
s32 socket; s32 socket;
}; };
void addr_location__put(struct addr_location *al);
int dso__load(struct dso *dso, struct map *map); int dso__load(struct dso *dso, struct map *map);
int dso__load_vmlinux(struct dso *dso, struct map *map, int dso__load_vmlinux(struct dso *dso, struct map *map,
const char *vmlinux, bool vmlinux_allocated); const char *vmlinux, bool vmlinux_allocated);