Skip to content

Commit

Permalink
tracee-ebpf: fix events sent in parallel to raw_sys_exit event
Browse files Browse the repository at this point in the history
  • Loading branch information
yanivagman committed Nov 15, 2021
1 parent 71f8ff2 commit f4788a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tracee-ebpf/tracee/tracee.bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -2064,6 +2064,8 @@ int tracepoint__raw_syscalls__sys_exit(struct bpf_raw_tracepoint_args *ctx)
// We can't use saved args after execve syscall, as pointers are invalid
// To avoid showing execve event both on entry and exit,
// we only output failed execs
data.buf_off = sizeof(context_t);
data.context.argnum = 0;
save_args_to_submit_buf(&data, types, &sys->args);
data.context.ts = sys->ts;
events_perf_submit(&data, id, ret);
Expand Down

0 comments on commit f4788a5

Please sign in to comment.