1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 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

@ -247,6 +247,9 @@ public:
Lock& big_lock() { return m_big_lock; }
unsigned syscall_count() const { return m_syscall_count; }
void did_syscall() { ++m_syscall_count; }
private:
friend class MemoryManager;
friend class Scheduler;
@ -322,6 +325,8 @@ private:
int m_next_tid { 0 };
unsigned m_syscall_count { 0 };
Lock m_big_lock;
};