Searched refs:remapPos (Results 1 - 2 of 2) sorted by relevance
/developtools/profiler/hiebpf/src/ |
H A D | hiebpf_data_file.cpp | 122 std::size_t remapPos = curPos & ~(pageSize_ - 1); in RemapFile() local 123 std::size_t remapOff = curPos - remapPos; in RemapFile() 130 CHECK_TRUE(ExtendFile(remapPos, extendLength) == 0, -1, in RemapFile() 131 "failed to extend file from %u with %u bytes", remapPos, length_); in RemapFile() local 136 fd_, remapPos); in RemapFile() 137 CHECK_TRUE(mapAddr_ != MAP_FAILED, -1, "failed to remap data file from %u to %u", mapPos_, remapPos); in RemapFile() 138 HHLOGI(true, "done remapping data file from %u, to %u", mapPos_, remapPos); in RemapFile() 139 mapPos_ = remapPos; in RemapFile()
|
/developtools/profiler/device/services/profiler_service/src/ |
H A D | trace_file_writer.cpp | 474 size_t remapPos = fileWriteLength_ & ~(pageSize_ - 1); in RemapFile() local 475 fileMapAddr_ = mmap(nullptr, newLength, PROT_WRITE | PROT_READ, MAP_SHARED | MAP_POPULATE, fd_, remapPos); in RemapFile() 477 PROFILER_LOG_ERROR(LOG_CORE, "remap(%zu:%zu) data file failed, error: %s", newLength, remapPos, in RemapFile() 482 mapOffset_ = fileWriteLength_ - remapPos; in RemapFile() 484 PROFILER_LOG_INFO(LOG_CORE, "remap(%zu:%zu) data file(%zu) sucess", remapPos, mapOffset_, fileLength_); in RemapFile()
|
Completed in 2 milliseconds