kernel/tools/perf/util/symbol_fprintf.c
.. .. @@ -3,6 +3,8 @@ 3 3 #include <inttypes.h> 4 4 #include <stdio.h> 5 5 6 +#include "dso.h"7 +#include "map.h"6 8 #include "symbol.h" 7 9 8 10 size_t symbol__fprintf(struct symbol *sym, FILE *fp) .. .. @@ -64,7 +66,7 @@ 64 66 struct rb_node *nd; 65 67 struct symbol_name_rb_node *pos; 66 68 67 - for (nd = rb_first(&dso->symbol_names); nd; nd = rb_next(nd)) {69 + for (nd = rb_first_cached(&dso->symbol_names); nd; nd = rb_next(nd)) {68 70 pos = rb_entry(nd, struct symbol_name_rb_node, rb_node); 69 71 ret += fprintf(fp, "%s\n", pos->sym.name); 70 72 }