History

rcu: Add ->rt_priority and ->gp_start to show_rcu_gp_kthreads() output

This commit adds ->rt_priority and ->gp_start to show_rcu_gp_kthreads() output in order to better diagnose RCU priority boosting failures.

Paul E. McKenney committed 5 years ago

Commit e44111e1 parent 8e4b1d21 file · +5 −3Browse files

Unified · Split

kernel/rcu/tree_stall.h+5−3
@@ -726,6 +726,7 @@ void show_rcu_gp_kthreads(void) · 725 unmodified lines
726 unsigned long j;726 unsigned long j;
727 unsigned long ja;727 unsigned long ja;
728 unsigned long jr;728 unsigned long jr;
729 unsigned long js;
729 unsigned long jw;730 unsigned long jw;
730 struct rcu_data *rdp;731 struct rcu_data *rdp;
731 struct rcu_node *rnp;732 struct rcu_node *rnp;
@@ -734,11 +735,12 @@ void show_rcu_gp_kthreads(void) · 2 unmodified lines
734 j = jiffies;735 j = jiffies;
735 ja = j - data_race(rcu_state.gp_activity);736 ja = j - data_race(rcu_state.gp_activity);
736 jr = j - data_race(rcu_state.gp_req_activity);737 jr = j - data_race(rcu_state.gp_req_activity);
738 js = j - data_race(rcu_state.gp_start);
737 jw = j - data_race(rcu_state.gp_wake_time);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 rcu_state.name, gp_state_getname(rcu_state.gp_state),741 rcu_state.name, gp_state_getname(rcu_state.gp_state),
740 rcu_state.gp_state, t ? t->state : 0x1ffffL,742 rcu_state.gp_state, t ? t->state : 0x1ffffL, t ? t->rt_priority : 0xffU,
741 ja, jr, jw, (long)data_race(rcu_state.gp_wake_seq),743 js, ja, jr, jw, (long)data_race(rcu_state.gp_wake_seq),
742 (long)data_race(rcu_state.gp_seq),744 (long)data_race(rcu_state.gp_seq),
743 (long)data_race(rcu_get_root()->gp_seq_needed),745 (long)data_race(rcu_get_root()->gp_seq_needed),
744 data_race(rcu_state.gp_flags));746 data_race(rcu_state.gp_flags));

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