diff options
author | Milian Wolff <milian.wolff@kdab.com> | 2017-03-14 23:20:27 +0100 |
---|---|---|
committer | Milian Wolff <milian.wolff@kdab.com> | 2017-03-29 14:54:00 +0000 |
commit | 79ae8427155c6124fc23a9ab0bbed0a5ce1ec457 (patch) | |
tree | cdb1bafd0465fbb201f1e4ef33182ec03d4036ec /tests | |
parent | 17a5d15977856617979e08e68985123af3f7229a (diff) |
Try to find elfs in debug path, when build id is available
This enables us to parse perf.data files when the corresponding
elf objects do not exist anymore in the version that was used
at perf record time.
This also enables us to use `perf archive` to evaluate perf.data
files with perfparser on different machines.
Change-Id: Id7ac1af125dd3818dc86880f25a0f74d8d09bfc1
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/elfmap/tst_elfmap.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/elfmap/tst_elfmap.cpp b/tests/auto/elfmap/tst_elfmap.cpp index 313c1b7..d827826 100644 --- a/tests/auto/elfmap/tst_elfmap.cpp +++ b/tests/auto/elfmap/tst_elfmap.cpp @@ -27,7 +27,8 @@ namespace { bool registerElf(PerfElfMap *map, const PerfElfMap::ElfInfo &info) { - return map->registerElf(info.addr, info.length, info.pgoff, info.file); + return map->registerElf(info.addr, info.length, info.pgoff, + info.localFile, info.originalFileName); } } |