4
0
Эх сурвалжийг харах

Update libbpf to 93e89b34740c509406e948c78a404dd2fba67b8b

dave-tucker 3 жил өмнө
parent
commit
17d43cd6f8

+ 1 - 1
aya/src/generated/btf_internal_bindings.rs

@@ -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;

+ 4 - 3
aya/src/generated/linux_bindings_aarch64.rs

@@ -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)]

+ 4 - 3
aya/src/generated/linux_bindings_armv7.rs

@@ -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)]

+ 4 - 3
aya/src/generated/linux_bindings_x86_64.rs

@@ -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)]

+ 16 - 0
bpf/aya-bpf-bindings/src/aarch64/helpers.rs

@@ -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)
+}

+ 16 - 0
bpf/aya-bpf-bindings/src/armv7/helpers.rs

@@ -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)
+}

+ 16 - 0
bpf/aya-bpf-bindings/src/x86_64/helpers.rs

@@ -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)
+}