syscall.sh / ppc64 / 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)
number361 (0x169)
abicommon
entry pointsys_bpf
sinceLinux 5.0
man pagebpf(2)
sourceelixir.bootlin.com

Registers

registervalue
r0361, the syscall number
r3int cmd
r4union bpf_attr *attr
r5unsigned int size
r6struct bpf_common_attr *attr_common
r7unsigned int size_common
r3the return value

Then run sc to enter the kernel.

Same syscall on other architectures

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