Home
last modified time | relevance | path

Searched refs:pMap (Results 1 - 2 of 2) sorted by relevance

/developtools/profiler/device/plugins/native_hook/test/
H A Dhook_test.c269 char* pMap = (char*)mmap(0, PAGE_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, g_fd, 0); in CreateMmap() local
272 memtrace(pMap, PAGE_SIZE, tag, true); in CreateMmap()
274 if (pMap == MAP_FAILED) { in CreateMmap()
278 return pMap; in CreateMmap()
282 void RemoveMmap(char* pMap) in RemoveMmap() argument
284 munmap(pMap, PAGE_SIZE); in RemoveMmap()
288 void MmapWriteFile(char* pMap, int length, char* data) in MmapWriteFile() argument
290 if (memcpy_s(pMap, length, data, length) != EOK) { in MmapWriteFile()
294 msync(pMap, length, MS_SYNC); in MmapWriteFile()
298 char* MmapReadFile(char* pMap, in argument
369 char* pMap = CreateMmap(); WriteMmap() local
383 char* pMap = CreateMmap(); ReadMmap() local
[all...]
H A Dmalloc_test.cpp287 char* pMap = static_cast<char*>(mmap(nullptr, PAGE_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, g_fd, 0)); in CreateMmap() local
291 memtrace(pMap, PAGE_SIZE, tag, true); in CreateMmap()
293 if (pMap == MAP_FAILED) { in CreateMmap()
297 return pMap; in CreateMmap()
301 static void RemoveMmap(char* pMap) in RemoveMmap() argument
303 munmap(pMap, PAGE_SIZE); in RemoveMmap()
307 static void MmapWriteFile(char* pMap, int length, const char* data) in MmapWriteFile() argument
309 if (memcpy_s(pMap, length, data, length) != EOK) { in MmapWriteFile()
313 msync(pMap, length, MS_SYNC); in MmapWriteFile()
317 static char* MmapReadFile(const char* pMap, in argument
384 char* pMap = CreateMmap(); WriteMmap() local
398 char* pMap = CreateMmap(); ReadMmap() local
[all...]

Completed in 2 milliseconds