Home
last modified time | relevance | path

Searched refs:kptr_restrict_file (Results 1 – 1 of 1) sorted by relevance

/system/extras/simpleperf/
Denvironment.cpp454 const std::string kptr_restrict_file = "/proc/sys/kernel/kptr_restrict"; in CheckKernelSymbolAddresses() local
456 if (!android::base::ReadFileToString(kptr_restrict_file, &s)) { in CheckKernelSymbolAddresses()
457 PLOG(DEBUG) << "failed to read " << kptr_restrict_file; in CheckKernelSymbolAddresses()
463 LOG(ERROR) << "failed to parse " << kptr_restrict_file << ": " << s; in CheckKernelSymbolAddresses()
475 if (IsRoot() && android::base::WriteStringToFile("1", kptr_restrict_file)) { in CheckKernelSymbolAddresses()