Skip to content

Commit

Permalink
Update libbpf to 1.4.0
Browse files Browse the repository at this point in the history
Update the libbpf submodule to version 1.4.0 to get the latest and
greatest.

Signed-off-by: Daniel Müller <deso@posteo.net>
  • Loading branch information
d-e-s-o authored and alexforster committed Apr 1, 2024
1 parent a93191a commit 6647f2e
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 7 deletions.
60 changes: 54 additions & 6 deletions src/bindings.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.69.2 */
/* automatically generated by rust-bindgen 0.69.4 */

#[repr(C)]
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
Expand Down Expand Up @@ -1294,7 +1294,6 @@ pub union perf_event_mmap_page__bindgen_ty_1 {
pub __bindgen_anon_1: perf_event_mmap_page__bindgen_ty_1__bindgen_ty_1,
}
#[repr(C)]
#[repr(align(8))]
#[derive(Debug, Default, Copy, Clone)]
pub struct perf_event_mmap_page__bindgen_ty_1__bindgen_ty_1 {
pub _bitfield_align_1: [u64; 0],
Expand Down Expand Up @@ -2130,7 +2129,8 @@ pub const BPF_MAP_TYPE_TASK_STORAGE: bpf_map_type = 29;
pub const BPF_MAP_TYPE_BLOOM_FILTER: bpf_map_type = 30;
pub const BPF_MAP_TYPE_USER_RINGBUF: bpf_map_type = 31;
pub const BPF_MAP_TYPE_CGRP_STORAGE: bpf_map_type = 32;
pub const __MAX_BPF_MAP_TYPE: bpf_map_type = 33;
pub const BPF_MAP_TYPE_ARENA: bpf_map_type = 33;
pub const __MAX_BPF_MAP_TYPE: bpf_map_type = 34;
pub type bpf_map_type = ::std::os::raw::c_uint;
pub const BPF_PROG_TYPE_UNSPEC: bpf_prog_type = 0;
pub const BPF_PROG_TYPE_SOCKET_FILTER: bpf_prog_type = 1;
Expand Down Expand Up @@ -2253,6 +2253,8 @@ pub const BPF_F_KPROBE_MULTI_RETURN: _bindgen_ty_62 = 1;
pub type _bindgen_ty_62 = ::std::os::raw::c_uint;
pub const BPF_F_UPROBE_MULTI_RETURN: _bindgen_ty_63 = 1;
pub type _bindgen_ty_63 = ::std::os::raw::c_uint;
pub const BPF_ADDR_SPACE_CAST: bpf_addr_space_cast = 1;
pub type bpf_addr_space_cast = ::std::os::raw::c_uint;
pub const BPF_ANY: _bindgen_ty_64 = 0;
pub const BPF_NOEXIST: _bindgen_ty_64 = 1;
pub const BPF_EXIST: _bindgen_ty_64 = 2;
Expand All @@ -2275,6 +2277,8 @@ pub const BPF_F_LINK: _bindgen_ty_65 = 8192;
pub const BPF_F_PATH_FD: _bindgen_ty_65 = 16384;
pub const BPF_F_VTYPE_BTF_OBJ_FD: _bindgen_ty_65 = 32768;
pub const BPF_F_TOKEN_FD: _bindgen_ty_65 = 65536;
pub const BPF_F_SEGV_ON_FAULT: _bindgen_ty_65 = 131072;
pub const BPF_F_NO_USER_CONV: _bindgen_ty_65 = 262144;
pub type _bindgen_ty_65 = ::std::os::raw::c_uint;
pub const BPF_STATS_RUN_TIME: bpf_stats_type = 0;
pub type bpf_stats_type = ::std::os::raw::c_uint;
Expand Down Expand Up @@ -2645,7 +2649,16 @@ impl bpf_attr__bindgen_ty_10 {
pub struct bpf_attr__bindgen_ty_11 {
pub name: __u64,
pub prog_fd: __u32,
pub __bindgen_padding_0: [u8; 4usize],
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
pub cookie: __u64,
}
impl bpf_attr__bindgen_ty_11 {
#[inline]
pub fn new_bitfield_1() -> __BindgenBitfieldUnit<[u8; 4usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
__bindgen_bitfield_unit
}
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
Expand Down Expand Up @@ -5368,6 +5381,28 @@ extern "C" {
prog_cnt: *mut __u32,
) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bpf_raw_tp_opts {
pub sz: size_t,
pub tp_name: *const ::std::os::raw::c_char,
pub cookie: __u64,
}
impl Default for bpf_raw_tp_opts {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
extern "C" {
pub fn bpf_raw_tracepoint_open_opts(
prog_fd: ::std::os::raw::c_int,
opts: *mut bpf_raw_tp_opts,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn bpf_raw_tracepoint_open(
name: *const ::std::os::raw::c_char,
Expand Down Expand Up @@ -5451,8 +5486,8 @@ extern "C" {
opts: *mut bpf_token_create_opts,
) -> ::std::os::raw::c_int;
}
pub type va_list = __builtin_va_list;
pub type __gnuc_va_list = __builtin_va_list;
pub type va_list = __builtin_va_list;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct btf_header {
Expand Down Expand Up @@ -6512,12 +6547,25 @@ extern "C" {
opts: *const bpf_tracepoint_opts,
) -> *mut bpf_link;
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct bpf_raw_tracepoint_opts {
pub sz: size_t,
pub cookie: __u64,
}
extern "C" {
pub fn bpf_program__attach_raw_tracepoint(
prog: *const bpf_program,
tp_name: *const ::std::os::raw::c_char,
) -> *mut bpf_link;
}
extern "C" {
pub fn bpf_program__attach_raw_tracepoint_opts(
prog: *const bpf_program,
tp_name: *const ::std::os::raw::c_char,
opts: *mut bpf_raw_tracepoint_opts,
) -> *mut bpf_link;
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct bpf_trace_opts {
Expand Down Expand Up @@ -6790,7 +6838,7 @@ extern "C" {
}
extern "C" {
pub fn bpf_map__initial_value(
map: *mut bpf_map,
map: *const bpf_map,
psize: *mut size_t,
) -> *mut ::std::os::raw::c_void;
}
Expand Down

0 comments on commit 6647f2e

Please sign in to comment.