!604 适配shmm名称变更

Merge pull request !604 from yuyanqing/master
This commit is contained in:
openharmony_ci 2024-09-20 03:50:48 +00:00 committed by Gitee
commit 602fd6f737
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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) {