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)
| 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 |
| 141 | func (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. |
no test coverage detected