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: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 7e5c6f2c
...@@ -336,9 +336,6 @@ int perf_event__process(struct perf_tool *tool, ...@@ -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);
......
...@@ -132,6 +132,8 @@ struct addr_location { ...@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment