aboutsummaryrefslogtreecommitdiffstats
path: root/samples/rust/rust_driver_pci.rs
diff options
context:
space:
mode:
authorMasami Hiramatsu (Google) <[email protected]>2025-02-25 07:02:43 +0000
committerAndrew Morton <[email protected]>2025-03-22 05:10:04 +0000
commit2158599a4b6d735e1a57c8320723ca74c42dd7ae (patch)
tree9d7d54c9707ff0440035f944d5eac932c374f619 /samples/rust/rust_driver_pci.rs
parenthung_task: show the blocker task if the task is hung on mutex (diff)
downloadkernel-2158599a4b6d735e1a57c8320723ca74c42dd7ae.tar.gz
kernel-2158599a4b6d735e1a57c8320723ca74c42dd7ae.zip
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]>
Diffstat (limited to 'samples/rust/rust_driver_pci.rs')
0 files changed, 0 insertions, 0 deletions