/bpf-hello-world

Blue print for a new BPF CO-RE program

Primary LanguageC

bpf-hello-world

Blue print for a new BPF CO-RE program. Feel free to fork and use as a blue print for your new BPF CO-RE program :-)

See this blog post for intro into BPF CO-RE.

Compile

make

Override ARCH which is set to arm64 by default.

make ARCH=x86

CROSS_COMPILE not supported yet.

clean

make clean

Run

From one terminal window:

sudo ./hello_world

From another terminal window:

sudo cat /sys/kernel/tracing/trace_pipe

CTRL+c to interrupt and exit program.