Skip to content

Commit

Permalink
document that Record.Remaining is -1 for overwritable buffers
Browse files Browse the repository at this point in the history
Signed-off-by: Lorenz Bauer <lmb@isovalent.com>
  • Loading branch information
lmb committed Oct 20, 2023
1 parent 8ef1ee2 commit 220e1e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions perf/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ type Record struct {
LostSamples uint64

// The minimum number of bytes remaining in the per-CPU buffer after this Record has been read.
// Negative for overwritable buffers.
Remaining int
}

Expand Down

0 comments on commit 220e1e7

Please sign in to comment.