linux: Add SYS_perf_event_open syscall numbers
The associated `perf_event_attr` struct is not included as it contains unions and a bitfield making it unrepresentable in Rust. Additionally, it is not entirely stable, and has changed size several times.
This commit is contained in:
parent
f934724bba
commit
a63cd45a36
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
@ -0,0 +1 @@
|
||||
pub const SYS_perf_event_open: ::c_long = 241;
|
@ -0,0 +1 @@
|
||||
pub const SYS_perf_event_open: ::c_long = 319;
|
@ -1 +1,3 @@
|
||||
pub const SYS_gettid: ::c_long = 186;
|
||||
|
||||
pub const SYS_perf_event_open: ::c_long = 298;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user