File tree Expand file tree Collapse file tree 7 files changed +36
-2
lines changed Expand file tree Collapse file tree 7 files changed +36
-2
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,6 @@ targets = [
107
107
" thumbv7neon-unknown-linux-gnueabihf" ,
108
108
" wasm32-unknown-emscripten" ,
109
109
" wasm32-unknown-unknown" ,
110
- " wasm32-wasi" ,
111
110
" x86_64-apple-darwin" ,
112
111
" x86_64-apple-ios" ,
113
112
" x86_64-fortanix-unknown-sgx" ,
Original file line number Diff line number Diff line change @@ -136,7 +136,6 @@ armv5te-unknown-linux-gnueabi \
136
136
armv5te-unknown-linux-musleabi \
137
137
i686-pc-windows-gnu \
138
138
riscv64gc-unknown-linux-gnu \
139
- wasm32-wasi \
140
139
x86_64-fortanix-unknown-sgx \
141
140
x86_64-unknown-fuchsia \
142
141
x86_64-pc-solaris \
Original file line number Diff line number Diff line change @@ -3864,6 +3864,9 @@ fn test_linux(target: &str) {
3864
3864
// kernel so we can drop this and test the type once this new version is used in CI.
3865
3865
"sched_attr" => true ,
3866
3866
3867
+ // FIXME: Requires >= 6.9 kernel headers.
3868
+ "epoll_params" => true ,
3869
+
3867
3870
_ => false ,
3868
3871
}
3869
3872
} ) ;
@@ -4306,6 +4309,10 @@ fn test_linux(target: &str) {
4306
4309
| "SCHED_FLAG_UTIL_CLAMP"
4307
4310
| "SCHED_FLAG_ALL" if musl => true , // Needs more recent linux headers.
4308
4311
4312
+ // FIXME: Requires >= 6.9 kernel headers.
4313
+ "EPIOCSPARAMS"
4314
+ | "EPIOCGPARAMS" => true ,
4315
+
4309
4316
_ => false ,
4310
4317
}
4311
4318
} ) ;
Original file line number Diff line number Diff line change @@ -1983,6 +1983,9 @@ getxattr
1983
1983
glob
1984
1984
glob_t
1985
1985
globfree
1986
+ host_cpu_load_info
1987
+ host_cpu_load_info_data_t
1988
+ host_cpu_load_info_t
1986
1989
iconv
1987
1990
iconv_close
1988
1991
iconv_open
Original file line number Diff line number Diff line change @@ -550,6 +550,8 @@ ENOTSUP
550
550
ENOTUNIQ
551
551
EOF
552
552
EOWNERDEAD
553
+ EPIOCGPARAMS
554
+ EPIOCSPARAMS
553
555
EPOLLERR
554
556
EPOLLET
555
557
EPOLLEXCLUSIVE
@@ -3489,6 +3491,7 @@ epoll_create
3489
3491
epoll_create1
3490
3492
epoll_ctl
3491
3493
epoll_event
3494
+ epoll_params
3492
3495
epoll_pwait
3493
3496
epoll_wait
3494
3497
erand48
Original file line number Diff line number Diff line change @@ -72,6 +72,11 @@ pub type ledger_array_t = *mut ::ledger_t;
72
72
73
73
pub type iconv_t = * mut :: c_void ;
74
74
75
+ // mach/host_info.h
76
+ pub type host_cpu_load_info_t = * mut host_cpu_load_info ;
77
+ pub type host_cpu_load_info_data_t = host_cpu_load_info ;
78
+
79
+ // mach/processor_info.h
75
80
pub type processor_cpu_load_info_t = * mut processor_cpu_load_info ;
76
81
pub type processor_cpu_load_info_data_t = processor_cpu_load_info ;
77
82
pub type processor_basic_info_t = * mut processor_basic_info ;
@@ -1189,6 +1194,11 @@ s! {
1189
1194
pub tcpi_rxoutoforderbytes: u64 ,
1190
1195
pub tcpi_rxretransmitpackets: u64 ,
1191
1196
}
1197
+
1198
+ // mach/host_info.h
1199
+ pub struct host_cpu_load_info {
1200
+ pub cpu_ticks: [ :: natural_t; CPU_STATE_MAX as usize ] ,
1201
+ }
1192
1202
}
1193
1203
1194
1204
s_no_extra_traits ! {
Original file line number Diff line number Diff line change @@ -880,6 +880,15 @@ s! {
880
880
pub salt: [ :: c_uchar; TLS_CIPHER_CHACHA20_POLY1305_SALT_SIZE ] ,
881
881
pub rec_seq: [ :: c_uchar; TLS_CIPHER_CHACHA20_POLY1305_REC_SEQ_SIZE ] ,
882
882
}
883
+
884
+ // #include <linux/eventpoll.h>
885
+
886
+ pub struct epoll_params {
887
+ pub busy_poll_usecs: u32 ,
888
+ pub busy_poll_budget: u16 ,
889
+ pub prefer_busy_poll: u8 ,
890
+ pub __pad: u8 , // Must be zero
891
+ }
883
892
}
884
893
885
894
s_no_extra_traits ! {
@@ -4936,6 +4945,10 @@ pub const SCHED_FLAG_ALL: ::c_int = SCHED_FLAG_RESET_ON_FORK
4936
4945
| SCHED_FLAG_KEEP_ALL
4937
4946
| SCHED_FLAG_UTIL_CLAMP ;
4938
4947
4948
+ // ioctl_eventpoll: added in Linux 6.9
4949
+ pub const EPIOCSPARAMS : :: Ioctl = 0x40088a01 ;
4950
+ pub const EPIOCGPARAMS : :: Ioctl = 0x80088a02 ;
4951
+
4939
4952
f ! {
4940
4953
pub fn NLA_ALIGN ( len: :: c_int) -> :: c_int {
4941
4954
return ( ( len) + NLA_ALIGNTO - 1 ) & !( NLA_ALIGNTO - 1 )
You can’t perform that action at this time.
0 commit comments