diff options
Diffstat (limited to 'tools/perf/util/header.c')
-rw-r--r-- | tools/perf/util/header.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c index 31731f1606b2..d3d656f9a621 100644 --- a/tools/perf/util/header.c +++ b/tools/perf/util/header.c | |||
@@ -241,6 +241,11 @@ perf_header__adds_write(struct perf_header *self, int fd) | |||
241 | 241 | ||
242 | buildid_sec = &feat_sec[idx++]; | 242 | buildid_sec = &feat_sec[idx++]; |
243 | 243 | ||
244 | /* | ||
245 | * Read the list of loaded modules with its build_ids | ||
246 | */ | ||
247 | dsos__load_modules(); | ||
248 | |||
244 | /* Write build-ids */ | 249 | /* Write build-ids */ |
245 | buildid_sec->offset = lseek(fd, 0, SEEK_CUR); | 250 | buildid_sec->offset = lseek(fd, 0, SEEK_CUR); |
246 | if (dsos__write_buildid_table(fd) < 0) | 251 | if (dsos__write_buildid_table(fd) < 0) |