]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
perf test: Fix sys_enter_openat event test for musl
authorMartin Kaiser <martin@kaiser.cx>
Tue, 28 Apr 2026 14:38:47 +0000 (16:38 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 11 May 2026 17:16:28 +0000 (14:16 -0300)
commit9a4a67dddc3d88e2e9d3cff462b943f40ea439e4
treeb9f378641f6b3ff86c601805a05231ce0f58ae4a
parenta4cbd51862d449e487866c173f5dff46329da76c
perf test: Fix sys_enter_openat event test for musl

The "syscalls:sys_enter_openat event fields" test calls

openat(AT_FDCWD, "/etc/passwd", O_RDONLY | O_DIRECTORY)

and verifies that the flags of the captured event are matching.
This fails for musl, where the openat syscall wrapper always adds
O_LARGEFILE.

Update the check to allow for additional flags, the access mode flags
must be unchanged.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/openat-syscall-tp-fields.c