perf tools: Rename maps__next
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: 4d4dee9a9609819309a84cd3f2d19dcc50ece195 Gitweb: http://git.kernel.org/tip/4d4dee9a9609819309a84cd3f2d19dcc50ece195 Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Thu, 21 May 2015 17:48:33 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Wed, 27 May 2015 12:21:44 -0300
perf tools: Rename maps__next
It really is a 'struct map' method, and since we're introducing a new 'struct maps' class, fix it to avoid confusion.
Cc Adrian Hunter <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc David Ahern <[email protected]>
Cc Don Zickus <[email protected]>
Cc Frederic Weisbecker <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Stephane Eranian <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/util/map.c | 2 +- tools/perf/util/map.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
tools/perf/util/map.c +1 -1
@@ -775,7 +775,7 @@ struct map *maps__first(struct rb_root *maps)return NULL ; } -struct map *maps__next (struct map *map) +struct map *map__next (struct map *map) {struct rb_node *next =rb_next (&map->rb_node);
tools/perf/util/map.h +2 -2
@@ -166,7 +166,7 @@ void maps__insert(struct rb_root *maps, struct map *map);void maps__remove (struct rb_root *maps,struct map *map);struct map *maps__find (struct rb_root *maps,u64 addr);struct map *maps__first (struct rb_root *maps); -struct map *maps__next (struct map *map); +struct map *map__next (struct map *map);void map_groups__init (struct map_groups *mg,struct machine *machine);void map_groups__exit (struct map_groups *mg); int map_groups__clone(struct map_groups *mg,
@@ -201,7 +201,7 @@ static inline struct map *map_groups__first(struct map_groups *mg,static inline struct map *map_groups__next (struct map *map) { -return maps__next (map); +return map__next (map); } struct symbol *map_groups__find_symbol(struct map_groups *mg,