This commit adds ->rt_priority and ->gp_start to show_rcu_gp_kthreads() output in order to better diagnose RCU priority boosting failures.
Unified · Split
| @@ -726,6 +726,7 @@ void show_rcu_gp_kthreads(void) · 725 unmodified lines | ||
| 726 | 726 | unsigned long j; |
| 727 | 727 | unsigned long ja; |
| 728 | 728 | unsigned long jr; |
| 729 | + unsigned long js; | |
| 729 | 730 | unsigned long jw; |
| 730 | 731 | struct rcu_data *rdp; |
| 731 | 732 | struct rcu_node *rnp; |
| @@ -734,11 +735,12 @@ void show_rcu_gp_kthreads(void) · 2 unmodified lines | ||
| 734 | 735 | j = jiffies; |
| 735 | 736 | ja = j - data_race(rcu_state.gp_activity); |
| 736 | 737 | jr = j - data_race(rcu_state.gp_req_activity); |
| 738 | + js = j - data_race(rcu_state.gp_start); | |
| 737 | 739 | jw = j - data_race(rcu_state.gp_wake_time); |
| 738 | − pr_info("%s: wait state: %s(%d) ->state: %#lx delta ->gp_activity %lu ->gp_req_activity %lu ->gp_wake_time %lu ->gp_wake_seq %ld ->gp_seq %ld ->gp_seq_needed %ld ->gp_flags %#x\n", | |
| 740 | + pr_info("%s: wait state: %s(%d) ->state: %#lx ->rt_priority %u delta ->gp_start %lu ->gp_activity %lu ->gp_req_activity %lu ->gp_wake_time %lu ->gp_wake_seq %ld ->gp_seq %ld ->gp_seq_needed %ld ->gp_flags %#x\n", | |
| 739 | 741 | rcu_state.name, gp_state_getname(rcu_state.gp_state), |
| 740 | − rcu_state.gp_state, t ? t->state : 0x1ffffL, | |
| 741 | − ja, jr, jw, (long)data_race(rcu_state.gp_wake_seq), | |
| 742 | + rcu_state.gp_state, t ? t->state : 0x1ffffL, t ? t->rt_priority : 0xffU, | |
| 743 | + js, ja, jr, jw, (long)data_race(rcu_state.gp_wake_seq), | |
| 742 | 744 | (long)data_race(rcu_state.gp_seq), |
| 743 | 745 | (long)data_race(rcu_get_root()->gp_seq_needed), |
| 744 | 746 | data_race(rcu_state.gp_flags)); |