|
|
@ -55,7 +55,7 @@ pub use array::{Array, PerCpuArray, ProgramArray};
|
|
|
|
pub use hash_map::{HashMap, PerCpuHashMap};
|
|
|
|
pub use hash_map::{HashMap, PerCpuHashMap};
|
|
|
|
pub use map_lock::*;
|
|
|
|
pub use map_lock::*;
|
|
|
|
pub use perf::PerfEventArray;
|
|
|
|
pub use perf::PerfEventArray;
|
|
|
|
pub use sock::SockMap;
|
|
|
|
pub use sock::{SockHash, SockMap};
|
|
|
|
pub use stack_trace::StackTraceMap;
|
|
|
|
pub use stack_trace::StackTraceMap;
|
|
|
|
|
|
|
|
|
|
|
|
#[derive(Error, Debug)]
|
|
|
|
#[derive(Error, Debug)]
|
|
|
@ -300,10 +300,6 @@ pub(crate) struct PerCpuKernelMem {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
impl PerCpuKernelMem {
|
|
|
|
impl PerCpuKernelMem {
|
|
|
|
pub(crate) fn as_ptr(&self) -> *const u8 {
|
|
|
|
|
|
|
|
self.bytes.as_ptr()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pub(crate) fn as_mut_ptr(&mut self) -> *mut u8 {
|
|
|
|
pub(crate) fn as_mut_ptr(&mut self) -> *mut u8 {
|
|
|
|
self.bytes.as_mut_ptr()
|
|
|
|
self.bytes.as_mut_ptr()
|
|
|
|
}
|
|
|
|
}
|
|
|
|