Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rcu: Mark diagnostic functions as notrace

The rcu_lockdep_current_cpu_online(), rcu_read_lock_sched_held(),
rcu_read_lock_held(), rcu_read_lock_bh_held(), rcu_read_lock_any_held()
are used by tracing-related code paths, so putting traces on them is
unlikely to make anyone happy. This commit therefore marks them all
"notrace".

Reported-by: Leon Hwang <leon.hwang@linux.dev>
Reported-by: Alexei Starovoitov <alexei.starovoitov@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>

authored by

Paul E. McKenney and committed by
Frederic Weisbecker
3ed04e3f 8c8250ee

+5 -5
+1 -1
kernel/rcu/tree.c
··· 4021 4021 * RCU on an offline processor during initial boot, hence the check for 4022 4022 * rcu_scheduler_fully_active. 4023 4023 */ 4024 - bool rcu_lockdep_current_cpu_online(void) 4024 + bool notrace rcu_lockdep_current_cpu_online(void) 4025 4025 { 4026 4026 struct rcu_data *rdp; 4027 4027 bool ret = false;
+4 -4
kernel/rcu/update.c
··· 117 117 return false; 118 118 } 119 119 120 - int rcu_read_lock_sched_held(void) 120 + int notrace rcu_read_lock_sched_held(void) 121 121 { 122 122 bool ret; 123 123 ··· 342 342 * Note that rcu_read_lock() is disallowed if the CPU is either idle or 343 343 * offline from an RCU perspective, so check for those as well. 344 344 */ 345 - int rcu_read_lock_held(void) 345 + int notrace rcu_read_lock_held(void) 346 346 { 347 347 bool ret; 348 348 ··· 367 367 * Note that rcu_read_lock_bh() is disallowed if the CPU is either idle or 368 368 * offline from an RCU perspective, so check for those as well. 369 369 */ 370 - int rcu_read_lock_bh_held(void) 370 + int notrace rcu_read_lock_bh_held(void) 371 371 { 372 372 bool ret; 373 373 ··· 377 377 } 378 378 EXPORT_SYMBOL_GPL(rcu_read_lock_bh_held); 379 379 380 - int rcu_read_lock_any_held(void) 380 + int notrace rcu_read_lock_any_held(void) 381 381 { 382 382 bool ret; 383 383