1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:18:11 +00:00

Kernel+ProcessManager: Expose the number of kmalloc/kfree calls.

This will be very helpful in tracking down unwanted kmalloc traffic. :^)
This commit is contained in:
Andreas Kling 2019-04-15 19:43:12 +02:00
parent 13041f894f
commit e9c0f4567d
5 changed files with 25 additions and 8 deletions

View file

@ -18,6 +18,8 @@ extern volatile size_t sum_alloc;
extern volatile size_t sum_free;
extern volatile size_t kmalloc_sum_eternal;
extern volatile size_t kmalloc_sum_page_aligned;
extern dword g_kmalloc_call_count;
extern dword g_kfree_call_count;
inline void* operator new(size_t, void* p) { return p; }
inline void* operator new[](size_t, void* p) { return p; }