syscall.sh / sparc / 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)
number327 (0x147)
abicommon
entry pointsys_perf_event_open
sinceLinux 5.0
man pageperf_event_open(2)
sourceelixir.bootlin.com

Registers

registervalue
g1327, the syscall number
o0struct perf_event_attr *attr_uptr
o1pid_t pid
o2int cpu
o3int group_fd
o4unsigned long flags
o0the return value

Then run t 0x10 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/sparc/perf_event_open