stdlib: make linux.PERF.TYPE non-exhaustive

perf_event_attr.type needs to take a runtime defined value to enable
dynamic PMU:s, such as kprobe and uprobe. This value can exceed
predefined values defined in the linux headers.

reference: perf_event_open(2) man page
This commit is contained in:
Björn Linse
2022-07-12 10:47:05 +02:00
committed by Andrew Kelley
parent 3c3def6ac2
commit a09a5ad574

View File

@@ -5513,6 +5513,7 @@ pub const PERF = struct {
RAW,
BREAKPOINT,
MAX,
_,
};
pub const COUNT = struct {