syscall.sh / arm / bpf

bpf

perform a command on an extended BPF map or program

sys_bpf(int cmd, union bpf_attr *attr, unsigned int size, struct bpf_common_attr *attr_common, unsigned int size_common)
number386 (0x182)
abicommon
entry pointsys_bpf
sinceLinux 4.10
man pagebpf(2)
sourceelixir.bootlin.com

Registers

registervalue
r7386, the syscall number
r0int cmd
r1union bpf_attr *attr
r2unsigned int size
r3struct bpf_common_attr *attr_common
r4unsigned int size_common
r0the return value

Then run svc #0 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/arm/bpf