Home
last modified time | relevance | path

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

/system/extras/simpleperf/
Denvironment.cpp213 static const char* perf_event_allow_path = "/proc/sys/kernel/perf_event_paranoid"; variable
217 if (!android::base::ReadFileToString(perf_event_allow_path, &s)) { in ReadPerfEventAllowStatus()
218 PLOG(DEBUG) << "failed to read " << perf_event_allow_path; in ReadPerfEventAllowStatus()
223 PLOG(ERROR) << "failed to parse " << perf_event_allow_path << ": " << s; in ReadPerfEventAllowStatus()
277 if (android::base::WriteStringToFile("-1", perf_event_allow_path)) { in CheckPerfEventLimit()
282 PLOG(ERROR) << "failed to write -1 to " << perf_event_allow_path; in CheckPerfEventLimit()
312 LOG(ERROR) << perf_event_allow_path << " is " << limit_level << ", " in CheckPerfEventLimit()
319 LOG(ERROR) << perf_event_allow_path << " is " << limit_level << ", " in CheckPerfEventLimit()
321 << perf_event_allow_path << "` to enable profiling."; in CheckPerfEventLimit()