MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / IsDropped

Method IsDropped

pkg/event/event_windows.go:141–149  ·  view source on GitHub ↗

IsDropped determines if the event should be dropped. The event is dropped in under the following circumstances: 1. The event is dealing with state management, and as long as we're not storing them into the capture file, it can be dropped 2. Rundowns events are dropped if they haven't been processed

(capture bool)

Source from the content-addressed store, hash-verified

139// 2. Rundowns events are dropped if they haven't been processed already
140// 3. If the event is generated by Fibratus process, we can safely ignore it
141func (e *Event) IsDropped(capture bool) bool {
142 if e.IsState() && !capture {
143 return true
144 }
145 if e.IsRundown() && e.IsRundownProcessed() {
146 return true
147 }
148 return IsCurrentProcDropped(e.PID)
149}
150
151// IsCurrentProcDropped determines if the event originated from the
152// current process is dropped.

Callers 1

ProcessEventMethod · 0.80

Calls 4

IsStateMethod · 0.95
IsRundownMethod · 0.95
IsRundownProcessedMethod · 0.95
IsCurrentProcDroppedFunction · 0.85

Tested by

no test coverage detected