Skip to content

Commit

Permalink
fix(userspace/libsinsp): do not suppress zero ptids
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Dellaluce <[email protected]>
  • Loading branch information
jasondellaluce authored and poiana committed Dec 20, 2023
1 parent e2dbeb3 commit 12732fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions userspace/libsinsp/sinsp_suppress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ int32_t libsinsp::sinsp_suppress::process_event(scap_evt *e, uint16_t devid)

bool libsinsp::sinsp_suppress::is_suppressed_tid(uint64_t tid, uint16_t devid) const
{
if (tid == 0)
{
return false;
}
if(devid != UINT16_MAX && cache_slot(devid) == tid)
{
return true;
Expand Down

0 comments on commit 12732fe

Please sign in to comment.