summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/symbol_fprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/symbol_fprintf.c')
-rw-r--r--tools/perf/util/symbol_fprintf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/symbol_fprintf.c b/tools/perf/util/symbol_fprintf.c
index 088f4abf23..53e1af4ed9 100644
--- a/tools/perf/util/symbol_fprintf.c
+++ b/tools/perf/util/symbol_fprintf.c
@@ -64,8 +64,8 @@ size_t dso__fprintf_symbols_by_name(struct dso *dso,
{
size_t ret = 0;
- for (size_t i = 0; i < dso->symbol_names_len; i++) {
- struct symbol *pos = dso->symbol_names[i];
+ for (size_t i = 0; i < dso__symbol_names_len(dso); i++) {
+ struct symbol *pos = dso__symbol_names(dso)[i];
ret += fprintf(fp, "%s\n", pos->name);
}