mirror of https://github.com/aya-rs/aya
aya: perf_map: fix bug when max_entries=0
When a perf map has max_entries=0, max_entries is dynamically set at load time to the number of possible cpus as reported by /sys/devices/system/cpu/possible. This change fixes a bug where instead of setting max_entries to the number of possible cpus, we were setting it to the cpu index of the last possible cpu.pull/1/head
parent
3b7ffd0048
commit
4222b140ec
Loading…
Reference in New Issue