syscall.sh / s390x / 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)
number351 (0x15f)
abicommon
entry pointsys_bpf
sinceLinux 4.16
man pagebpf(2)
sourceelixir.bootlin.com

Registers

registervalue
r1351, the syscall number
r2int cmd
r3union bpf_attr *attr
r4unsigned int size
r5struct bpf_common_attr *attr_common
r6unsigned int size_common
r2the 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/s390x/bpf