MCPcopy
hub / github.com/cilium/ebpf / Stats

Method Stats

prog.go:673–675  ·  view source on GitHub ↗

Stats returns runtime statistics about the Program. Requires BPF statistics collection to be enabled, see [EnableStats]. Requires at least Linux 5.8.

()

Source from the content-addressed store, hash-verified

671//
672// Requires at least Linux 5.8.
673func (p *Program) Stats() (*ProgramStats, error) {
674 return newProgramStatsFromFd(p.fd)
675}
676
677// Handle returns a reference to the program's type information in the kernel.
678//

Callers 2

TestProgramStatsFunction · 0.80
testStatsFunction · 0.80

Calls 1

newProgramStatsFromFdFunction · 0.85

Tested by 2

TestProgramStatsFunction · 0.64
testStatsFunction · 0.64