瀏覽代碼

Merge pull request #267 from aya-rs/codegen

Update libbpf to 86eb09863c1c0177e99c2c703092042d3cdba910
Alessandro Decina 2 年之前
父節點
當前提交
aacf6ec110

+ 7 - 0
aya/src/generated/linux_bindings_aarch64.rs

@@ -633,6 +633,7 @@ pub union bpf_attr__bindgen_ty_14__bindgen_ty_2 {
     pub __bindgen_anon_1: bpf_attr__bindgen_ty_14__bindgen_ty_2__bindgen_ty_1,
     pub perf_event: bpf_attr__bindgen_ty_14__bindgen_ty_2__bindgen_ty_2,
     pub kprobe_multi: bpf_attr__bindgen_ty_14__bindgen_ty_2__bindgen_ty_3,
+    pub tracing: bpf_attr__bindgen_ty_14__bindgen_ty_2__bindgen_ty_4,
 }
 #[repr(C)]
 #[derive(Debug, Copy, Clone)]
@@ -656,6 +657,12 @@ pub struct bpf_attr__bindgen_ty_14__bindgen_ty_2__bindgen_ty_3 {
 }
 #[repr(C)]
 #[derive(Debug, Copy, Clone)]
+pub struct bpf_attr__bindgen_ty_14__bindgen_ty_2__bindgen_ty_4 {
+    pub target_btf_id: __u32,
+    pub cookie: __u64,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
 pub struct bpf_attr__bindgen_ty_15 {
     pub link_fd: __u32,
     pub new_prog_fd: __u32,

+ 7 - 0
aya/src/generated/linux_bindings_armv7.rs

@@ -633,6 +633,7 @@ pub union bpf_attr__bindgen_ty_14__bindgen_ty_2 {
     pub __bindgen_anon_1: bpf_attr__bindgen_ty_14__bindgen_ty_2__bindgen_ty_1,
     pub perf_event: bpf_attr__bindgen_ty_14__bindgen_ty_2__bindgen_ty_2,
     pub kprobe_multi: bpf_attr__bindgen_ty_14__bindgen_ty_2__bindgen_ty_3,
+    pub tracing: bpf_attr__bindgen_ty_14__bindgen_ty_2__bindgen_ty_4,
 }
 #[repr(C)]
 #[derive(Debug, Copy, Clone)]
@@ -656,6 +657,12 @@ pub struct bpf_attr__bindgen_ty_14__bindgen_ty_2__bindgen_ty_3 {
 }
 #[repr(C)]
 #[derive(Debug, Copy, Clone)]
+pub struct bpf_attr__bindgen_ty_14__bindgen_ty_2__bindgen_ty_4 {
+    pub target_btf_id: __u32,
+    pub cookie: __u64,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
 pub struct bpf_attr__bindgen_ty_15 {
     pub link_fd: __u32,
     pub new_prog_fd: __u32,

+ 7 - 0
aya/src/generated/linux_bindings_x86_64.rs

@@ -633,6 +633,7 @@ pub union bpf_attr__bindgen_ty_14__bindgen_ty_2 {
     pub __bindgen_anon_1: bpf_attr__bindgen_ty_14__bindgen_ty_2__bindgen_ty_1,
     pub perf_event: bpf_attr__bindgen_ty_14__bindgen_ty_2__bindgen_ty_2,
     pub kprobe_multi: bpf_attr__bindgen_ty_14__bindgen_ty_2__bindgen_ty_3,
+    pub tracing: bpf_attr__bindgen_ty_14__bindgen_ty_2__bindgen_ty_4,
 }
 #[repr(C)]
 #[derive(Debug, Copy, Clone)]
@@ -656,6 +657,12 @@ pub struct bpf_attr__bindgen_ty_14__bindgen_ty_2__bindgen_ty_3 {
 }
 #[repr(C)]
 #[derive(Debug, Copy, Clone)]
+pub struct bpf_attr__bindgen_ty_14__bindgen_ty_2__bindgen_ty_4 {
+    pub target_btf_id: __u32,
+    pub cookie: __u64,
+}
+#[repr(C)]
+#[derive(Debug, Copy, Clone)]
 pub struct bpf_attr__bindgen_ty_15 {
     pub link_fd: __u32,
     pub new_prog_fd: __u32,

文件差異過大導致無法顯示
+ 928 - 0
bpf/aya-bpf-bindings/src/aarch64/bindings.rs


文件差異過大導致無法顯示
+ 979 - 0
bpf/aya-bpf-bindings/src/aarch64/getters.rs


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

@@ -1969,3 +1969,15 @@ pub unsafe fn bpf_kptr_xchg(
     ) -> *mut ::aya_bpf_cty::c_void = ::core::mem::transmute(194usize);
     fun(map_value, ptr)
 }
+pub unsafe fn bpf_map_lookup_percpu_elem(
+    map: *mut ::aya_bpf_cty::c_void,
+    key: *const ::aya_bpf_cty::c_void,
+    cpu: __u32,
+) -> *mut ::aya_bpf_cty::c_void {
+    let fun: unsafe extern "C" fn(
+        map: *mut ::aya_bpf_cty::c_void,
+        key: *const ::aya_bpf_cty::c_void,
+        cpu: __u32,
+    ) -> *mut ::aya_bpf_cty::c_void = ::core::mem::transmute(195usize);
+    fun(map, key, cpu)
+}

文件差異過大導致無法顯示
+ 928 - 0
bpf/aya-bpf-bindings/src/armv7/bindings.rs


文件差異過大導致無法顯示
+ 979 - 0
bpf/aya-bpf-bindings/src/armv7/getters.rs


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

@@ -1969,3 +1969,15 @@ pub unsafe fn bpf_kptr_xchg(
     ) -> *mut ::aya_bpf_cty::c_void = ::core::mem::transmute(194usize);
     fun(map_value, ptr)
 }
+pub unsafe fn bpf_map_lookup_percpu_elem(
+    map: *mut ::aya_bpf_cty::c_void,
+    key: *const ::aya_bpf_cty::c_void,
+    cpu: __u32,
+) -> *mut ::aya_bpf_cty::c_void {
+    let fun: unsafe extern "C" fn(
+        map: *mut ::aya_bpf_cty::c_void,
+        key: *const ::aya_bpf_cty::c_void,
+        cpu: __u32,
+    ) -> *mut ::aya_bpf_cty::c_void = ::core::mem::transmute(195usize);
+    fun(map, key, cpu)
+}

文件差異過大導致無法顯示
+ 928 - 0
bpf/aya-bpf-bindings/src/x86_64/bindings.rs


文件差異過大導致無法顯示
+ 979 - 0
bpf/aya-bpf-bindings/src/x86_64/getters.rs


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

@@ -1969,3 +1969,15 @@ pub unsafe fn bpf_kptr_xchg(
     ) -> *mut ::aya_bpf_cty::c_void = ::core::mem::transmute(194usize);
     fun(map_value, ptr)
 }
+pub unsafe fn bpf_map_lookup_percpu_elem(
+    map: *mut ::aya_bpf_cty::c_void,
+    key: *const ::aya_bpf_cty::c_void,
+    cpu: __u32,
+) -> *mut ::aya_bpf_cty::c_void {
+    let fun: unsafe extern "C" fn(
+        map: *mut ::aya_bpf_cty::c_void,
+        key: *const ::aya_bpf_cty::c_void,
+        cpu: __u32,
+    ) -> *mut ::aya_bpf_cty::c_void = ::core::mem::transmute(195usize);
+    fun(map, key, cpu)
+}

部分文件因文件數量過多而無法顯示