perf map_groups: Introduce for_each_entry() and for_each_entry_safe() iterators
[linux-2.6-microblaze.git] / tools / perf / util / vdso.c
index ba4b439..6e00793 100644 (file)
@@ -142,9 +142,9 @@ static enum dso_type machine__thread_dso_type(struct machine *machine,
                                              struct thread *thread)
 {
        enum dso_type dso_type = DSO__TYPE_UNKNOWN;
-       struct map *map = map_groups__first(thread->mg);
+       struct map *map;
 
-       for (; map ; map = map_groups__next(map)) {
+       map_groups__for_each_entry(thread->mg, map) {
                struct dso *dso = map->dso;
                if (!dso || dso->long_name[0] != '/')
                        continue;