int syscall(SYS_perf_event_open, struct perf_event_attr *attr, pid_t pid, int cpu, int group_fd, unsigned long flags); The PRE handler in coregrind/m_syswrap/syswrap-linux.c doesn't check ARG4. There are some special cases though: - group_fd may be -1 - when PERF_FLAG_FD_NO_GROUP is set group_fd is ignored
commit d9ed6b6f29d217ce9b2c4ccebcc255574d4d55b5 (HEAD -> master, origin/master, origin/HEAD) Author: Paul Floyd <pjfloyd@wanadoo.fr> Date: Sun Aug 31 10:44:49 2025 +0200 Bug 507867 - perf_event_open group_fd isn't checked