Documentation
¶
Index ¶
- type BTFContainer
- type ElfContainer
- func (e *ElfContainer) Binary() []byte
- func (e *ElfContainer) Close() error
- func (e *ElfContainer) File() *elf.File
- func (e *ElfContainer) GetElfInfo() map[string]interface{}
- func (e *ElfContainer) GetSections() []map[string]interface{}
- func (e *ElfContainer) GetSymbols() ([]map[string]interface{}, error)
- func (e *ElfContainer) Reader() io.ReaderAt
- func (e *ElfContainer) Reset()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BTFContainer ¶
type BTFContainer struct {
// contains filtered or unexported fields
}
BTFContainer 用于解析和存储 eBPF 程序中的 BTF 信息
func NewBTFContainerFromBinary ¶
func NewBTFContainerFromBinary(elfData []byte) (*BTFContainer, error)
NewBTFContainerFromBinary 从 eBPF ELF 二进制数据创建 BTF 容器
func (*BTFContainer) GetElfContainer ¶
func (b *BTFContainer) GetElfContainer() *ElfContainer
GetElfContainer 获取 ELF 容器
type ElfContainer ¶
type ElfContainer struct {
// contains filtered or unexported fields
}
ElfContainer ELF容器 用于解决 ELF 文件引用问题的辅助结构体 包含原始 ELF 文件的二进制数据和 ELF 文件结构
func NewElfContainerFromBinary ¶
func NewElfContainerFromBinary(bin []byte) (*ElfContainer, error)
NewElfContainerFromBinary 从二进制数据创建 ELF 容器
func (*ElfContainer) GetElfInfo ¶
func (e *ElfContainer) GetElfInfo() map[string]interface{}
GetElfInfo 获取 ELF 文件的基本信息
func (*ElfContainer) GetSections ¶
func (e *ElfContainer) GetSections() []map[string]interface{}
GetSections 获取所有段信息
func (*ElfContainer) GetSymbols ¶
func (e *ElfContainer) GetSymbols() ([]map[string]interface{}, error)
GetSymbols 获取所有符号信息
Click to show internal directories.
Click to hide internal directories.