Skip to content

Commit fe55420

Browse files
committed
tracing: Allow raw syscall trace events for non privileged users
This allows non privileged users to use the raw syscall trace events for task bound tracing in perf. It is safe because raw syscall trace events don't leak system wide informations. Signed-off-by: Frederic Weisbecker <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Steven Rostedt <[email protected]> Cc: Li Zefan <[email protected]> Cc: Jason Baron <[email protected]>
1 parent 1ed0c59 commit fe55420

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/trace/events/syscalls.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ TRACE_EVENT_FN(sys_enter,
4040
syscall_regfunc, syscall_unregfunc
4141
);
4242

43+
TRACE_EVENT_FLAGS(sys_enter, TRACE_EVENT_FL_CAP_ANY)
44+
4345
TRACE_EVENT_FN(sys_exit,
4446

4547
TP_PROTO(struct pt_regs *regs, long ret),
@@ -62,6 +64,8 @@ TRACE_EVENT_FN(sys_exit,
6264
syscall_regfunc, syscall_unregfunc
6365
);
6466

67+
TRACE_EVENT_FLAGS(sys_exit, TRACE_EVENT_FL_CAP_ANY)
68+
6569
#endif /* CONFIG_HAVE_SYSCALL_TRACEPOINTS */
6670

6771
#endif /* _TRACE_EVENTS_SYSCALLS_H */

0 commit comments

Comments
 (0)