Skip to content

Commit

Permalink
fix missing threads in system mode
Browse files Browse the repository at this point in the history
  • Loading branch information
yanivagman committed Apr 6, 2020
1 parent 35202dc commit 541ae53
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions tracee/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,9 @@ func init() {
// the boolean value is used to indicate if the event were also requested to be traced by the user
var essentialEvents = map[int32]bool{
335: false, // do_exit
56: false, // clone
57: false, // fork
58: false, // vfork
59: false, // execve
322: false, // execveat
}
Expand Down
3 changes: 2 additions & 1 deletion tracee/tracer.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ class SupportedAF(object):

# We always need kprobes for execve[at] so that we capture the new PID namespace,
# and do_exit so we clean up
essential_syscalls = ["execve", "execveat"]
# In system mode, we also need fork syscall so we can trace new threads
essential_syscalls = ["execve", "execveat", "fork", "vfork", "clone"]
essential_sysevents = ["do_exit"]

# event_id numbers should match event_id enum in ebpf file code
Expand Down

0 comments on commit 541ae53

Please sign in to comment.