mirror of
https://gitee.com/openharmony/developtools_hiperf
synced 2025-02-20 00:01:24 +00:00
commit
8193ead6bb
@ -320,6 +320,9 @@ void VirtualThread::ParseMap()
|
||||
// system/lib/libdl.so
|
||||
if (mapTokens.size() == MMAP_LINE_MAX_TOKEN) {
|
||||
memMapItem.name_ = mapTokens[MMAP_LINE_TOKEN_INDEX_NAME];
|
||||
if (memMapItem.name_.find("/data/storage") == 0 && access(memMapItem.name_.c_str(), F_OK) != 0) {
|
||||
memMapItem.name_ = "/proc/" + std::to_string(pid_) + "/root" + memMapItem.name_;
|
||||
}
|
||||
}
|
||||
if (!IsLegalFileName(memMapItem.name_)) {
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user