diff --git a/Kernel/FileSystem/ProcFS.cpp b/Kernel/FileSystem/ProcFS.cpp index 7158c7f1ed..ad7e714795 100644 --- a/Kernel/FileSystem/ProcFS.cpp +++ b/Kernel/FileSystem/ProcFS.cpp @@ -817,6 +817,7 @@ static bool procfs$all(InodeIdentifier, KBufferBuilder& builder) process_object.add("amount_purgeable_volatile", process.space().amount_purgeable_volatile()); process_object.add("amount_purgeable_nonvolatile", process.space().amount_purgeable_nonvolatile()); process_object.add("dumpable", process.is_dumpable()); + process_object.add("kernel", process.is_kernel_process()); auto thread_array = process_object.add_array("threads"); process.for_each_thread([&](const Thread& thread) { auto thread_object = thread_array.add_object(); diff --git a/Userland/Libraries/LibCore/ProcessStatisticsReader.cpp b/Userland/Libraries/LibCore/ProcessStatisticsReader.cpp index 69a723eab2..4ef264c9f9 100644 --- a/Userland/Libraries/LibCore/ProcessStatisticsReader.cpp +++ b/Userland/Libraries/LibCore/ProcessStatisticsReader.cpp @@ -71,6 +71,7 @@ Optional> ProcessStatisticsReader::get_a process.gid = process_object.get("gid").to_u32(); process.ppid = process_object.get("ppid").to_u32(); process.nfds = process_object.get("nfds").to_u32(); + process.kernel = process_object.get("kernel").to_bool(); process.name = process_object.get("name").to_string(); process.executable = process_object.get("executable").to_string(); process.tty = process_object.get("tty").to_string(); diff --git a/Userland/Libraries/LibCore/ProcessStatisticsReader.h b/Userland/Libraries/LibCore/ProcessStatisticsReader.h index 9c574229c7..da6a1ae0a7 100644 --- a/Userland/Libraries/LibCore/ProcessStatisticsReader.h +++ b/Userland/Libraries/LibCore/ProcessStatisticsReader.h @@ -65,6 +65,7 @@ struct ProcessStatistics { gid_t gid; pid_t ppid; unsigned nfds; + bool kernel; String name; String executable; String tty;