mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:38:10 +00:00
Kernel: Add lock_count to procfs$all when LOCK_DEBUG is enabled.
This commit is contained in:
parent
7481789eac
commit
c248bbc7fd
1 changed files with 3 additions and 0 deletions
|
@ -801,6 +801,9 @@ static bool procfs$all(InodeIdentifier, KBufferBuilder& builder)
|
|||
auto thread_array = process_object.add_array("threads");
|
||||
process.for_each_thread([&](const Thread& thread) {
|
||||
auto thread_object = thread_array.add_object();
|
||||
#if LOCK_DEBUG
|
||||
thread_object.add("lock_count", thread.lock_count());
|
||||
#endif
|
||||
thread_object.add("tid", thread.tid().value());
|
||||
thread_object.add("name", thread.name());
|
||||
thread_object.add("times_scheduled", thread.times_scheduled());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue