Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
marctc committed Jul 15, 2024
1 parent 191d61b commit fd901a9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/internal/ebpf/tracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,11 @@ type ProcessTracer struct {

func (pt *ProcessTracer) AllowPID(pid, ns uint32, svc svc.ID) {
for i := range pt.Programs {
pt.Programs[i].AllowPID(pid, ns, svc, pt.Goffsets.SymTab)
var symTab *gosym.Table
if pt.Goffsets != nil {
symTab = pt.Goffsets.SymTab
}
pt.Programs[i].AllowPID(pid, ns, svc, symTab)
}
}

Expand Down

0 comments on commit fd901a9

Please sign in to comment.