Searched refs:max_sample_freq (Results 1 – 3 of 3) sorted by relevance
57 uint64_t max_sample_freq; in OpenEventFile() local58 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()
78 bool GetMaxSampleFrequency(uint64_t* max_sample_freq);79 bool SetMaxSampleFrequency(uint64_t max_sample_freq);
466 bool GetMaxSampleFrequency(uint64_t* max_sample_freq) { in GetMaxSampleFrequency() argument467 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() argument471 return WriteUintToProcFile("/proc/sys/kernel/perf_event_max_sample_rate", max_sample_freq); in SetMaxSampleFrequency()