Skip to content

Commit 8cca3ab

Browse files
gnosekpoiana
authored andcommitted
fix(sinsp): don't look up thread -1 in the table
Synthetic events don't have a real tid but use -1 instead. We exclude the container events but missed the recently introduced user/group events Signed-off-by: Grzegorz Nosek <[email protected]>
1 parent 07584ed commit 8cca3ab

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

userspace/libsinsp/parsers.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,12 @@ bool sinsp_parser::reset(sinsp_evt *evt)
649649
query_os = true;
650650
}
651651

652-
if(etype == PPME_CONTAINER_JSON_E || etype == PPME_CONTAINER_JSON_2_E)
652+
if(etype == PPME_CONTAINER_JSON_E ||
653+
etype == PPME_CONTAINER_JSON_2_E ||
654+
etype == PPME_USER_ADDED_E ||
655+
etype == PPME_USER_DELETED_E ||
656+
etype == PPME_GROUP_ADDED_E ||
657+
etype == PPME_GROUP_DELETED_E)
653658
{
654659
evt->m_tinfo = nullptr;
655660
return true;

0 commit comments

Comments
 (0)