diff options
| author | Stanislav Fomichev <sdf@google.com> | 2019-03-20 00:53:24 +0300 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2019-03-26 22:47:41 +0300 |
| commit | b4b6aa83433ea4675d4ba1be56774623db81f14f (patch) | |
| tree | 2e86ff15fa47e584d6c001355cbe3fe754d91543 /include/uapi/linux | |
| parent | 0c4ea7f87abbdb56df616678bc23f10e51a0b4f8 (diff) | |
| download | linux-b4b6aa83433ea4675d4ba1be56774623db81f14f.tar.xz | |
selftests: bpf: don't depend on hardcoded perf sample_freq
When running stacktrace_build_id_nmi, try to query
kernel.perf_event_max_sample_rate sysctl and use it as a sample_freq.
If there was an error reading sysctl, fallback to 5000.
kernel.perf_event_max_sample_rate sysctl can drift and/or can be
adjusted by the perf tool, so assuming a fixed number might be
problematic on a long running machine.
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions
