Add Debug derive to eBPF structs
This commit is contained in:
@@ -22,6 +22,7 @@ pub struct EbpfDetector {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct EbpfProgramManager {
|
pub struct EbpfProgramManager {
|
||||||
loaded_programs: HashMap<String, LoadedProgram>,
|
loaded_programs: HashMap<String, LoadedProgram>,
|
||||||
program_definitions: Vec<EbpfProgramDefinition>,
|
program_definitions: Vec<EbpfProgramDefinition>,
|
||||||
@@ -64,6 +65,7 @@ pub struct EbpfProgramDefinition {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct EbpfEventProcessor {
|
pub struct EbpfEventProcessor {
|
||||||
event_handlers: HashMap<EventType, Box<dyn EventHandler>>,
|
event_handlers: HashMap<EventType, Box<dyn EventHandler>>,
|
||||||
detection_rules: Vec<EbpfDetectionRule>,
|
detection_rules: Vec<EbpfDetectionRule>,
|
||||||
@@ -429,6 +431,7 @@ pub enum IndicatorType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct EbpfFilterManager {
|
pub struct EbpfFilterManager {
|
||||||
active_filters: HashMap<String, EbpfFilter>,
|
active_filters: HashMap<String, EbpfFilter>,
|
||||||
filter_statistics: HashMap<String, FilterStats>,
|
filter_statistics: HashMap<String, FilterStats>,
|
||||||
@@ -481,6 +484,7 @@ pub struct FilterStats {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct EbpfRingBuffer {
|
pub struct EbpfRingBuffer {
|
||||||
buffer: Vec<EbpfEvent>,
|
buffer: Vec<EbpfEvent>,
|
||||||
read_index: usize,
|
read_index: usize,
|
||||||
|
|||||||
Reference in New Issue
Block a user