mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:37:35 +00:00
Kernel+ProcessManager: Show per-process syscall counts.
Added a simple syscall counter to the /proc/all contents. :^)
This commit is contained in:
parent
c59f8cd663
commit
c02c6fef28
6 changed files with 22 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue