From ccf6c4707f136e5c026f806774dac89efe7d78e3 Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Sat, 24 May 2025 14:35:56 -0400 Subject: [PATCH] aya-ebpf: disable generic_const_exprs This has recently regressed on nightly. See https://github.com/rust-lang/rust/issues/141492. --- ebpf/aya-ebpf/build.rs | 3 +- xtask/public-api/aya-ebpf.txt | 90 +++++++++++++++++------------------ xtask/public-api/aya.txt | 2 +- 3 files changed, 48 insertions(+), 47 deletions(-) diff --git a/ebpf/aya-ebpf/build.rs b/ebpf/aya-ebpf/build.rs index 7b0557b2..4c8cea3b 100644 --- a/ebpf/aya-ebpf/build.rs +++ b/ebpf/aya-ebpf/build.rs @@ -33,7 +33,8 @@ fn main() { #[rustversion::nightly] fn check_rust_version() { - println!("cargo:rustc-cfg=generic_const_exprs"); + // TODO(https://github.com/rust-lang/rust/issues/141492): restore this. + // println!("cargo:rustc-cfg=generic_const_exprs"); println!("cargo:rustc-cfg=unstable"); } diff --git a/xtask/public-api/aya-ebpf.txt b/xtask/public-api/aya-ebpf.txt index 424f269b..2d70495b 100644 --- a/xtask/public-api/aya-ebpf.txt +++ b/xtask/public-api/aya-ebpf.txt @@ -5,7 +5,7 @@ pub use aya_ebpf::macros pub mod aya_ebpf::helpers pub use aya_ebpf::helpers::generated pub macro aya_ebpf::helpers::bpf_printk! -pub struct aya_ebpf::helpers::PrintkArg(_) +#[repr(transparent)] pub struct aya_ebpf::helpers::PrintkArg(_) impl aya_ebpf::helpers::PrintkArg pub fn aya_ebpf::helpers::PrintkArg::from_raw(x: u64) -> Self impl core::clone::Clone for aya_ebpf::helpers::PrintkArg @@ -79,7 +79,7 @@ pub unsafe fn aya_ebpf::helpers::bpf_probe_write_user(dst: *mut T, src: *cons pub fn aya_ebpf::helpers::bpf_strncmp(s1: &[u8; N], s2: &core::ffi::c_str::CStr) -> core::cmp::Ordering pub mod aya_ebpf::maps pub mod aya_ebpf::maps::array -pub struct aya_ebpf::maps::array::Array +#[repr(transparent)] pub struct aya_ebpf::maps::array::Array impl aya_ebpf::maps::array::Array pub fn aya_ebpf::maps::array::Array::get(&self, index: u32) -> core::option::Option<&T> pub fn aya_ebpf::maps::array::Array::get_ptr(&self, index: u32) -> core::option::Option<*const T> @@ -110,7 +110,7 @@ pub fn aya_ebpf::maps::array::Array::borrow_mut(&mut self) -> &mut T impl core::convert::From for aya_ebpf::maps::array::Array pub fn aya_ebpf::maps::array::Array::from(t: T) -> T pub mod aya_ebpf::maps::bloom_filter -pub struct aya_ebpf::maps::bloom_filter::BloomFilter +#[repr(transparent)] pub struct aya_ebpf::maps::bloom_filter::BloomFilter impl aya_ebpf::maps::bloom_filter::BloomFilter pub fn aya_ebpf::maps::bloom_filter::BloomFilter::contains(&mut self, value: &T) -> core::result::Result<(), i64> pub fn aya_ebpf::maps::bloom_filter::BloomFilter::insert(&mut self, value: &T, flags: u64) -> core::result::Result<(), i64> @@ -139,7 +139,7 @@ pub fn aya_ebpf::maps::bloom_filter::BloomFilter::borrow_mut(&mut self) -> &m impl core::convert::From for aya_ebpf::maps::bloom_filter::BloomFilter pub fn aya_ebpf::maps::bloom_filter::BloomFilter::from(t: T) -> T pub mod aya_ebpf::maps::hash_map -pub struct aya_ebpf::maps::hash_map::HashMap +#[repr(transparent)] pub struct aya_ebpf::maps::hash_map::HashMap impl aya_ebpf::maps::hash_map::HashMap pub unsafe fn aya_ebpf::maps::hash_map::HashMap::get(&self, key: &K) -> core::option::Option<&V> pub fn aya_ebpf::maps::hash_map::HashMap::get_ptr(&self, key: &K) -> core::option::Option<*const V> @@ -170,7 +170,7 @@ impl core::borrow::BorrowMut for aya_ebpf::maps::hash_map::HashMap w pub fn aya_ebpf::maps::hash_map::HashMap::borrow_mut(&mut self) -> &mut T impl core::convert::From for aya_ebpf::maps::hash_map::HashMap pub fn aya_ebpf::maps::hash_map::HashMap::from(t: T) -> T -pub struct aya_ebpf::maps::hash_map::LruHashMap +#[repr(transparent)] pub struct aya_ebpf::maps::hash_map::LruHashMap impl aya_ebpf::maps::hash_map::LruHashMap pub unsafe fn aya_ebpf::maps::hash_map::LruHashMap::get(&self, key: &K) -> core::option::Option<&V> pub fn aya_ebpf::maps::hash_map::LruHashMap::get_ptr(&self, key: &K) -> core::option::Option<*const V> @@ -201,7 +201,7 @@ impl core::borrow::BorrowMut for aya_ebpf::maps::hash_map::LruHashMap::borrow_mut(&mut self) -> &mut T impl core::convert::From for aya_ebpf::maps::hash_map::LruHashMap pub fn aya_ebpf::maps::hash_map::LruHashMap::from(t: T) -> T -pub struct aya_ebpf::maps::hash_map::LruPerCpuHashMap +#[repr(transparent)] pub struct aya_ebpf::maps::hash_map::LruPerCpuHashMap impl aya_ebpf::maps::hash_map::LruPerCpuHashMap pub unsafe fn aya_ebpf::maps::hash_map::LruPerCpuHashMap::get(&self, key: &K) -> core::option::Option<&V> pub fn aya_ebpf::maps::hash_map::LruPerCpuHashMap::get_ptr(&self, key: &K) -> core::option::Option<*const V> @@ -232,7 +232,7 @@ impl core::borrow::BorrowMut for aya_ebpf::maps::hash_map::LruPerCpuHashMa pub fn aya_ebpf::maps::hash_map::LruPerCpuHashMap::borrow_mut(&mut self) -> &mut T impl core::convert::From for aya_ebpf::maps::hash_map::LruPerCpuHashMap pub fn aya_ebpf::maps::hash_map::LruPerCpuHashMap::from(t: T) -> T -pub struct aya_ebpf::maps::hash_map::PerCpuHashMap +#[repr(transparent)] pub struct aya_ebpf::maps::hash_map::PerCpuHashMap impl aya_ebpf::maps::hash_map::PerCpuHashMap pub unsafe fn aya_ebpf::maps::hash_map::PerCpuHashMap::get(&self, key: &K) -> core::option::Option<&V> pub fn aya_ebpf::maps::hash_map::PerCpuHashMap::get_ptr(&self, key: &K) -> core::option::Option<*const V> @@ -291,7 +291,7 @@ impl core::borrow::BorrowMut for aya_ebpf::maps::lpm_trie::Key where T: pub fn aya_ebpf::maps::lpm_trie::Key::borrow_mut(&mut self) -> &mut T impl core::convert::From for aya_ebpf::maps::lpm_trie::Key pub fn aya_ebpf::maps::lpm_trie::Key::from(t: T) -> T -pub struct aya_ebpf::maps::lpm_trie::LpmTrie +#[repr(transparent)] pub struct aya_ebpf::maps::lpm_trie::LpmTrie impl aya_ebpf::maps::lpm_trie::LpmTrie pub fn aya_ebpf::maps::lpm_trie::LpmTrie::get(&self, key: &aya_ebpf::maps::lpm_trie::Key) -> core::option::Option<&V> pub fn aya_ebpf::maps::lpm_trie::LpmTrie::insert(&self, key: &aya_ebpf::maps::lpm_trie::Key, value: &V, flags: u64) -> core::result::Result<(), aya_ebpf_cty::od::c_long> @@ -321,7 +321,7 @@ pub fn aya_ebpf::maps::lpm_trie::LpmTrie::borrow_mut(&mut self) -> &mut T impl core::convert::From for aya_ebpf::maps::lpm_trie::LpmTrie pub fn aya_ebpf::maps::lpm_trie::LpmTrie::from(t: T) -> T pub mod aya_ebpf::maps::per_cpu_array -pub struct aya_ebpf::maps::per_cpu_array::PerCpuArray +#[repr(transparent)] pub struct aya_ebpf::maps::per_cpu_array::PerCpuArray impl aya_ebpf::maps::per_cpu_array::PerCpuArray pub fn aya_ebpf::maps::per_cpu_array::PerCpuArray::get(&self, index: u32) -> core::option::Option<&T> pub fn aya_ebpf::maps::per_cpu_array::PerCpuArray::get_ptr(&self, index: u32) -> core::option::Option<*const T> @@ -351,7 +351,7 @@ pub fn aya_ebpf::maps::per_cpu_array::PerCpuArray::borrow_mut(&mut self) -> & impl core::convert::From for aya_ebpf::maps::per_cpu_array::PerCpuArray pub fn aya_ebpf::maps::per_cpu_array::PerCpuArray::from(t: T) -> T pub mod aya_ebpf::maps::perf -pub struct aya_ebpf::maps::perf::PerfEventArray +#[repr(transparent)] pub struct aya_ebpf::maps::perf::PerfEventArray impl aya_ebpf::maps::PerfEventArray pub const fn aya_ebpf::maps::PerfEventArray::new(flags: u32) -> aya_ebpf::maps::PerfEventArray pub fn aya_ebpf::maps::PerfEventArray::output(&self, ctx: &C, data: &T, flags: u32) @@ -379,7 +379,7 @@ impl core::borrow::BorrowMut for aya_ebpf::maps::PerfEventArray where T pub fn aya_ebpf::maps::PerfEventArray::borrow_mut(&mut self) -> &mut T impl core::convert::From for aya_ebpf::maps::PerfEventArray pub fn aya_ebpf::maps::PerfEventArray::from(t: T) -> T -pub struct aya_ebpf::maps::perf::PerfEventByteArray +#[repr(transparent)] pub struct aya_ebpf::maps::perf::PerfEventByteArray impl aya_ebpf::maps::PerfEventByteArray pub const fn aya_ebpf::maps::PerfEventByteArray::new(flags: u32) -> aya_ebpf::maps::PerfEventByteArray pub fn aya_ebpf::maps::PerfEventByteArray::output(&self, ctx: &C, data: &[u8], flags: u32) @@ -408,7 +408,7 @@ pub fn aya_ebpf::maps::PerfEventByteArray::borrow_mut(&mut self) -> &mut T impl core::convert::From for aya_ebpf::maps::PerfEventByteArray pub fn aya_ebpf::maps::PerfEventByteArray::from(t: T) -> T pub mod aya_ebpf::maps::program_array -pub struct aya_ebpf::maps::program_array::ProgramArray +#[repr(transparent)] pub struct aya_ebpf::maps::program_array::ProgramArray impl aya_ebpf::maps::program_array::ProgramArray pub const fn aya_ebpf::maps::program_array::ProgramArray::pinned(max_entries: u32, flags: u32) -> aya_ebpf::maps::program_array::ProgramArray pub unsafe fn aya_ebpf::maps::program_array::ProgramArray::tail_call(&self, ctx: &C, index: u32) -> core::result::Result @@ -436,7 +436,7 @@ pub fn aya_ebpf::maps::program_array::ProgramArray::borrow_mut(&mut self) -> &mu impl core::convert::From for aya_ebpf::maps::program_array::ProgramArray pub fn aya_ebpf::maps::program_array::ProgramArray::from(t: T) -> T pub mod aya_ebpf::maps::queue -pub struct aya_ebpf::maps::queue::Queue +#[repr(transparent)] pub struct aya_ebpf::maps::queue::Queue impl aya_ebpf::maps::queue::Queue pub const fn aya_ebpf::maps::queue::Queue::pinned(max_entries: u32, flags: u32) -> aya_ebpf::maps::queue::Queue pub fn aya_ebpf::maps::queue::Queue::pop(&self) -> core::option::Option @@ -465,12 +465,12 @@ pub fn aya_ebpf::maps::queue::Queue::borrow_mut(&mut self) -> &mut T impl core::convert::From for aya_ebpf::maps::queue::Queue pub fn aya_ebpf::maps::queue::Queue::from(t: T) -> T pub mod aya_ebpf::maps::ring_buf -pub struct aya_ebpf::maps::ring_buf::RingBuf +#[repr(transparent)] pub struct aya_ebpf::maps::ring_buf::RingBuf impl aya_ebpf::maps::ring_buf::RingBuf pub fn aya_ebpf::maps::ring_buf::RingBuf::output(&self, data: &T, flags: u64) -> core::result::Result<(), i64> pub const fn aya_ebpf::maps::ring_buf::RingBuf::pinned(byte_size: u32, flags: u32) -> Self pub fn aya_ebpf::maps::ring_buf::RingBuf::query(&self, flags: u64) -> u64 -pub fn aya_ebpf::maps::ring_buf::RingBuf::reserve(&self, flags: u64) -> core::option::Option> where aya_ebpf::maps::ring_buf::const_assert::Assert<{ _ }>: aya_ebpf::maps::ring_buf::const_assert::IsTrue +pub fn aya_ebpf::maps::ring_buf::RingBuf::reserve(&self, flags: u64) -> core::option::Option> pub const fn aya_ebpf::maps::ring_buf::RingBuf::with_byte_size(byte_size: u32, flags: u32) -> Self impl core::marker::Sync for aya_ebpf::maps::ring_buf::RingBuf impl !core::marker::Freeze for aya_ebpf::maps::ring_buf::RingBuf @@ -528,7 +528,7 @@ pub fn aya_ebpf::maps::ring_buf::RingBufEntry::borrow_mut(&mut self) -> &mut impl core::convert::From for aya_ebpf::maps::ring_buf::RingBufEntry pub fn aya_ebpf::maps::ring_buf::RingBufEntry::from(t: T) -> T pub mod aya_ebpf::maps::sock_hash -pub struct aya_ebpf::maps::sock_hash::SockHash +#[repr(transparent)] pub struct aya_ebpf::maps::sock_hash::SockHash impl aya_ebpf::maps::sock_hash::SockHash pub const fn aya_ebpf::maps::sock_hash::SockHash::pinned(max_entries: u32, flags: u32) -> aya_ebpf::maps::sock_hash::SockHash pub fn aya_ebpf::maps::sock_hash::SockHash::redirect_msg(&self, ctx: &aya_ebpf::programs::sk_msg::SkMsgContext, key: &mut K, flags: u64) -> i64 @@ -559,7 +559,7 @@ pub fn aya_ebpf::maps::sock_hash::SockHash::borrow_mut(&mut self) -> &mut T impl core::convert::From for aya_ebpf::maps::sock_hash::SockHash pub fn aya_ebpf::maps::sock_hash::SockHash::from(t: T) -> T pub mod aya_ebpf::maps::sock_map -pub struct aya_ebpf::maps::sock_map::SockMap +#[repr(transparent)] pub struct aya_ebpf::maps::sock_map::SockMap impl aya_ebpf::maps::sock_map::SockMap pub const fn aya_ebpf::maps::sock_map::SockMap::pinned(max_entries: u32, flags: u32) -> aya_ebpf::maps::sock_map::SockMap pub unsafe fn aya_ebpf::maps::sock_map::SockMap::redirect_msg(&self, ctx: &aya_ebpf::programs::sk_msg::SkMsgContext, index: u32, flags: u64) -> i64 @@ -590,7 +590,7 @@ pub fn aya_ebpf::maps::sock_map::SockMap::borrow_mut(&mut self) -> &mut T impl core::convert::From for aya_ebpf::maps::sock_map::SockMap pub fn aya_ebpf::maps::sock_map::SockMap::from(t: T) -> T pub mod aya_ebpf::maps::stack -pub struct aya_ebpf::maps::stack::Stack +#[repr(transparent)] pub struct aya_ebpf::maps::stack::Stack impl aya_ebpf::maps::stack::Stack pub const fn aya_ebpf::maps::stack::Stack::pinned(max_entries: u32, flags: u32) -> aya_ebpf::maps::stack::Stack pub fn aya_ebpf::maps::stack::Stack::pop(&mut self) -> core::option::Option @@ -619,7 +619,7 @@ pub fn aya_ebpf::maps::stack::Stack::borrow_mut(&mut self) -> &mut T impl core::convert::From for aya_ebpf::maps::stack::Stack pub fn aya_ebpf::maps::stack::Stack::from(t: T) -> T pub mod aya_ebpf::maps::stack_trace -pub struct aya_ebpf::maps::stack_trace::StackTrace +#[repr(transparent)] pub struct aya_ebpf::maps::stack_trace::StackTrace impl aya_ebpf::maps::stack_trace::StackTrace pub unsafe fn aya_ebpf::maps::stack_trace::StackTrace::get_stackid(&self, ctx: &C, flags: u64) -> core::result::Result pub const fn aya_ebpf::maps::stack_trace::StackTrace::pinned(max_entries: u32, flags: u32) -> aya_ebpf::maps::stack_trace::StackTrace @@ -647,7 +647,7 @@ pub fn aya_ebpf::maps::stack_trace::StackTrace::borrow_mut(&mut self) -> &mut T impl core::convert::From for aya_ebpf::maps::stack_trace::StackTrace pub fn aya_ebpf::maps::stack_trace::StackTrace::from(t: T) -> T pub mod aya_ebpf::maps::xdp -pub struct aya_ebpf::maps::xdp::CpuMap +#[repr(transparent)] pub struct aya_ebpf::maps::xdp::CpuMap impl aya_ebpf::maps::CpuMap pub const fn aya_ebpf::maps::CpuMap::pinned(max_entries: u32, flags: u32) -> aya_ebpf::maps::CpuMap pub fn aya_ebpf::maps::CpuMap::redirect(&self, index: u32, flags: u64) -> core::result::Result @@ -674,7 +674,7 @@ impl core::borrow::BorrowMut for aya_ebpf::maps::CpuMap where T: ?core::ma pub fn aya_ebpf::maps::CpuMap::borrow_mut(&mut self) -> &mut T impl core::convert::From for aya_ebpf::maps::CpuMap pub fn aya_ebpf::maps::CpuMap::from(t: T) -> T -pub struct aya_ebpf::maps::xdp::DevMap +#[repr(transparent)] pub struct aya_ebpf::maps::xdp::DevMap impl aya_ebpf::maps::DevMap pub fn aya_ebpf::maps::DevMap::get(&self, index: u32) -> core::option::Option pub const fn aya_ebpf::maps::DevMap::pinned(max_entries: u32, flags: u32) -> aya_ebpf::maps::DevMap @@ -702,7 +702,7 @@ impl core::borrow::BorrowMut for aya_ebpf::maps::DevMap where T: ?core::ma pub fn aya_ebpf::maps::DevMap::borrow_mut(&mut self) -> &mut T impl core::convert::From for aya_ebpf::maps::DevMap pub fn aya_ebpf::maps::DevMap::from(t: T) -> T -pub struct aya_ebpf::maps::xdp::DevMapHash +#[repr(transparent)] pub struct aya_ebpf::maps::xdp::DevMapHash impl aya_ebpf::maps::DevMapHash pub fn aya_ebpf::maps::DevMapHash::get(&self, key: u32) -> core::option::Option pub const fn aya_ebpf::maps::DevMapHash::pinned(max_entries: u32, flags: u32) -> aya_ebpf::maps::DevMapHash @@ -730,7 +730,7 @@ impl core::borrow::BorrowMut for aya_ebpf::maps::DevMapHash where T: ?core pub fn aya_ebpf::maps::DevMapHash::borrow_mut(&mut self) -> &mut T impl core::convert::From for aya_ebpf::maps::DevMapHash pub fn aya_ebpf::maps::DevMapHash::from(t: T) -> T -pub struct aya_ebpf::maps::xdp::XskMap +#[repr(transparent)] pub struct aya_ebpf::maps::xdp::XskMap impl aya_ebpf::maps::XskMap pub fn aya_ebpf::maps::XskMap::get(&self, index: u32) -> core::option::Option pub const fn aya_ebpf::maps::XskMap::pinned(max_entries: u32, flags: u32) -> aya_ebpf::maps::XskMap @@ -758,7 +758,7 @@ impl core::borrow::BorrowMut for aya_ebpf::maps::XskMap where T: ?core::ma pub fn aya_ebpf::maps::XskMap::borrow_mut(&mut self) -> &mut T impl core::convert::From for aya_ebpf::maps::XskMap pub fn aya_ebpf::maps::XskMap::from(t: T) -> T -pub struct aya_ebpf::maps::Array +#[repr(transparent)] pub struct aya_ebpf::maps::Array impl aya_ebpf::maps::array::Array pub fn aya_ebpf::maps::array::Array::get(&self, index: u32) -> core::option::Option<&T> pub fn aya_ebpf::maps::array::Array::get_ptr(&self, index: u32) -> core::option::Option<*const T> @@ -788,7 +788,7 @@ impl core::borrow::BorrowMut for aya_ebpf::maps::array::Array where T: pub fn aya_ebpf::maps::array::Array::borrow_mut(&mut self) -> &mut T impl core::convert::From for aya_ebpf::maps::array::Array pub fn aya_ebpf::maps::array::Array::from(t: T) -> T -pub struct aya_ebpf::maps::BloomFilter +#[repr(transparent)] pub struct aya_ebpf::maps::BloomFilter impl aya_ebpf::maps::bloom_filter::BloomFilter pub fn aya_ebpf::maps::bloom_filter::BloomFilter::contains(&mut self, value: &T) -> core::result::Result<(), i64> pub fn aya_ebpf::maps::bloom_filter::BloomFilter::insert(&mut self, value: &T, flags: u64) -> core::result::Result<(), i64> @@ -816,7 +816,7 @@ impl core::borrow::BorrowMut for aya_ebpf::maps::bloom_filter::BloomFilter pub fn aya_ebpf::maps::bloom_filter::BloomFilter::borrow_mut(&mut self) -> &mut T impl core::convert::From for aya_ebpf::maps::bloom_filter::BloomFilter pub fn aya_ebpf::maps::bloom_filter::BloomFilter::from(t: T) -> T -pub struct aya_ebpf::maps::CpuMap +#[repr(transparent)] pub struct aya_ebpf::maps::CpuMap impl aya_ebpf::maps::CpuMap pub const fn aya_ebpf::maps::CpuMap::pinned(max_entries: u32, flags: u32) -> aya_ebpf::maps::CpuMap pub fn aya_ebpf::maps::CpuMap::redirect(&self, index: u32, flags: u64) -> core::result::Result @@ -843,7 +843,7 @@ impl core::borrow::BorrowMut for aya_ebpf::maps::CpuMap where T: ?core::ma pub fn aya_ebpf::maps::CpuMap::borrow_mut(&mut self) -> &mut T impl core::convert::From for aya_ebpf::maps::CpuMap pub fn aya_ebpf::maps::CpuMap::from(t: T) -> T -pub struct aya_ebpf::maps::DevMap +#[repr(transparent)] pub struct aya_ebpf::maps::DevMap impl aya_ebpf::maps::DevMap pub fn aya_ebpf::maps::DevMap::get(&self, index: u32) -> core::option::Option pub const fn aya_ebpf::maps::DevMap::pinned(max_entries: u32, flags: u32) -> aya_ebpf::maps::DevMap @@ -871,7 +871,7 @@ impl core::borrow::BorrowMut for aya_ebpf::maps::DevMap where T: ?core::ma pub fn aya_ebpf::maps::DevMap::borrow_mut(&mut self) -> &mut T impl core::convert::From for aya_ebpf::maps::DevMap pub fn aya_ebpf::maps::DevMap::from(t: T) -> T -pub struct aya_ebpf::maps::DevMapHash +#[repr(transparent)] pub struct aya_ebpf::maps::DevMapHash impl aya_ebpf::maps::DevMapHash pub fn aya_ebpf::maps::DevMapHash::get(&self, key: u32) -> core::option::Option pub const fn aya_ebpf::maps::DevMapHash::pinned(max_entries: u32, flags: u32) -> aya_ebpf::maps::DevMapHash @@ -899,7 +899,7 @@ impl core::borrow::BorrowMut for aya_ebpf::maps::DevMapHash where T: ?core pub fn aya_ebpf::maps::DevMapHash::borrow_mut(&mut self) -> &mut T impl core::convert::From for aya_ebpf::maps::DevMapHash pub fn aya_ebpf::maps::DevMapHash::from(t: T) -> T -pub struct aya_ebpf::maps::HashMap +#[repr(transparent)] pub struct aya_ebpf::maps::HashMap impl aya_ebpf::maps::hash_map::HashMap pub unsafe fn aya_ebpf::maps::hash_map::HashMap::get(&self, key: &K) -> core::option::Option<&V> pub fn aya_ebpf::maps::hash_map::HashMap::get_ptr(&self, key: &K) -> core::option::Option<*const V> @@ -930,7 +930,7 @@ impl core::borrow::BorrowMut for aya_ebpf::maps::hash_map::HashMap w pub fn aya_ebpf::maps::hash_map::HashMap::borrow_mut(&mut self) -> &mut T impl core::convert::From for aya_ebpf::maps::hash_map::HashMap pub fn aya_ebpf::maps::hash_map::HashMap::from(t: T) -> T -pub struct aya_ebpf::maps::LpmTrie +#[repr(transparent)] pub struct aya_ebpf::maps::LpmTrie impl aya_ebpf::maps::lpm_trie::LpmTrie pub fn aya_ebpf::maps::lpm_trie::LpmTrie::get(&self, key: &aya_ebpf::maps::lpm_trie::Key) -> core::option::Option<&V> pub fn aya_ebpf::maps::lpm_trie::LpmTrie::insert(&self, key: &aya_ebpf::maps::lpm_trie::Key, value: &V, flags: u64) -> core::result::Result<(), aya_ebpf_cty::od::c_long> @@ -959,7 +959,7 @@ impl core::borrow::BorrowMut for aya_ebpf::maps::lpm_trie::LpmTrie w pub fn aya_ebpf::maps::lpm_trie::LpmTrie::borrow_mut(&mut self) -> &mut T impl core::convert::From for aya_ebpf::maps::lpm_trie::LpmTrie pub fn aya_ebpf::maps::lpm_trie::LpmTrie::from(t: T) -> T -pub struct aya_ebpf::maps::LruHashMap +#[repr(transparent)] pub struct aya_ebpf::maps::LruHashMap impl aya_ebpf::maps::hash_map::LruHashMap pub unsafe fn aya_ebpf::maps::hash_map::LruHashMap::get(&self, key: &K) -> core::option::Option<&V> pub fn aya_ebpf::maps::hash_map::LruHashMap::get_ptr(&self, key: &K) -> core::option::Option<*const V> @@ -990,7 +990,7 @@ impl core::borrow::BorrowMut for aya_ebpf::maps::hash_map::LruHashMap::borrow_mut(&mut self) -> &mut T impl core::convert::From for aya_ebpf::maps::hash_map::LruHashMap pub fn aya_ebpf::maps::hash_map::LruHashMap::from(t: T) -> T -pub struct aya_ebpf::maps::LruPerCpuHashMap +#[repr(transparent)] pub struct aya_ebpf::maps::LruPerCpuHashMap impl aya_ebpf::maps::hash_map::LruPerCpuHashMap pub unsafe fn aya_ebpf::maps::hash_map::LruPerCpuHashMap::get(&self, key: &K) -> core::option::Option<&V> pub fn aya_ebpf::maps::hash_map::LruPerCpuHashMap::get_ptr(&self, key: &K) -> core::option::Option<*const V> @@ -1021,7 +1021,7 @@ impl core::borrow::BorrowMut for aya_ebpf::maps::hash_map::LruPerCpuHashMa pub fn aya_ebpf::maps::hash_map::LruPerCpuHashMap::borrow_mut(&mut self) -> &mut T impl core::convert::From for aya_ebpf::maps::hash_map::LruPerCpuHashMap pub fn aya_ebpf::maps::hash_map::LruPerCpuHashMap::from(t: T) -> T -pub struct aya_ebpf::maps::PerCpuArray +#[repr(transparent)] pub struct aya_ebpf::maps::PerCpuArray impl aya_ebpf::maps::per_cpu_array::PerCpuArray pub fn aya_ebpf::maps::per_cpu_array::PerCpuArray::get(&self, index: u32) -> core::option::Option<&T> pub fn aya_ebpf::maps::per_cpu_array::PerCpuArray::get_ptr(&self, index: u32) -> core::option::Option<*const T> @@ -1050,7 +1050,7 @@ impl core::borrow::BorrowMut for aya_ebpf::maps::per_cpu_array::PerCpuArra pub fn aya_ebpf::maps::per_cpu_array::PerCpuArray::borrow_mut(&mut self) -> &mut T impl core::convert::From for aya_ebpf::maps::per_cpu_array::PerCpuArray pub fn aya_ebpf::maps::per_cpu_array::PerCpuArray::from(t: T) -> T -pub struct aya_ebpf::maps::PerCpuHashMap +#[repr(transparent)] pub struct aya_ebpf::maps::PerCpuHashMap impl aya_ebpf::maps::hash_map::PerCpuHashMap pub unsafe fn aya_ebpf::maps::hash_map::PerCpuHashMap::get(&self, key: &K) -> core::option::Option<&V> pub fn aya_ebpf::maps::hash_map::PerCpuHashMap::get_ptr(&self, key: &K) -> core::option::Option<*const V> @@ -1081,7 +1081,7 @@ impl core::borrow::BorrowMut for aya_ebpf::maps::hash_map::PerCpuHashMap::borrow_mut(&mut self) -> &mut T impl core::convert::From for aya_ebpf::maps::hash_map::PerCpuHashMap pub fn aya_ebpf::maps::hash_map::PerCpuHashMap::from(t: T) -> T -pub struct aya_ebpf::maps::PerfEventArray +#[repr(transparent)] pub struct aya_ebpf::maps::PerfEventArray impl aya_ebpf::maps::PerfEventArray pub const fn aya_ebpf::maps::PerfEventArray::new(flags: u32) -> aya_ebpf::maps::PerfEventArray pub fn aya_ebpf::maps::PerfEventArray::output(&self, ctx: &C, data: &T, flags: u32) @@ -1109,7 +1109,7 @@ impl core::borrow::BorrowMut for aya_ebpf::maps::PerfEventArray where T pub fn aya_ebpf::maps::PerfEventArray::borrow_mut(&mut self) -> &mut T impl core::convert::From for aya_ebpf::maps::PerfEventArray pub fn aya_ebpf::maps::PerfEventArray::from(t: T) -> T -pub struct aya_ebpf::maps::PerfEventByteArray +#[repr(transparent)] pub struct aya_ebpf::maps::PerfEventByteArray impl aya_ebpf::maps::PerfEventByteArray pub const fn aya_ebpf::maps::PerfEventByteArray::new(flags: u32) -> aya_ebpf::maps::PerfEventByteArray pub fn aya_ebpf::maps::PerfEventByteArray::output(&self, ctx: &C, data: &[u8], flags: u32) @@ -1137,7 +1137,7 @@ impl core::borrow::BorrowMut for aya_ebpf::maps::PerfEventByteArray where pub fn aya_ebpf::maps::PerfEventByteArray::borrow_mut(&mut self) -> &mut T impl core::convert::From for aya_ebpf::maps::PerfEventByteArray pub fn aya_ebpf::maps::PerfEventByteArray::from(t: T) -> T -pub struct aya_ebpf::maps::ProgramArray +#[repr(transparent)] pub struct aya_ebpf::maps::ProgramArray impl aya_ebpf::maps::program_array::ProgramArray pub const fn aya_ebpf::maps::program_array::ProgramArray::pinned(max_entries: u32, flags: u32) -> aya_ebpf::maps::program_array::ProgramArray pub unsafe fn aya_ebpf::maps::program_array::ProgramArray::tail_call(&self, ctx: &C, index: u32) -> core::result::Result @@ -1164,7 +1164,7 @@ impl core::borrow::BorrowMut for aya_ebpf::maps::program_array::ProgramArr pub fn aya_ebpf::maps::program_array::ProgramArray::borrow_mut(&mut self) -> &mut T impl core::convert::From for aya_ebpf::maps::program_array::ProgramArray pub fn aya_ebpf::maps::program_array::ProgramArray::from(t: T) -> T -pub struct aya_ebpf::maps::Queue +#[repr(transparent)] pub struct aya_ebpf::maps::Queue impl aya_ebpf::maps::queue::Queue pub const fn aya_ebpf::maps::queue::Queue::pinned(max_entries: u32, flags: u32) -> aya_ebpf::maps::queue::Queue pub fn aya_ebpf::maps::queue::Queue::pop(&self) -> core::option::Option @@ -1192,12 +1192,12 @@ impl core::borrow::BorrowMut for aya_ebpf::maps::queue::Queue where T: pub fn aya_ebpf::maps::queue::Queue::borrow_mut(&mut self) -> &mut T impl core::convert::From for aya_ebpf::maps::queue::Queue pub fn aya_ebpf::maps::queue::Queue::from(t: T) -> T -pub struct aya_ebpf::maps::RingBuf +#[repr(transparent)] pub struct aya_ebpf::maps::RingBuf impl aya_ebpf::maps::ring_buf::RingBuf pub fn aya_ebpf::maps::ring_buf::RingBuf::output(&self, data: &T, flags: u64) -> core::result::Result<(), i64> pub const fn aya_ebpf::maps::ring_buf::RingBuf::pinned(byte_size: u32, flags: u32) -> Self pub fn aya_ebpf::maps::ring_buf::RingBuf::query(&self, flags: u64) -> u64 -pub fn aya_ebpf::maps::ring_buf::RingBuf::reserve(&self, flags: u64) -> core::option::Option> where aya_ebpf::maps::ring_buf::const_assert::Assert<{ _ }>: aya_ebpf::maps::ring_buf::const_assert::IsTrue +pub fn aya_ebpf::maps::ring_buf::RingBuf::reserve(&self, flags: u64) -> core::option::Option> pub const fn aya_ebpf::maps::ring_buf::RingBuf::with_byte_size(byte_size: u32, flags: u32) -> Self impl core::marker::Sync for aya_ebpf::maps::ring_buf::RingBuf impl !core::marker::Freeze for aya_ebpf::maps::ring_buf::RingBuf @@ -1221,7 +1221,7 @@ impl core::borrow::BorrowMut for aya_ebpf::maps::ring_buf::RingBuf where T pub fn aya_ebpf::maps::ring_buf::RingBuf::borrow_mut(&mut self) -> &mut T impl core::convert::From for aya_ebpf::maps::ring_buf::RingBuf pub fn aya_ebpf::maps::ring_buf::RingBuf::from(t: T) -> T -pub struct aya_ebpf::maps::SockHash +#[repr(transparent)] pub struct aya_ebpf::maps::SockHash impl aya_ebpf::maps::sock_hash::SockHash pub const fn aya_ebpf::maps::sock_hash::SockHash::pinned(max_entries: u32, flags: u32) -> aya_ebpf::maps::sock_hash::SockHash pub fn aya_ebpf::maps::sock_hash::SockHash::redirect_msg(&self, ctx: &aya_ebpf::programs::sk_msg::SkMsgContext, key: &mut K, flags: u64) -> i64 @@ -1251,7 +1251,7 @@ impl core::borrow::BorrowMut for aya_ebpf::maps::sock_hash::SockHash wh pub fn aya_ebpf::maps::sock_hash::SockHash::borrow_mut(&mut self) -> &mut T impl core::convert::From for aya_ebpf::maps::sock_hash::SockHash pub fn aya_ebpf::maps::sock_hash::SockHash::from(t: T) -> T -pub struct aya_ebpf::maps::SockMap +#[repr(transparent)] pub struct aya_ebpf::maps::SockMap impl aya_ebpf::maps::sock_map::SockMap pub const fn aya_ebpf::maps::sock_map::SockMap::pinned(max_entries: u32, flags: u32) -> aya_ebpf::maps::sock_map::SockMap pub unsafe fn aya_ebpf::maps::sock_map::SockMap::redirect_msg(&self, ctx: &aya_ebpf::programs::sk_msg::SkMsgContext, index: u32, flags: u64) -> i64 @@ -1281,7 +1281,7 @@ impl core::borrow::BorrowMut for aya_ebpf::maps::sock_map::SockMap where T pub fn aya_ebpf::maps::sock_map::SockMap::borrow_mut(&mut self) -> &mut T impl core::convert::From for aya_ebpf::maps::sock_map::SockMap pub fn aya_ebpf::maps::sock_map::SockMap::from(t: T) -> T -pub struct aya_ebpf::maps::Stack +#[repr(transparent)] pub struct aya_ebpf::maps::Stack impl aya_ebpf::maps::stack::Stack pub const fn aya_ebpf::maps::stack::Stack::pinned(max_entries: u32, flags: u32) -> aya_ebpf::maps::stack::Stack pub fn aya_ebpf::maps::stack::Stack::pop(&mut self) -> core::option::Option @@ -1309,7 +1309,7 @@ impl core::borrow::BorrowMut for aya_ebpf::maps::stack::Stack where T: pub fn aya_ebpf::maps::stack::Stack::borrow_mut(&mut self) -> &mut T impl core::convert::From for aya_ebpf::maps::stack::Stack pub fn aya_ebpf::maps::stack::Stack::from(t: T) -> T -pub struct aya_ebpf::maps::StackTrace +#[repr(transparent)] pub struct aya_ebpf::maps::StackTrace impl aya_ebpf::maps::stack_trace::StackTrace pub unsafe fn aya_ebpf::maps::stack_trace::StackTrace::get_stackid(&self, ctx: &C, flags: u64) -> core::result::Result pub const fn aya_ebpf::maps::stack_trace::StackTrace::pinned(max_entries: u32, flags: u32) -> aya_ebpf::maps::stack_trace::StackTrace @@ -1336,7 +1336,7 @@ impl core::borrow::BorrowMut for aya_ebpf::maps::stack_trace::StackTrace w pub fn aya_ebpf::maps::stack_trace::StackTrace::borrow_mut(&mut self) -> &mut T impl core::convert::From for aya_ebpf::maps::stack_trace::StackTrace pub fn aya_ebpf::maps::stack_trace::StackTrace::from(t: T) -> T -pub struct aya_ebpf::maps::XskMap +#[repr(transparent)] pub struct aya_ebpf::maps::XskMap impl aya_ebpf::maps::XskMap pub fn aya_ebpf::maps::XskMap::get(&self, index: u32) -> core::option::Option pub const fn aya_ebpf::maps::XskMap::pinned(max_entries: u32, flags: u32) -> aya_ebpf::maps::XskMap diff --git a/xtask/public-api/aya.txt b/xtask/public-api/aya.txt index 6e1923a1..56dfa3cd 100644 --- a/xtask/public-api/aya.txt +++ b/xtask/public-api/aya.txt @@ -750,7 +750,7 @@ impl core::borrow::BorrowMut for aya::maps::SockMap where T: ?core::mar pub fn aya::maps::SockMap::borrow_mut(&mut self) -> &mut T impl core::convert::From for aya::maps::SockMap pub fn aya::maps::SockMap::from(t: T) -> T -pub struct aya::maps::sock::SockMapFd(_) +#[repr(transparent)] pub struct aya::maps::sock::SockMapFd(_) impl aya::maps::sock::SockMapFd pub fn aya::maps::sock::SockMapFd::try_clone(&self) -> std::io::error::Result impl std::os::fd::owned::AsFd for aya::maps::sock::SockMapFd