pub struct BpfProgramInfo {
pub id: u32,
pub prog_type: String,
pub name: String,
pub tag: [u8; 8],
pub insn_count: u32,
pub jited_len: u32,
pub loaded_by_uid: u32,
pub is_suspicious: bool,
}Expand description
Information about a loaded eBPF program extracted from kernel memory.
Fields§
§id: u32Unique program ID (aux->id).
prog_type: StringProgram type (kprobe, tracepoint, xdp, socket_filter, etc.).
name: StringProgram name (aux->name), if set.
tag: [u8; 8]8-byte hash of the bytecode.
insn_count: u32Number of BPF instructions.
jited_len: u32JIT compiled size in bytes.
loaded_by_uid: u32UID that loaded the program.
is_suspicious: boolWhether heuristic analysis flags this program as suspicious.
Trait Implementations§
Source§impl Clone for BpfProgramInfo
impl Clone for BpfProgramInfo
Source§fn clone(&self) -> BpfProgramInfo
fn clone(&self) -> BpfProgramInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BpfProgramInfo
impl Debug for BpfProgramInfo
Auto Trait Implementations§
impl Freeze for BpfProgramInfo
impl RefUnwindSafe for BpfProgramInfo
impl Send for BpfProgramInfo
impl Sync for BpfProgramInfo
impl Unpin for BpfProgramInfo
impl UnsafeUnpin for BpfProgramInfo
impl UnwindSafe for BpfProgramInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more