1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:57:44 +00:00

Kernel+ProcessManager: Show per-process syscall counts.

Added a simple syscall counter to the /proc/all contents. :^)
This commit is contained in:
Andreas Kling 2019-04-17 14:48:55 +02:00
parent c59f8cd663
commit c02c6fef28
6 changed files with 22 additions and 4 deletions

View file

@ -52,6 +52,8 @@ int sync()
static dword handle(RegisterDump& regs, dword function, dword arg1, dword arg2, dword arg3)
{
current->process().did_syscall();
ASSERT_INTERRUPTS_ENABLED();
switch (function) {
case Syscall::SC_yield: