History

rcu: Make rcu_gp_cleanup() be noinline for tracing

Although there are trace events for RCU grace periods, these are only enabled in CONFIG_RCU_TRACE=y kernels. This commit therefore marks rcu_gp_cleanup() noinline in order to provide a function that can be traced that is invoked near the end of each grace period.

Paul E. McKenney committed 5 years ago

Commit 2f20de91 parent 4d80b8e1 file · +1 −1Browse files

Unified · Split

kernel/rcu/tree.c+1−1
@@ -2026,7 +2026,7 @@ static void rcu_gp_fqs_loop(void) · 2025 unmodified lines
2026/*2026/*
2027 * Clean up after the old grace period.2027 * Clean up after the old grace period.
2028 */2028 */
2029static void rcu_gp_cleanup(void)2029static noinline void rcu_gp_cleanup(void)
2030{2030{
2031 int cpu;2031 int cpu;
2032 bool needgp = false;2032 bool needgp = false;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t