Documentation/trace/rv/monitor_stall.rst
The stalled task (stall) monitor is a sample per-task timed monitor that checks if tasks are scheduled within a defined threshold after they are ready::
|
|
v
#==========================#
+-----------------> H dequeued H | #==========================# | | sched_switch_wait | sched_wakeup;reset(clk) | v | +--------------------------+ <+ | | enqueued | | sched_wakeup | | clk < threshold_jiffies | -+ | +--------------------------+ | | ^ | sched_switch_in sched_switch_preempt;reset(clk) | v | | +--------------------------+ +------------------ | running | +--------------------------+ ^ sched_switch_in | | sched_wakeup | +----------------------+
The threshold can be configured as a parameter by either booting with the
stall.threshold_jiffies=<new value> argument or writing a new value to
/sys/module/stall/parameters/threshold_jiffies.
Graphviz Dot file in tools/verification/models/stall.dot