diff options
author | Milian Wolff <milian.wolff@kdab.com> | 2017-05-29 21:18:51 +0200 |
---|---|---|
committer | Milian Wolff <milian.wolff@kdab.com> | 2017-08-28 09:56:56 +0000 |
commit | 9ac99387e5c0d43c696ec5a1ccb432f383fbfe44 (patch) | |
tree | ec51886f683a9001009e14acba8436bfb4cf7597 | |
parent | 1ee07f138b455c2d261dc38e652e03def3ef3766 (diff) |
Don't try to find files for shared memory mappings
These sections have an odd name and cannot be found.
We used to show confusing error messages. Instead, we now
ignore these sections and don't try to find a file for them.
Change-Id: Icf5397ad8de84406ad23373b747b4292c8510f8b
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
-rw-r--r-- | app/perfsymboltable.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/perfsymboltable.cpp b/app/perfsymboltable.cpp index 1e60019..eb33c69 100644 --- a/app/perfsymboltable.cpp +++ b/app/perfsymboltable.cpp @@ -287,7 +287,8 @@ void PerfSymbolTable::registerElf(const PerfRecordMmap &mmap, const QByteArray & QLatin1String filePath(mmap.filename()); // special regions, such as [heap], [vdso], [stack], ... as well as //anon const bool isSpecialRegion = (mmap.filename().startsWith('[') && mmap.filename().endsWith(']')) - || filePath == QLatin1String("//anon"); + || filePath == QLatin1String("//anon") + || filePath == QLatin1String("/SYSV00000000 (deleted)"); const auto fileName = QFileInfo(filePath).fileName(); QFileInfo fullPath; if (isSpecialRegion) { |