Documentation ¶
Overview ¶
Package bpf-elf2insn provides a utility that extracts Linux kernel eBPF instructions from an ELF file (generated by LLVM) and prints C-like output. This can be used to populate a struct bpf_insn instance which can then be used to attach the eBPF program to any supported hook such as a socket, syscall, tracepoint or kprobe.
Installation
go get -u github.com/anmolsarma/bpf-elf2insn
Usage
bpf-elf2insn elf.o section
Click to show internal directories.
Click to hide internal directories.