samples: add hung_task detector mutex blocking sampleAdd a hung_task detector mutex blocking test sample code.This module will create a dummy file on the debugfs. That file will causethe read p
samples: add hung_task detector mutex blocking sampleAdd a hung_task detector mutex blocking test sample code.This module will create a dummy file on the debugfs. That file will causethe read process to sleep for enough long time (256 seconds) while holdinga mutex. As a result, the second process will wait on the mutex for aprolonged duration and be detected by the hung_task detector.Usage is; > cd /sys/kernel/debug/hung_task > cat mutex & cat mutexand 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.comSigned-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 ...