ebpf-lab

Example code from Learning eBPF by Liz Rice, https://github.com/lizrice/learning-ebpf
git clone https://git.in0rdr.ch/ebpf-lab.git
Log | Files | Refs | Pull requests |Archive | README

Makefile (280B)


      1 # Build BPF target:
      2 # * optimization level 2 required, unknown opcode 8d on bpftool prog load
      3 # otherwise
      4 # * include debugging symbols (-g) to pretty print map data with `pbftool map
      5 # dump`
      6 build:
      7 	clang \
      8 		-target bpf \
      9 		-O2 \
     10 		-g \
     11 		-o hello-xdp.bcc.o -c hello-xdp.bcc.c
     12