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.
Showing the changes to kernel (1 of 1 file). Show all
Unified · Split
| @@ -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 | */ |
| 2029 | static void rcu_gp_cleanup(void) | 2029 | static noinline void rcu_gp_cleanup(void) |
| 2030 | { | 2030 | { |
| 2031 | int cpu; | 2031 | int cpu; |
| 2032 | bool needgp = false; | 2032 | bool needgp = false; |