Home
last modified time | relevance | path

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

/system/extras/simpleperf/
Devent_fd.cpp57 uint64_t max_sample_freq; in OpenEventFile() local
58 if (GetMaxSampleFrequency(&max_sample_freq) && max_sample_freq < attr.sample_freq) { in OpenEventFile()
62 LOG(INFO) << "Adjust sample freq to max allowed sample freq " << max_sample_freq; in OpenEventFile()
64 real_attr.sample_freq = max_sample_freq; in OpenEventFile()
Denvironment.h78 bool GetMaxSampleFrequency(uint64_t* max_sample_freq);
79 bool SetMaxSampleFrequency(uint64_t max_sample_freq);
Denvironment.cpp466 bool GetMaxSampleFrequency(uint64_t* max_sample_freq) { in GetMaxSampleFrequency() argument
467 return ReadUintFromProcFile("/proc/sys/kernel/perf_event_max_sample_rate", max_sample_freq); in GetMaxSampleFrequency()
470 bool SetMaxSampleFrequency(uint64_t max_sample_freq) { in SetMaxSampleFrequency() argument
471 return WriteUintToProcFile("/proc/sys/kernel/perf_event_max_sample_rate", max_sample_freq); in SetMaxSampleFrequency()