Skip to content

Commit f2aef31

Browse files
committed
Regenerate bindings
1 parent 8c42014 commit f2aef31

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

rebuild.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RUN \
2626
2727
ENTRYPOINT \
2828
source $HOME/.cargo/env; \
29-
cargo build --features bindgen-source --release --verbose;
29+
cargo check --features bindgen-source --verbose;
3030
EOF
3131

3232
${DOCKER} run --platform linux/amd64 --rm -v "$(pwd):/usr/local/src/libbpf-sys" libbpf-sys-builder

src/bindings.rs

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ where
4949
index % 8
5050
};
5151
let mask = 1 << bit_index;
52-
if val { byte | mask } else { byte & !mask }
52+
if val {
53+
byte | mask
54+
} else {
55+
byte & !mask
56+
}
5357
}
5458
#[inline]
5559
pub fn set_bit(&mut self, index: usize, val: bool) {
@@ -7108,8 +7112,8 @@ unsafe extern "C" {
71087112
opts: *mut bpf_token_create_opts,
71097113
) -> ::std::os::raw::c_int;
71107114
}
7111-
pub type __gnuc_va_list = __builtin_va_list;
71127115
pub type va_list = __builtin_va_list;
7116+
pub type __gnuc_va_list = __builtin_va_list;
71137117
#[repr(C)]
71147118
#[derive(Debug, Default, Copy, Clone)]
71157119
pub struct btf_header {
@@ -7422,7 +7426,7 @@ unsafe extern "C" {
74227426
}
74237427
unsafe extern "C" {
74247428
pub fn btf__add_ptr(btf: *mut btf, ref_type_id: ::std::os::raw::c_int)
7425-
-> ::std::os::raw::c_int;
7429+
-> ::std::os::raw::c_int;
74267430
}
74277431
unsafe extern "C" {
74287432
pub fn btf__add_array(
@@ -8426,7 +8430,7 @@ unsafe extern "C" {
84268430
}
84278431
unsafe extern "C" {
84288432
pub fn bpf_map__reuse_fd(map: *mut bpf_map, fd: ::std::os::raw::c_int)
8429-
-> ::std::os::raw::c_int;
8433+
-> ::std::os::raw::c_int;
84308434
}
84318435
unsafe extern "C" {
84328436
pub fn bpf_map__name(map: *const bpf_map) -> *const ::std::os::raw::c_char;
@@ -8442,7 +8446,7 @@ unsafe extern "C" {
84428446
}
84438447
unsafe extern "C" {
84448448
pub fn bpf_map__set_max_entries(map: *mut bpf_map, max_entries: __u32)
8445-
-> ::std::os::raw::c_int;
8449+
-> ::std::os::raw::c_int;
84468450
}
84478451
unsafe extern "C" {
84488452
pub fn bpf_map__map_flags(map: *const bpf_map) -> __u32;
@@ -8681,7 +8685,7 @@ unsafe extern "C" {
86818685
}
86828686
unsafe extern "C" {
86838687
pub fn bpf_tc_attach(hook: *const bpf_tc_hook, opts: *mut bpf_tc_opts)
8684-
-> ::std::os::raw::c_int;
8688+
-> ::std::os::raw::c_int;
86858689
}
86868690
unsafe extern "C" {
86878691
pub fn bpf_tc_detach(
@@ -8890,7 +8894,7 @@ unsafe extern "C" {
88908894
}
88918895
unsafe extern "C" {
88928896
pub fn perf_buffer__buffer_fd(pb: *const perf_buffer, buf_idx: size_t)
8893-
-> ::std::os::raw::c_int;
8897+
-> ::std::os::raw::c_int;
88948898
}
88958899
unsafe extern "C" {
88968900
pub fn perf_buffer__buffer(

0 commit comments

Comments
 (0)