Skip to content

Commit

Permalink
Merge pull request #165 from kunai-project/re-define-event-ids
Browse files Browse the repository at this point in the history
change: redifine new event ids
  • Loading branch information
qjerome authored Jan 14, 2025
2 parents 351d3a8 + 5dc1e6e commit 71bf040
Showing 1 changed file with 22 additions and 11 deletions.
33 changes: 22 additions & 11 deletions kunai-common/src/bpf_events.rs
Original file line number Diff line number Diff line change
@@ -118,28 +118,39 @@ pub enum Type {
#[str("file_create")]
FileCreate,

// for lost events
#[str("event_loss")]
Loss = 498,
// error event
#[str("error")]
Error = 499,

// specific userland events
// those should never be used in eBPF
#[str("file_scan")]
FileScan = 500,

// Materialize the end of configurable events
#[str("end_configurable")]
EndConfigurable = 1000,
EndConfigurable = 999,

// Following events are not configurable but may
// be filterable

// !!! Events NOT configurable but filterable

// error event
#[str("error")]
Error,

// !!! Events NOT configurable and NOT filterable

// Agent events types are not configurable
// but must have a fixed id

// lost events
#[str("event_loss")]
Loss = 1100,

// Those events are not configurable but should have
// fix event number as these are displayed
// start event
#[str("start")]
Start,

// specific events
// specific events which are never displayed
// do not need a fixed identifier
#[str("task_sched")]
TaskSched,
#[str("correlation")]

0 comments on commit 71bf040

Please sign in to comment.