aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/symbol.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/symbol.c')
-rw-r--r--tools/perf/util/symbol.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c
index 87d9b1b8b6bb..96bff0e54863 100644
--- a/tools/perf/util/symbol.c
+++ b/tools/perf/util/symbol.c
@@ -1937,6 +1937,12 @@ static size_t __dsos__fprintf_buildid(struct list_head *head, FILE *fp,
1937 return ret; 1937 return ret;
1938} 1938}
1939 1939
1940size_t machine__fprintf_dsos_buildid(struct machine *self, FILE *fp, bool with_hits)
1941{
1942 return __dsos__fprintf_buildid(&self->kernel_dsos, fp, with_hits) +
1943 __dsos__fprintf_buildid(&self->user_dsos, fp, with_hits);
1944}
1945
1940size_t machines__fprintf_dsos_buildid(struct rb_root *self, FILE *fp, bool with_hits) 1946size_t machines__fprintf_dsos_buildid(struct rb_root *self, FILE *fp, bool with_hits)
1941{ 1947{
1942 struct rb_node *nd; 1948 struct rb_node *nd;
@@ -1944,8 +1950,7 @@ size_t machines__fprintf_dsos_buildid(struct rb_root *self, FILE *fp, bool with_
1944 1950
1945 for (nd = rb_first(self); nd; nd = rb_next(nd)) { 1951 for (nd = rb_first(self); nd; nd = rb_next(nd)) {
1946 struct machine *pos = rb_entry(nd, struct machine, rb_node); 1952 struct machine *pos = rb_entry(nd, struct machine, rb_node);
1947 ret += __dsos__fprintf_buildid(&pos->kernel_dsos, fp, with_hits); 1953 ret += machine__fprintf_dsos_buildid(pos, fp, with_hits);
1948 ret += __dsos__fprintf_buildid(&pos->user_dsos, fp, with_hits);
1949 } 1954 }
1950 return ret; 1955 return ret;
1951} 1956}