diff --git a/src/unix/notbsd/linux/musl/b32/arm.rs b/src/unix/notbsd/linux/musl/b32/arm.rs index bfd8f7c5..b87913f3 100644 --- a/src/unix/notbsd/linux/musl/b32/arm.rs +++ b/src/unix/notbsd/linux/musl/b32/arm.rs @@ -304,3 +304,4 @@ pub const FIONREAD: ::c_ulong = 0x541B; pub const TIOCCONS: ::c_ulong = 0x541D; pub const SYS_gettid: ::c_long = 224; +pub const SYS_perf_event_open: ::c_long = 364; diff --git a/src/unix/notbsd/linux/musl/b32/mips.rs b/src/unix/notbsd/linux/musl/b32/mips.rs index 1fd9280f..afe806ac 100644 --- a/src/unix/notbsd/linux/musl/b32/mips.rs +++ b/src/unix/notbsd/linux/musl/b32/mips.rs @@ -303,3 +303,4 @@ pub const FIONREAD: ::c_ulong = 0x467F; pub const TIOCCONS: ::c_ulong = 0x80047478; pub const SYS_gettid: ::c_long = 4222; // Valid for O32 +pub const SYS_perf_event_open: ::c_long = 4333; // Valid for O32 diff --git a/src/unix/notbsd/linux/musl/b32/x86.rs b/src/unix/notbsd/linux/musl/b32/x86.rs index 6a77e819..27855478 100644 --- a/src/unix/notbsd/linux/musl/b32/x86.rs +++ b/src/unix/notbsd/linux/musl/b32/x86.rs @@ -305,3 +305,4 @@ pub const FIONREAD: ::c_ulong = 0x541B; pub const TIOCCONS: ::c_ulong = 0x541D; pub const SYS_gettid: ::c_long = 224; +pub const SYS_perf_event_open: ::c_long = 336; diff --git a/src/unix/notbsd/linux/musl/b64/aarch64.rs b/src/unix/notbsd/linux/musl/b64/aarch64.rs index e69de29b..51db30f2 100644 --- a/src/unix/notbsd/linux/musl/b64/aarch64.rs +++ b/src/unix/notbsd/linux/musl/b64/aarch64.rs @@ -0,0 +1 @@ +pub const SYS_perf_event_open: ::c_long = 241; diff --git a/src/unix/notbsd/linux/musl/b64/powerpc64.rs b/src/unix/notbsd/linux/musl/b64/powerpc64.rs index e69de29b..bb818636 100644 --- a/src/unix/notbsd/linux/musl/b64/powerpc64.rs +++ b/src/unix/notbsd/linux/musl/b64/powerpc64.rs @@ -0,0 +1 @@ +pub const SYS_perf_event_open: ::c_long = 319; diff --git a/src/unix/notbsd/linux/musl/b64/x86_64.rs b/src/unix/notbsd/linux/musl/b64/x86_64.rs index 52643bb0..168e2429 100644 --- a/src/unix/notbsd/linux/musl/b64/x86_64.rs +++ b/src/unix/notbsd/linux/musl/b64/x86_64.rs @@ -1 +1,3 @@ pub const SYS_gettid: ::c_long = 186; + +pub const SYS_perf_event_open: ::c_long = 298; diff --git a/src/unix/notbsd/linux/other/b32/arm.rs b/src/unix/notbsd/linux/other/b32/arm.rs index 8537d52a..7de4b8b9 100644 --- a/src/unix/notbsd/linux/other/b32/arm.rs +++ b/src/unix/notbsd/linux/other/b32/arm.rs @@ -20,3 +20,4 @@ pub const FIOCLEX: ::c_ulong = 0x5451; pub const FIONBIO: ::c_ulong = 0x5421; pub const SYS_gettid: ::c_long = 224; +pub const SYS_perf_event_open: ::c_long = 364; diff --git a/src/unix/notbsd/linux/other/b32/powerpc.rs b/src/unix/notbsd/linux/other/b32/powerpc.rs index 52c285c4..2334c1f8 100644 --- a/src/unix/notbsd/linux/other/b32/powerpc.rs +++ b/src/unix/notbsd/linux/other/b32/powerpc.rs @@ -20,3 +20,4 @@ pub const FIOCLEX: ::c_ulong = 0x20006601; pub const FIONBIO: ::c_ulong = 0x8004667e; pub const SYS_gettid: ::c_long = 207; +pub const SYS_perf_event_open: ::c_long = 319; diff --git a/src/unix/notbsd/linux/other/b32/x86.rs b/src/unix/notbsd/linux/other/b32/x86.rs index edb5aa5d..1b215a97 100644 --- a/src/unix/notbsd/linux/other/b32/x86.rs +++ b/src/unix/notbsd/linux/other/b32/x86.rs @@ -36,6 +36,7 @@ pub const FIOCLEX: ::c_ulong = 0x5451; pub const FIONBIO: ::c_ulong = 0x5421; pub const SYS_gettid: ::c_long = 224; +pub const SYS_perf_event_open: ::c_long = 336; extern { pub fn getcontext(ucp: *mut ucontext_t) -> ::c_int; diff --git a/src/unix/notbsd/linux/other/b64/aarch64.rs b/src/unix/notbsd/linux/other/b64/aarch64.rs index d6f8b7ce..d227c466 100644 --- a/src/unix/notbsd/linux/other/b64/aarch64.rs +++ b/src/unix/notbsd/linux/other/b64/aarch64.rs @@ -77,3 +77,4 @@ pub const FIOCLEX: ::c_ulong = 0x5451; pub const FIONBIO: ::c_ulong = 0x5421; pub const SYS_gettid: ::c_long = 178; +pub const SYS_perf_event_open: ::c_long = 241; diff --git a/src/unix/notbsd/linux/other/b64/powerpc64.rs b/src/unix/notbsd/linux/other/b64/powerpc64.rs index e9494ddd..72db09e9 100644 --- a/src/unix/notbsd/linux/other/b64/powerpc64.rs +++ b/src/unix/notbsd/linux/other/b64/powerpc64.rs @@ -75,3 +75,4 @@ pub const FIOCLEX: ::c_ulong = 0x20006601; pub const FIONBIO: ::c_ulong = 0x8004667e; pub const SYS_gettid: ::c_long = 207; +pub const SYS_perf_event_open: ::c_long = 319; diff --git a/src/unix/notbsd/linux/other/b64/x86_64.rs b/src/unix/notbsd/linux/other/b64/x86_64.rs index 5b608e1f..6903c627 100644 --- a/src/unix/notbsd/linux/other/b64/x86_64.rs +++ b/src/unix/notbsd/linux/other/b64/x86_64.rs @@ -96,6 +96,7 @@ pub const PTRACE_GETREGS: ::c_uint = 12; pub const PTRACE_SETREGS: ::c_uint = 13; pub const SYS_gettid: ::c_long = 186; +pub const SYS_perf_event_open: ::c_long = 298; extern { pub fn getcontext(ucp: *mut ucontext_t) -> ::c_int;