Searched refs:mlock_kb (Results 1 – 3 of 3) sorted by relevance
77 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);
401 bool SetPerfEventLimits(uint64_t sample_freq, size_t cpu_percent, uint64_t mlock_kb) { in SetPerfEventLimits() argument404 !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() argument483 return ReadUintFromProcFile("/proc/sys/kernel/perf_event_mlock_kb", mlock_kb); in GetPerfEventMlockKb()486 bool SetPerfEventMlockKb(uint64_t mlock_kb) { in SetPerfEventMlockKb() argument487 return WriteUintToProcFile("/proc/sys/kernel/perf_event_mlock_kb", mlock_kb); in SetPerfEventMlockKb()
980 uint64_t mlock_kb = sysconf(_SC_NPROCESSORS_CONF) * (mmap_page_range_.second + 1) * 4; in AdjustPerfEventLimit() local982 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()