Skip to content

Commit 7c565a4

Browse files
compudjrostedt
authored andcommitted
rcupdate_trace: Define rcu_tasks_trace lock guard
Define a rcu_tasks_trace lock guard for use by the syscall enter/exit tracepoints. Cc: Linus Torvalds <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Michael Jeanson <[email protected]> Cc: Masami Hiramatsu <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Alexei Starovoitov <[email protected]> Cc: Yonghong Song <[email protected]> Cc: Paul E. McKenney <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Andrii Nakryiko <[email protected]> Cc: [email protected] Cc: Joel Fernandes <[email protected]> Cc: Jordan Rife <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/[email protected] Signed-off-by: Mathieu Desnoyers <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent 89c7e17 commit 7c565a4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/linux/rcupdate_trace.h

+5
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
#include <linux/sched.h>
1212
#include <linux/rcupdate.h>
13+
#include <linux/cleanup.h>
1314

1415
extern struct lockdep_map rcu_trace_lock_map;
1516

@@ -98,4 +99,8 @@ static inline void rcu_read_lock_trace(void) { BUG(); }
9899
static inline void rcu_read_unlock_trace(void) { BUG(); }
99100
#endif /* #ifdef CONFIG_TASKS_TRACE_RCU */
100101

102+
DEFINE_LOCK_GUARD_0(rcu_tasks_trace,
103+
rcu_read_lock_trace(),
104+
rcu_read_unlock_trace())
105+
101106
#endif /* __LINUX_RCUPDATE_TRACE_H */

0 commit comments

Comments
 (0)