At the very least specifying PERF_SAMPLE_STACK_USER will return ENOSYS
on arches that don't implement it.
---
 syscalls/perf_event_open.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/syscalls/perf_event_open.c b/syscalls/perf_event_open.c
index d6c404c..0fe64ce 100644
--- a/syscalls/perf_event_open.c
+++ b/syscalls/perf_event_open.c
@@ -1316,5 +1316,5 @@ struct syscallentry syscall_perf_event_open = {
        },
        .sanitise = sanitise_perf_event_open,
        .init = init_pmus,
-       .flags = NEED_ALARM,
+       .flags = NEED_ALARM | IGNORE_ENOSYS,
 };
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe trinity" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to