syscall.sh / ppc / perf_event_open

perf_event_open

set up performance monitoring

sys_perf_event_open(struct perf_event_attr *attr_uptr, pid_t pid, int cpu, int group_fd, unsigned long flags)
number319 (0x13f)
abicommon
entry pointsys_perf_event_open
sinceLinux 5.0
man pageperf_event_open(2)
sourceelixir.bootlin.com

Registers

registervalue
r0319, the syscall number
r3struct perf_event_attr *attr_uptr
r4pid_t pid
r5int cpu
r6int group_fd
r7unsigned long flags
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/ppc/perf_event_open