Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SupportsStatsSyscall = supportsBpfEnableStats()()
Functions ¶
func KprobeDetach ¶
func NewWrappedFD ¶
func NewWrappedFD(raw int) *wrappedFD
Types ¶
type BpfProgramStatsEvent ¶
type EBPFBenchmark ¶
type EBPFBenchmark struct {
// contains filtered or unexported fields
}
func NewEBPFBenchmark ¶
func NewEBPFBenchmark(b *testing.B) *EBPFBenchmark
func NewEBPFBenchmarkWithBpfStatsEnabledFile ¶
func NewEBPFBenchmarkWithBpfStatsEnabledFile(b *testing.B, bpfStatsEnabledFile string) *EBPFBenchmark
create new ebpf benchmark with sysctl proc file
func (*EBPFBenchmark) Close ¶
func (e *EBPFBenchmark) Close()
func (*EBPFBenchmark) ProfileProgram ¶
func (e *EBPFBenchmark) ProfileProgram(fd int, name string)
func (*EBPFBenchmark) Run ¶
func (e *EBPFBenchmark) Run(fn func(*testing.B))
func (*EBPFBenchmark) Start ¶
func (e *EBPFBenchmark) Start(ctx context.Context) (<-chan *BpfProgramStatsEvent, <-chan error, error)
Click to show internal directories.
Click to hide internal directories.