summaryrefslogtreecommitdiff
path: root/Kernel/GlobalProcessExposed.cpp
AgeCommit message (Collapse)Author
2021-08-13Kernel/ProcFS: Expose TCP/UDP Socket pidsbrapru
This allows for commands like netstat to reference /proc/net and identify a connection's owning process. Process information is limited to superusers and user owned processes.
2021-08-12Kernel: Steer away from heap allocations for ProcFS process dataLiav A
Instead, use more static patterns to acquire that sort of data.
2021-08-07Kernel: Migrate ARP table locking to ProtectedValueJean-Baptiste Boric
2021-08-06Kernel: Rename Process::space() => Process::address_space()Andreas Kling
We commonly talk about "a process's address space" so let's nudge the code towards matching how we talk about it. :^)
2021-08-06Kernel: Move Kernel/Memory/ code into Kernel::Memory namespaceAndreas Kling
2021-08-06Kernel: Store Thread name as a KStringAndreas Kling
2021-08-03Kernel: Expose link speed and duplex through /proc/net/adaptersThomas Wagenveld
Add the fields 'link_speed' (integer or -1) for the speed and 'link_full_duplex' (true for full, false for half) to indicate link duplex.
2021-07-28Kernel/ProcFS: Make various things superuser-only once againAndreas Kling
File and directory permissions regressed with the recent ProcFS changes. This patch restores the superuser-only permissions where appropriate.
2021-07-27Kernel: Support loading the kernel at almost arbitrary virtual addressesGunnar Beutner
This enables further work on implementing KASLR by adding relocation support to the pre-kernel and updating the kernel to be less dependent on specific virtual memory layouts.
2021-07-22Kernel: Add /proc/kernel_base (superuser only)Andreas Kling
This file contains the kernel base address as a decimal integer.
2021-07-18Everywhere: Make tracking cpu usage independent from system ticksTom
This switches tracking CPU usage to more accurately measure time in user and kernel land using either the TSC or another time source. This will also come in handy when implementing a tickless kernel mode.
2021-07-18Everywhere: Improve CPU usage calculationTom
As threads come and go, we can't simply account for how many time slices the threads at any given point may have been using. We need to also account for threads that have since disappeared. This means we also need to track how many time slices we have expired globally. However, because this doesn't account for context switches outside of the system timer tick values may still be under-reported. To solve this we will need to track more accurate time information on each context switch. This also fixes top's cpu usage calculation which was still based on the number of context switches. Fixes #6473
2021-07-18Kernel: Rename Locker => MutexLockerAndreas Kling
2021-07-18Kernel/USB: Move USB bus information from /proc to /sysAndreas Kling
This patch moves all the USB data from /proc/bus/usb to /sys/bus/usb.
2021-07-17Kernel: Replace "folder" => "directory" everywhereAndreas Kling
Folders are a GUI concept. File systems have directories.
2021-07-17Kernel: Rename Lock to MutexAndreas Kling
Let's be explicit about what kind of lock this is meant to be.
2021-07-11Kernel: Use Forward.h headers moreAndreas Kling
2021-07-11Kernel: Rename ProcFSComponentsRegistrar => ProcFSComponentRegistryAndreas Kling
This matches the formatting used in SysFS.
2021-07-11Kernel: Remove friend classes from ProcFSComponentsRegistrarAndreas Kling
2021-07-11Kernel: Replace "Folder" => "Directory" everywhereAndreas Kling
Folders are a GUI concept, file systems have directories. :^)
2021-07-11Kernel: Remove some dead code and unused includes in SysFS filesAndreas Kling
2021-07-11Kernel: Rename FileBackedFS => FileBackedFileSystemAndreas Kling
2021-07-11Kernel: Rename VFS => VirtualFileSystemAndreas Kling
2021-07-11Kernel: Rename FS => FileSystemAndreas Kling
This matches our common naming style better.
2021-07-08Kernel: Use PAE to allow accessing all physical memory beyond 4GBTom
We already use PAE for the NX bit, but this changes the PhysicalAddress structure to be able to hold 64 bit physical addresses. This allows us to use all the available physical memory.
2021-07-02Kernel/PCI: Move the PCI components as a subfolder to the Bus directoryLiav A
2021-06-29Kernel: Don't create a JsonArray when generating /proc/cpuinfoAndreas Kling
2021-06-29Kernel/ProcFS: Split code into more separate filesLiav A
Instead of using one file for the entire "backend" of the ProcFS data and metadata, we could split that file into two files that represent 2 logical chunks of the ProcFS exposed objects: 1. Global and inter-process information. This includes all fixed data in the root folder of the ProcFS, networking information and the bus folder. 2. Per-process information. This includes all dynamic data about a process that resides in the /proc/PID/ folder. This change makes it more easier to read the code and to change it, hence we do it although there's no technical benefit from it now :)