Skip to content

Commit dacfbe8

Browse files
author
Dave Anderson
committed
Introduction of a new "bpf" command that displays information about
loaded eBFP (extended Berkeley Packet Filter) programs and maps. Because of its upstream fluidity, the capabilities of this command will be an ongoing task. In its initial form, the command displays the addresses, basic information, and key data structures of eBPF programs and maps. It also translates the bytecode, and disassembles the jited code, of loaded eBPF programs. ([email protected])
1 parent 9aa3451 commit dacfbe8

File tree

6 files changed

+1492
-4
lines changed

6 files changed

+1492
-4
lines changed

Makefile

+5-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ UNWIND_HFILES=unwind.h unwind_i.h rse.h unwind_x86.h unwind_x86_64.h
6060
VMWARE_HFILES=vmware_vmss.h
6161

6262
CFILES=main.c tools.c global_data.c memory.c filesys.c help.c task.c \
63-
kernel.c test.c gdb_interface.c configure.c net.c dev.c \
63+
kernel.c test.c gdb_interface.c configure.c net.c dev.c bpf.c \
6464
alpha.c x86.c ppc.c ia64.c s390.c s390x.c s390dbf.c ppc64.c x86_64.c \
6565
arm.c arm64.c mips.c sparc64.c \
6666
extensions.c remote.c va_server.c va_server_v1.c symbols.c cmdline.c \
@@ -79,7 +79,7 @@ SOURCE_FILES=${CFILES} ${GENERIC_HFILES} ${MCORE_HFILES} \
7979
${IBM_HFILES} ${SADUMP_HFILES} ${VMWARE_HFILES}
8080

8181
OBJECT_FILES=main.o tools.o global_data.o memory.o filesys.o help.o task.o \
82-
build_data.o kernel.o test.o gdb_interface.o net.o dev.o \
82+
build_data.o kernel.o test.o gdb_interface.o net.o dev.o bpf.o \
8383
alpha.o x86.o ppc.o ia64.o s390.o s390x.o s390dbf.o ppc64.o x86_64.o \
8484
arm.o arm64.o mips.o sparc64.o \
8585
extensions.o remote.o va_server.o va_server_v1.o symbols.o cmdline.o \
@@ -520,6 +520,9 @@ vmware_vmss.o: ${GENERIC_HFILES} ${VMWARE_HFILES} vmware_vmss.c
520520
kaslr_helper.o: ${GENERIC_HFILES} kaslr_helper.c
521521
${CC} -c ${CRASH_CFLAGS} kaslr_helper.c ${WARNING_OPTIONS} ${WARNING_ERROR}
522522

523+
bpf.o: ${GENERIC_HFILES} bpf.c
524+
${CC} -c ${CRASH_CFLAGS} bpf.c ${WARNING_OPTIONS} ${WARNING_ERROR}
525+
523526
${PROGRAM}: force
524527
@make --no-print-directory all
525528

0 commit comments

Comments
 (0)