authorgravatar for bjorn.linse@gmail.comBjörn Linse <bjorn.linse@gmail.com> 2022-07-12 10:47:05+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-11-16 19:02:24-05:00
loga09a5ad574b8e85480645e0920d6cf4c7e850748
treef6c22b9a42267829dd50dc04a417f50494cd7305
parent3c3def6ac2b01cd2c78e296f328d67d064d73f15

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 files changed, 1 insertions(+), 0 deletions(-)

lib/std/os/linux.zig+1
...@@ -5513,6 +5513,7 @@ pub const PERF = struct {...@@ -5513,6 +5513,7 @@ pub const PERF = struct {
5513 RAW,5513 RAW,
5514 BREAKPOINT,5514 BREAKPOINT,
5515 MAX,5515 MAX,
5516 _,
5516 };5517 };
55175518
5518 pub const COUNT = struct {5519 pub const COUNT = struct {