Skip to content

Commit 3935381

Browse files
committed
Regenerate bindings
1 parent 108ef39 commit 3935381

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

rebuild.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ DOCKER="docker"
55
set -eu -o pipefail
66

77
${DOCKER} build --platform linux/amd64 -t libbpf-sys-builder - <<'EOF'
8-
FROM ubuntu:jammy AS libbpf-sys-builder
8+
FROM ubuntu:latest AS libbpf-sys-builder
99
1010
ENV LANG=C.UTF-8 \
1111
LC_ALL=C.UTF-8
@@ -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: 10 additions & 6 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) {
@@ -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)