Stats returns runtime statistics about the Program. Requires BPF statistics collection to be enabled, see [EnableStats]. Requires at least Linux 5.8.
()
| 671 | // |
| 672 | // Requires at least Linux 5.8. |
| 673 | func (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 | // |