mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
perf tools: Nuke unused map_groups__flush()
Since:
9fdbf671ba
"perf tools: do not flush maps on COMM for perf report"
We have no users of this function, nuke it.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: David Ahern <dsahern@gmail.com>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Luigi Semenzato <semenzato@chromium.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-hsac1t42ehtva8gut8qe6hih@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
fdce6a4eda
commit
f7e365eb61
2 changed files with 0 additions and 24 deletions
|
@ -498,28 +498,6 @@ void map_groups__put(struct map_groups *mg)
|
||||||
map_groups__delete(mg);
|
map_groups__delete(mg);
|
||||||
}
|
}
|
||||||
|
|
||||||
void map_groups__flush(struct map_groups *mg)
|
|
||||||
{
|
|
||||||
int type;
|
|
||||||
|
|
||||||
for (type = 0; type < MAP__NR_TYPES; type++) {
|
|
||||||
struct rb_root *root = &mg->maps[type];
|
|
||||||
struct rb_node *next = rb_first(root);
|
|
||||||
|
|
||||||
while (next) {
|
|
||||||
struct map *pos = rb_entry(next, struct map, rb_node);
|
|
||||||
next = rb_next(&pos->rb_node);
|
|
||||||
rb_erase(&pos->rb_node, root);
|
|
||||||
/*
|
|
||||||
* We may have references to this map, for
|
|
||||||
* instance in some hist_entry instances, so
|
|
||||||
* just move them to a separate list.
|
|
||||||
*/
|
|
||||||
list_add_tail(&pos->node, &mg->removed_maps[pos->type]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct symbol *map_groups__find_symbol(struct map_groups *mg,
|
struct symbol *map_groups__find_symbol(struct map_groups *mg,
|
||||||
enum map_type type, u64 addr,
|
enum map_type type, u64 addr,
|
||||||
struct map **mapp,
|
struct map **mapp,
|
||||||
|
|
|
@ -233,6 +233,4 @@ int map_groups__fixup_overlappings(struct map_groups *mg, struct map *map,
|
||||||
struct map *map_groups__find_by_name(struct map_groups *mg,
|
struct map *map_groups__find_by_name(struct map_groups *mg,
|
||||||
enum map_type type, const char *name);
|
enum map_type type, const char *name);
|
||||||
|
|
||||||
void map_groups__flush(struct map_groups *mg);
|
|
||||||
|
|
||||||
#endif /* __PERF_MAP_H */
|
#endif /* __PERF_MAP_H */
|
||||||
|
|
Loading…
Reference in a new issue