| #
2158599a |
| 25-Feb-2025 |
Masami Hiramatsu (Google) <[email protected]> |
samples: add hung_task detector mutex blocking sample
Add a hung_task detector mutex blocking test sample code.
This module will create a dummy file on the debugfs. That file will cause the read p
samples: add hung_task detector mutex blocking sample
Add a hung_task detector mutex blocking test sample code.
This module will create a dummy file on the debugfs. That file will cause the read process to sleep for enough long time (256 seconds) while holding a mutex. As a result, the second process will wait on the mutex for a prolonged duration and be detected by the hung_task detector.
Usage is;
> cd /sys/kernel/debug/hung_task > cat mutex & cat mutex
and wait for hung_task message.
[[email protected]: make `hung_task_dir' static] Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Link: https://lkml.kernel.org/r/174046696281.2194069.4567490148001547311.stgit@mhiramat.tok.corp.google.com Signed-off-by: Masami Hiramatsu (Google) <[email protected]> Cc: Anna Schumaker <[email protected]> Cc: Boqun Feng <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Joel Granados <[email protected]> Cc: Kent Overstreet <[email protected]> Cc: Lance Yang <[email protected]> Cc: Sergey Senozhatsky <[email protected]> Cc: Steven Rostedt <[email protected]> Cc: Tomasz Figa <[email protected]> Cc: Waiman Long <[email protected]> Cc: Will Deacon <[email protected]> Cc: Yongliang Gao <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
show more ...
|