syscall.sh / s390x / 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)
number331 (0x14b)
abicommon
entry pointsys_perf_event_open
sinceLinux 4.16
man pageperf_event_open(2)
sourceelixir.bootlin.com

Registers

registervalue
r1331, the syscall number
r2struct perf_event_attr *attr_uptr
r3pid_t pid
r4int cpu
r5int group_fd
r6unsigned long flags
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/perf_event_open