From afe8796bfad401ef48771361b0e49716a8e8ee0a Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Thu, 11 Jul 2013 11:22:23 +0200 Subject: [PATCH] docs: describe how to build bpf_jit_disasm Since it's out of the normal build process for now, describe how to build it for advanced users. Signed-off-by: Daniel Borkmann --- INSTALL | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/INSTALL b/INSTALL index 4fcc3cc3..5bfba1f5 100644 --- a/INSTALL +++ b/INSTALL @@ -169,3 +169,14 @@ a prefixed path like: Thanks for maintaining netsniff-ng in your distribution. Further questions will be answered on the public mailing list. + +Last but not least, there is one small utility for advanced users that we have +not integrated into the main build process. This is a minimal BPF JIT image +disassembler for the Linux kernel. You can also find this tool in the Linux +kernel Git tree under 'tools/net/bpf_jit_disasm.c' or within the netsniff-ng +Git tree simply under 'bpf_jit_disasm.c'. To build it, execute: + + $ gcc -Wall -O2 bpf_jit_disasm.c -o bpf_jit_disasm -lopcodes -lbfd -ldl + +The rest is described in the file header comment itself, i.e. how to get to the +BPF JIT code. -- 2.11.4.GIT