Documentation ¶
Index ¶
Constants ¶
View Source
const ( CPUCycleLabel = config.CPUCycle CPURefCycleLabel = config.CPURefCycle CPUInstructionLabel = config.CPUInstruction CacheMissLabel = config.CacheMiss // IRQ vector to IRQ number IRQNetTX = 2 IRQNetRX = 3 IRQBlock = 4 )
Variables ¶
View Source
var ( Counters = map[string]perfCounter{} HardwareCountersEnabled = true )
Functions ¶
func DetachBPFModules ¶
func DetachBPFModules(bpfModules *BpfModuleTables)
func GetEnabledBPFCounters ¶
func GetEnabledBPFCounters() []string
func GetEnabledHWCounters ¶
func GetEnabledHWCounters() []string
Types ¶
type BpfModuleTables ¶
type BpfModuleTables struct { Module ModuleStub Table *Table CPUFreqTable *Table }
func AttachBPFAssets ¶
func AttachBPFAssets() (*BpfModuleTables, error)
type ModuleStub ¶
type ModuleStub struct{}
type Table ¶
type Table struct { }
Table references a BPF table.
func (*Table) Iter ¶
func (table *Table) Iter() *TableIterator
Iter returns an iterator to list all table entries available as raw bytes.
type TableIterator ¶
type TableIterator struct {
// contains filtered or unexported fields
}
TableIterator contains the current position for iteration over a *bcc.Table and provides methods for iteration.
func (*TableIterator) Key ¶
func (it *TableIterator) Key() []byte
Key returns the current key value of the iterator, if the most recent call to Next returned true. The slice is valid only until the next call to Next.
func (*TableIterator) Leaf ¶
func (it *TableIterator) Leaf() []byte
Leaf returns the current leaf value of the iterator, if the most recent call to Next returned true. The slice is valid only until the next call to Next.
func (*TableIterator) Next ¶
func (it *TableIterator) Next() bool
Next looks up the next element and return true if one is available.
Click to show internal directories.
Click to hide internal directories.