Commit a09a5ad574

Björn Linse <bjorn.linse@gmail.com>
2022-07-12 10:47:05
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
1 parent 3c3def6
Changed files (1)
lib
std
lib/std/os/linux.zig
@@ -5513,6 +5513,7 @@ pub const PERF = struct {
         RAW,
         BREAKPOINT,
         MAX,
+        _,
     };
 
     pub const COUNT = struct {