+
+ return False
+
+ @"Report on stalled thread"
+ def check_stall() -> bool:
+ """
+ Check and report on any thread that spend too much time in kernel.
+ """
+
+ return True
+
+ @"Max kernel time allowance"
+ def stall_timeout() -> int:
+ """
+ Set the maximum time (in seconds) spent in kernel before considered
+ to be stalled.
+ """
+ require (check_stall)
+
+ return 10
+
+ @"Max number of preemptions"
+ def stall_max_preempts() -> int:
+ """
+ Set the maximum number of preemptions that a task can take
+ before it is considered to be stucked in some loops.
+
+ Setting it to 0 disable this check
+ """
+ require (check_stall)
+
+ return 0
+