Home
last modified time | relevance | path

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

/system/extras/simpleperf/
Denvironment.h80 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);
Denvironment.cpp325 bool SetPerfEventLimits(uint64_t sample_freq, size_t cpu_percent, uint64_t mlock_kb) { in SetPerfEventLimits() argument
328 !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() argument
407 return ReadUintFromProcFile("/proc/sys/kernel/perf_event_mlock_kb", mlock_kb); in GetPerfEventMlockKb()
410 bool SetPerfEventMlockKb(uint64_t mlock_kb) { in SetPerfEventMlockKb() argument
411 return WriteUintToProcFile("/proc/sys/kernel/perf_event_mlock_kb", mlock_kb); in SetPerfEventMlockKb()
Dcmd_monitor.cpp465 uint64_t mlock_kb = cpus * (mmap_page_range_.second + 1) * 4; in AdjustPerfEventLimit() local
468 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()
Dcmd_record.cpp1155 uint64_t mlock_kb = cpus * (mmap_page_range_.second + 1) * 4; in AdjustPerfEventLimit() local
1157 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()