Merge pull request #134 from aya-rs/codegen

Update libbpf to 93e89b34740c509406e948c78a404dd2fba67b8b
pull/135/head
Alessandro Decina 3 years ago committed by GitHub
commit f34b76c8d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.59.1 */
/* automatically generated by rust-bindgen 0.59.2 */
pub type __u8 = ::std::os::raw::c_uchar;
pub type __u16 = ::std::os::raw::c_ushort;

@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.59.1 */
/* automatically generated by rust-bindgen 0.59.2 */
#[repr(C)]
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
@ -717,8 +717,9 @@ pub const BTF_KIND_VAR: ::std::os::raw::c_uint = 14;
pub const BTF_KIND_DATASEC: ::std::os::raw::c_uint = 15;
pub const BTF_KIND_FLOAT: ::std::os::raw::c_uint = 16;
pub const BTF_KIND_DECL_TAG: ::std::os::raw::c_uint = 17;
pub const NR_BTF_KINDS: ::std::os::raw::c_uint = 18;
pub const BTF_KIND_MAX: ::std::os::raw::c_uint = 17;
pub const BTF_KIND_TYPE_TAG: ::std::os::raw::c_uint = 18;
pub const NR_BTF_KINDS: ::std::os::raw::c_uint = 19;
pub const BTF_KIND_MAX: ::std::os::raw::c_uint = 18;
pub type _bindgen_ty_37 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]

@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.59.1 */
/* automatically generated by rust-bindgen 0.59.2 */
#[repr(C)]
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
@ -717,8 +717,9 @@ pub const BTF_KIND_VAR: ::std::os::raw::c_uint = 14;
pub const BTF_KIND_DATASEC: ::std::os::raw::c_uint = 15;
pub const BTF_KIND_FLOAT: ::std::os::raw::c_uint = 16;
pub const BTF_KIND_DECL_TAG: ::std::os::raw::c_uint = 17;
pub const NR_BTF_KINDS: ::std::os::raw::c_uint = 18;
pub const BTF_KIND_MAX: ::std::os::raw::c_uint = 17;
pub const BTF_KIND_TYPE_TAG: ::std::os::raw::c_uint = 18;
pub const NR_BTF_KINDS: ::std::os::raw::c_uint = 19;
pub const BTF_KIND_MAX: ::std::os::raw::c_uint = 18;
pub type _bindgen_ty_37 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]

@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.59.1 */
/* automatically generated by rust-bindgen 0.59.2 */
#[repr(C)]
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
@ -717,8 +717,9 @@ pub const BTF_KIND_VAR: ::std::os::raw::c_uint = 14;
pub const BTF_KIND_DATASEC: ::std::os::raw::c_uint = 15;
pub const BTF_KIND_FLOAT: ::std::os::raw::c_uint = 16;
pub const BTF_KIND_DECL_TAG: ::std::os::raw::c_uint = 17;
pub const NR_BTF_KINDS: ::std::os::raw::c_uint = 18;
pub const BTF_KIND_MAX: ::std::os::raw::c_uint = 17;
pub const BTF_KIND_TYPE_TAG: ::std::os::raw::c_uint = 18;
pub const NR_BTF_KINDS: ::std::os::raw::c_uint = 19;
pub const BTF_KIND_MAX: ::std::os::raw::c_uint = 18;
pub type _bindgen_ty_37 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]

@ -1809,3 +1809,19 @@ pub unsafe fn bpf_kallsyms_lookup_name(
) -> ::aya_bpf_cty::c_long = ::core::mem::transmute(179usize);
fun(name, name_sz, flags, res)
}
pub unsafe fn bpf_find_vma(
task: *mut task_struct,
addr: __u64,
callback_fn: *mut ::aya_bpf_cty::c_void,
callback_ctx: *mut ::aya_bpf_cty::c_void,
flags: __u64,
) -> ::aya_bpf_cty::c_long {
let fun: unsafe extern "C" fn(
task: *mut task_struct,
addr: __u64,
callback_fn: *mut ::aya_bpf_cty::c_void,
callback_ctx: *mut ::aya_bpf_cty::c_void,
flags: __u64,
) -> ::aya_bpf_cty::c_long = ::core::mem::transmute(180usize);
fun(task, addr, callback_fn, callback_ctx, flags)
}

@ -1809,3 +1809,19 @@ pub unsafe fn bpf_kallsyms_lookup_name(
) -> ::aya_bpf_cty::c_long = ::core::mem::transmute(179usize);
fun(name, name_sz, flags, res)
}
pub unsafe fn bpf_find_vma(
task: *mut task_struct,
addr: __u64,
callback_fn: *mut ::aya_bpf_cty::c_void,
callback_ctx: *mut ::aya_bpf_cty::c_void,
flags: __u64,
) -> ::aya_bpf_cty::c_long {
let fun: unsafe extern "C" fn(
task: *mut task_struct,
addr: __u64,
callback_fn: *mut ::aya_bpf_cty::c_void,
callback_ctx: *mut ::aya_bpf_cty::c_void,
flags: __u64,
) -> ::aya_bpf_cty::c_long = ::core::mem::transmute(180usize);
fun(task, addr, callback_fn, callback_ctx, flags)
}

@ -1809,3 +1809,19 @@ pub unsafe fn bpf_kallsyms_lookup_name(
) -> ::aya_bpf_cty::c_long = ::core::mem::transmute(179usize);
fun(name, name_sz, flags, res)
}
pub unsafe fn bpf_find_vma(
task: *mut task_struct,
addr: __u64,
callback_fn: *mut ::aya_bpf_cty::c_void,
callback_ctx: *mut ::aya_bpf_cty::c_void,
flags: __u64,
) -> ::aya_bpf_cty::c_long {
let fun: unsafe extern "C" fn(
task: *mut task_struct,
addr: __u64,
callback_fn: *mut ::aya_bpf_cty::c_void,
callback_ctx: *mut ::aya_bpf_cty::c_void,
flags: __u64,
) -> ::aya_bpf_cty::c_long = ::core::mem::transmute(180usize);
fun(task, addr, callback_fn, callback_ctx, flags)
}

Loading…
Cancel
Save