Skip to content

Commit

Permalink
events: probes are event dependencies already
Browse files Browse the repository at this point in the history
... make it so, then.

related: #3170
  • Loading branch information
rafaeldtinoco committed Jun 12, 2023
1 parent 7d588e9 commit ef78144
Show file tree
Hide file tree
Showing 2 changed files with 379 additions and 280 deletions.
2 changes: 1 addition & 1 deletion pkg/ebpf/tracee.go
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,7 @@ func (t *Tracee) attachProbes() error {
}

// attach probes for selected events
for _, dep := range event.Probes {
for _, dep := range event.Dependencies.Probes {
err = t.probes.Attach(dep.Handle, t.cgroups)
if err != nil && dep.Required {
return errfmt.Errorf("failed to attach required probe: %v", err)
Expand Down
Loading

0 comments on commit ef78144

Please sign in to comment.