Skip to content

Commit 220e1e7

Browse files
committed
document that Record.Remaining is -1 for overwritable buffers
Signed-off-by: Lorenz Bauer <lmb@isovalent.com>
1 parent 8ef1ee2 commit 220e1e7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

perf/reader.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ type Record struct {
5050
LostSamples uint64
5151

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

0 commit comments

Comments
 (0)