mirror of
https://gitee.com/openharmony/developtools_hiperf
synced 2024-11-23 07:29:42 +00:00
commit
602fd6f737
@ -1290,7 +1290,7 @@ void SubCommandRecord::CloseClientThread()
|
||||
|
||||
void SubCommandRecord::RemoveVdsoTmpFile()
|
||||
{
|
||||
std::vector<std::string> fileName = {"/data/local/tmp/shmm", "/data/local/tmp/[vdso]"};
|
||||
std::vector<std::string> fileName = {"/data/local/tmp/[shmm]", "/data/local/tmp/[vdso]"};
|
||||
for (auto name : fileName) {
|
||||
if (access(name.c_str(), F_OK) == 0) {
|
||||
if (remove(name.c_str()) != 0) {
|
||||
|
@ -343,7 +343,7 @@ void VirtualThread::ParseDevhostMap(pid_t devhost)
|
||||
const std::string anonPrefix = "[anon:[";
|
||||
const std::string anonPostfix = "]]";
|
||||
filename = mapTokens[MMAP_LINE_TOKEN_INDEX_NAME];
|
||||
if (filename == "shmm") {
|
||||
if (filename == "[shmm]") {
|
||||
continue;
|
||||
}
|
||||
if (filename.find(anonPrefix) != std::string::npos) {
|
||||
|
Loading…
Reference in New Issue
Block a user