Documentation ¶
Index ¶
- func GetMapFDFromID(mapID int) (int, error)
- func GetProgFDFromID(mapID int) (int, error)
- func IsfileExists(fname string) bool
- func Mount_bpf_fs() error
- func PinObject(objFD uint32, pinPath string) error
- func UnPinObject(pinPath string) error
- func Unmount_bpf_fs() error
- type BPFInsn
- type BpfMapAttr
- type BpfPin
- type BpfShowAttr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMapFDFromID ¶
func GetProgFDFromID ¶
func IsfileExists ¶
func Mount_bpf_fs ¶
func Mount_bpf_fs() error
func UnPinObject ¶
func Unmount_bpf_fs ¶
func Unmount_bpf_fs() error
Types ¶
type BPFInsn ¶
type BPFInsn struct { Code uint8 // Opcode DstReg uint8 // 4 bits: destination register, r0-r10 SrcReg uint8 // 4 bits: source register, r0-r10 Off int16 // Signed offset Imm int32 // Immediate constant }
func (*BPFInsn) ConvertBPFInstructionToByteStream ¶
Converts BPF instruction into bytes
type BpfMapAttr ¶
type BpfShowAttr ¶
type BpfShowAttr struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.