Skip to content

Commit

Permalink
Merge branch 'fix-npe' of https://github.com/Ghostbaby/ebpf into fix-npe
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghostbaby committed Jul 8, 2024
2 parents ed3fa7f + bd337dd commit a1e5309
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions perf/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,11 @@ func (pr *Reader) ReadInto(rec *Record) error {
// Waking up userspace is expensive, make the most of it by checking
// all rings.
for _, ring := range pr.rings {
// Skip rings that are offline.
if ring == nil {
continue
}

ring.loadHead()
pr.epollRings = append(pr.epollRings, ring)
}
Expand Down

0 comments on commit a1e5309

Please sign in to comment.