bpf-elf2insn

command module
v0.0.0-...-49450da Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2018 License: MIT Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL