Home
last modified time | relevance | path

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

/system/extras/simpleperf/
Denvironment.h77 bool SetPerfEventLimits(uint64_t sample_freq, size_t cpu_percent, uint64_t mlock_kb);
82 bool GetPerfEventMlockKb(uint64_t* mlock_kb);
83 bool SetPerfEventMlockKb(uint64_t mlock_kb);
Denvironment.cpp401 bool SetPerfEventLimits(uint64_t sample_freq, size_t cpu_percent, uint64_t mlock_kb) { in SetPerfEventLimits() argument
404 !SetProperty("debug.perf_event_mlock_kb", mlock_kb) || in SetPerfEventLimits()
427 if (!GetPerfEventMlockKb(&kb) || kb == mlock_kb) { in SetPerfEventLimits()
482 bool GetPerfEventMlockKb(uint64_t* mlock_kb) { in GetPerfEventMlockKb() argument
483 return ReadUintFromProcFile("/proc/sys/kernel/perf_event_mlock_kb", mlock_kb); in GetPerfEventMlockKb()
486 bool SetPerfEventMlockKb(uint64_t mlock_kb) { in SetPerfEventMlockKb() argument
487 return WriteUintToProcFile("/proc/sys/kernel/perf_event_mlock_kb", mlock_kb); in SetPerfEventMlockKb()
Dcmd_record.cpp980 uint64_t mlock_kb = sysconf(_SC_NPROCESSORS_CONF) * (mmap_page_range_.second + 1) * 4; in AdjustPerfEventLimit() local
982 if (GetPerfEventMlockKb(&cur_mlock_kb) && cur_mlock_kb < mlock_kb && in AdjustPerfEventLimit()
983 !SetPerfEventMlockKb(mlock_kb)) { in AdjustPerfEventLimit()
989 std::max(mlock_kb, cur_mlock_kb)); in AdjustPerfEventLimit()