Documentation
¶
Index ¶
- Constants
- func NewFutexSnoopSession(name string, cfg *config.FUTEXSNOOP, buf chan *model.SpyEvent) core.BpfSpyer
- func NewOffCpuBpfSession(name string, cfg *config.OFFCPU, buf chan *model.SpyEvent) core.BpfSpyer
- func NewOnCpuBpfSession(name string, cfg *config.ONCPU, buf chan *model.SpyEvent) core.BpfSpyer
- func NewSyscallSession(name string, cfg *config.SYSCALL, buf chan *model.SpyEvent) core.BpfSpyer
- func SyscallNameToId(name string) uint32
- type BpfSession
- type FutexSnoopArgs
- type FutexSnoopSession
- func (b *FutexSnoopSession) ConsumeEvent() error
- func (b *FutexSnoopSession) HandleEvent(data []byte)
- func (b *FutexSnoopSession) Name() string
- func (b *FutexSnoopSession) ReadEvent() error
- func (b *FutexSnoopSession) ResolveStack(syms *bytes.Buffer, stackId int32, pid uint32, userspace bool) error
- func (b *FutexSnoopSession) Start() error
- func (b *FutexSnoopSession) Stop() error
- type LockStat
- type OffCpuArgs
- type OffCpuEvent
- type OffcpuSession
- func (b *OffcpuSession) ConsumeEvent() error
- func (b *OffcpuSession) HandleEvent(data []byte)
- func (b *OffcpuSession) Name() string
- func (b *OffcpuSession) ReadEvent() error
- func (b *OffcpuSession) ResolveStack(syms *bytes.Buffer, stackId int32, pid uint32, userspace bool) error
- func (b *OffcpuSession) Start() error
- func (b *OffcpuSession) Stop() error
- type OnCpuArgs
- type OnCpuEvent
- type OncpuSession
- func (b *OncpuSession) ConsumeEvent() error
- func (b *OncpuSession) HandleEvent(data []byte)
- func (b *OncpuSession) Name() string
- func (b *OncpuSession) PollData()
- func (b *OncpuSession) ReadEvent() error
- func (b *OncpuSession) Reset() error
- func (b *OncpuSession) ResolveStack(syms *bytes.Buffer, stackId int32, pid uint32, userspace bool) error
- func (b *OncpuSession) Start() error
- func (b *OncpuSession) Stop() error
- type SchedCached
- type SchedRecord
- type SyscallArgs
- type SyscallEvent
- type SyscallSession
- func (b *SyscallSession) ConsumeEvent() error
- func (b *SyscallSession) HandleEvent(data []byte)
- func (b *SyscallSession) Name() string
- func (b *SyscallSession) ReadEvent() error
- func (b *SyscallSession) ResolveStack(syms *bytes.Buffer, stackId int32, pid uint32, userspace bool) error
- func (b *SyscallSession) Start() error
- func (b *SyscallSession) Stop() error
- func (b *SyscallSession) SyscallIdToName(id uint32) string
- type Target
- type TaskCounter
- type TaskLockStat
- type Waker
Constants ¶
View Source
const ( SCHED_CACHE_SIZE = 512 SCHED_CACHE_DUMP_STEP = 10 )
Variables ¶
This section is empty.
Functions ¶
func NewFutexSnoopSession ¶
func NewOffCpuBpfSession ¶
func NewOnCpuBpfSession ¶
func NewSyscallSession ¶
func SyscallNameToId ¶
Types ¶
type BpfSession ¶
type BpfSession struct {
Session *core.Session
// inner field
PerfBuffer *bpf.PerfBuffer
// inner field
Module *bpf.Module
}
func (*BpfSession) ConsumeEvent ¶
func (s *BpfSession) ConsumeEvent() error
func (*BpfSession) Name ¶
func (s *BpfSession) Name() string
func (*BpfSession) Start ¶
func (s *BpfSession) Start() error
func (*BpfSession) Stop ¶
func (s *BpfSession) Stop() error
type FutexSnoopArgs ¶
type FutexSnoopSession ¶
type FutexSnoopSession struct {
Session *core.Session
PerfBuffer *bpf.PerfBuffer
Module *bpf.Module
SymSession *symtab.SymSession
Args FutexSnoopArgs
BtfPath string
// contains filtered or unexported fields
}
func (*FutexSnoopSession) ConsumeEvent ¶
func (b *FutexSnoopSession) ConsumeEvent() error
func (*FutexSnoopSession) HandleEvent ¶
func (b *FutexSnoopSession) HandleEvent(data []byte)
func (*FutexSnoopSession) Name ¶
func (b *FutexSnoopSession) Name() string
func (*FutexSnoopSession) ReadEvent ¶
func (b *FutexSnoopSession) ReadEvent() error
func (*FutexSnoopSession) ResolveStack ¶
func (*FutexSnoopSession) Start ¶
func (b *FutexSnoopSession) Start() error
func (*FutexSnoopSession) Stop ¶
func (b *FutexSnoopSession) Stop() error
type OffCpuArgs ¶
type OffCpuEvent ¶
type OffcpuSession ¶
type OffcpuSession struct {
Session *core.Session
// inner filed
PerfBuffer *bpf.PerfBuffer
// inner filed
Module *bpf.Module
SymSession *symtab.SymSession
Args OffCpuArgs
BtfPath string
// contains filtered or unexported fields
}
func (*OffcpuSession) ConsumeEvent ¶
func (b *OffcpuSession) ConsumeEvent() error
func (*OffcpuSession) HandleEvent ¶
func (b *OffcpuSession) HandleEvent(data []byte)
func (*OffcpuSession) Name ¶
func (b *OffcpuSession) Name() string
func (*OffcpuSession) ReadEvent ¶
func (b *OffcpuSession) ReadEvent() error
func (*OffcpuSession) ResolveStack ¶
func (*OffcpuSession) Start ¶
func (b *OffcpuSession) Start() error
func (*OffcpuSession) Stop ¶
func (b *OffcpuSession) Stop() error
type OnCpuEvent ¶
type OncpuSession ¶
type OncpuSession struct {
Session *core.Session
// inner filed
PerfBuffer *bpf.PerfBuffer
// inner filed
Module *bpf.Module
SymSession *symtab.SymSession
BtfPath string
// contains filtered or unexported fields
}
func (*OncpuSession) ConsumeEvent ¶
func (b *OncpuSession) ConsumeEvent() error
func (*OncpuSession) HandleEvent ¶
func (b *OncpuSession) HandleEvent(data []byte)
func (*OncpuSession) Name ¶
func (b *OncpuSession) Name() string
func (*OncpuSession) PollData ¶
func (b *OncpuSession) PollData()
func (*OncpuSession) ReadEvent ¶
func (b *OncpuSession) ReadEvent() error
func (*OncpuSession) Reset ¶
func (b *OncpuSession) Reset() error
func (*OncpuSession) ResolveStack ¶
func (*OncpuSession) Start ¶
func (b *OncpuSession) Start() error
func (*OncpuSession) Stop ¶
func (b *OncpuSession) Stop() error
type SchedCached ¶
type SchedCached struct {
Status uint32
Cpu uint32
Id uint32
Pad uint32
Records [SCHED_CACHE_SIZE]SchedRecord
}
type SyscallArgs ¶
type SyscallEvent ¶
type SyscallSession ¶
type SyscallSession struct {
Session *core.Session
PerfBuffer *bpf.PerfBuffer
Module *bpf.Module
SymSession *symtab.SymSession
Args SyscallArgs
BtfPath string
Arch string
// contains filtered or unexported fields
}
func (*SyscallSession) ConsumeEvent ¶
func (b *SyscallSession) ConsumeEvent() error
func (*SyscallSession) HandleEvent ¶
func (b *SyscallSession) HandleEvent(data []byte)
func (*SyscallSession) Name ¶
func (b *SyscallSession) Name() string
func (*SyscallSession) ReadEvent ¶
func (b *SyscallSession) ReadEvent() error
func (*SyscallSession) ResolveStack ¶
func (*SyscallSession) Start ¶
func (b *SyscallSession) Start() error
func (*SyscallSession) Stop ¶
func (b *SyscallSession) Stop() error
func (*SyscallSession) SyscallIdToName ¶
func (b *SyscallSession) SyscallIdToName(id uint32) string
type TaskCounter ¶
type TaskCounter struct {
// contains filtered or unexported fields
}
type TaskLockStat ¶
Click to show internal directories.
Click to hide internal directories.