Searched refs:mlock_kb (Results 1 – 4 of 4) sorted by relevance
80 bool SetPerfEventLimits(uint64_t sample_freq, size_t cpu_percent, uint64_t mlock_kb);85 bool GetPerfEventMlockKb(uint64_t* mlock_kb);86 bool SetPerfEventMlockKb(uint64_t mlock_kb);
325 bool SetPerfEventLimits(uint64_t sample_freq, size_t cpu_percent, uint64_t mlock_kb) { in SetPerfEventLimits() argument328 !SetProperty("debug.perf_event_mlock_kb", mlock_kb) || in SetPerfEventLimits()351 if (!GetPerfEventMlockKb(&kb) || kb == mlock_kb) { in SetPerfEventLimits()406 bool GetPerfEventMlockKb(uint64_t* mlock_kb) { in GetPerfEventMlockKb() argument407 return ReadUintFromProcFile("/proc/sys/kernel/perf_event_mlock_kb", mlock_kb); in GetPerfEventMlockKb()410 bool SetPerfEventMlockKb(uint64_t mlock_kb) { in SetPerfEventMlockKb() argument411 return WriteUintToProcFile("/proc/sys/kernel/perf_event_mlock_kb", mlock_kb); in SetPerfEventMlockKb()
465 uint64_t mlock_kb = cpus * (mmap_page_range_.second + 1) * 4; in AdjustPerfEventLimit() local468 if (GetPerfEventMlockKb(&cur_mlock_kb) && cur_mlock_kb < mlock_kb && in AdjustPerfEventLimit()469 !SetPerfEventMlockKb(mlock_kb)) { in AdjustPerfEventLimit()475 std::max(mlock_kb, cur_mlock_kb)); in AdjustPerfEventLimit()
1155 uint64_t mlock_kb = cpus * (mmap_page_range_.second + 1) * 4; in AdjustPerfEventLimit() local1157 mlock_kb += cpus * aux_buffer_size_ / 1024; in AdjustPerfEventLimit()1160 if (GetPerfEventMlockKb(&cur_mlock_kb) && cur_mlock_kb < mlock_kb && in AdjustPerfEventLimit()1161 !SetPerfEventMlockKb(mlock_kb)) { in AdjustPerfEventLimit()1167 std::max(mlock_kb, cur_mlock_kb)); in AdjustPerfEventLimit()