summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2020-03-05 19:15:38 +0200
committerAndreas Kling <kling@serenityos.org>2020-03-06 11:19:51 +0100
commit7ef5d222f1815952613f751d6358f48bf841ec5b (patch)
tree6c3d6e35c3eed15134993c144bad097c96fc4973 /Kernel/FileSystem
parent773afefe7c44d8ebf75f9e3909c950214a3540f7 (diff)
downloadserenity-7ef5d222f1815952613f751d6358f48bf841ec5b.zip
Kernel: Change data in /proc/interrupts to be more richer
Also, during interrupt handlers' enumeration, we call all interrupts handlers that are not UnhandledInterruptHandler.
Diffstat (limited to 'Kernel/FileSystem')
-rw-r--r--Kernel/FileSystem/ProcFS.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Kernel/FileSystem/ProcFS.cpp b/Kernel/FileSystem/ProcFS.cpp
index 20349cfaed..df9a22207a 100644
--- a/Kernel/FileSystem/ProcFS.cpp
+++ b/Kernel/FileSystem/ProcFS.cpp
@@ -363,8 +363,9 @@ Optional<KBuffer> procfs$interrupts(InodeIdentifier)
JsonArraySerializer array { builder };
InterruptManagement::the().enumerate_interrupt_handlers([&array](GenericInterruptHandler& handler) {
auto obj = array.add_object();
- obj.add("purpose", "Interrupt Handler"); // FIXME: Determine the right description for each interrupt handler.
+ obj.add("purpose", handler.purpose());
obj.add("interrupt_line", handler.interrupt_number());
+ obj.add("controller", handler.controller());
obj.add("cpu_handler", 0); // FIXME: Determine the responsible CPU for each interrupt handler.
obj.add("device_sharing", (unsigned)handler.sharing_devices_count());
obj.add("call_count", (unsigned)handler.get_invoking_count());