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:
committed by
Andrew Kelley
parent
3c3def6ac2
commit
a09a5ad574
@@ -5513,6 +5513,7 @@ pub const PERF = struct {
|
||||
RAW,
|
||||
BREAKPOINT,
|
||||
MAX,
|
||||
_,
|
||||
};
|
||||
|
||||
pub const COUNT = struct {
|
||||
|
||||
Reference in New Issue
Block a user