Home
last modified time | relevance | path

Searched refs:KPTR_RESTRICT (Results 1 - 6 of 6) sorted by relevance

/developtools/hiperf/test/unittest/common/native/include/
H A Dsymbols_file_test.h57 static const std::string KPTR_RESTRICT = "/proc/sys/kernel/kptr_restrict"; member
/developtools/profiler/device/plugins/native_daemon/test/unittest/common/native/include/
H A Dsymbols_file_test.h57 static const std::string KPTR_RESTRICT = "/proc/sys/kernel/kptr_restrict"; member
/developtools/hiperf/src/
H A Dsymbols_file.cpp607 const std::string KPTR_RESTRICT = "/proc/sys/kernel/kptr_restrict"; member in OHOS::Developtools::HiPerf::KernelSymbols
620 std::string oldKptrRestrict = ReadFileToString(KPTR_RESTRICT); in LoadKernelSyms()
623 hasChangeKptr = WriteStringToFile(KPTR_RESTRICT, "0"); in LoadKernelSyms()
633 if (!WriteStringToFile(KPTR_RESTRICT, oldKptrRestrict)) { in LoadKernelSyms()
726 std::string oldKptrRestrict = ReadFileToString(KPTR_RESTRICT); in LoadKernelSyms()
729 hasChangeKptr = WriteStringToFile(KPTR_RESTRICT, "0"); in LoadKernelSyms()
739 if (!WriteStringToFile(KPTR_RESTRICT, oldKptrRestrict)) { in LoadKernelSyms()
/developtools/profiler/device/plugins/native_daemon/src/
H A Dsymbols_file.cpp519 const std::string KPTR_RESTRICT = "/proc/sys/kernel/kptr_restrict"; member in OHOS::Developtools::NativeDaemon::KernelSymbols
533 if (ReadFileToString(KPTR_RESTRICT).front() != '0') { in LoadKernelSyms()
535 if (!WriteStringToFile(KPTR_RESTRICT, "0")) { in LoadKernelSyms()
/developtools/hiperf/test/unittest/common/native/
H A Dsymbols_file_test.cpp67 std::ifstream inputString(KPTR_RESTRICT, std::ios::in); in KptrRestrict()
/developtools/profiler/device/plugins/native_daemon/test/unittest/common/native/
H A Dsymbols_file_test.cpp98 std::ifstream inputString(KPTR_RESTRICT, std::ios::in); in KptrRestrict()

Completed in 7 milliseconds