mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:47:34 +00:00
Kernel: Make it possible to have kmalloc() dump call stacks.
This can be enabled at any time using a sysctl: sysctl kmalloc_stacks=1 The stacks will go to the debugger output only.
This commit is contained in:
parent
bc6ac1c2f2
commit
d384c7815f
4 changed files with 14 additions and 0 deletions
|
@ -20,6 +20,7 @@ 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;
|
||||
extern bool g_dump_kmalloc_stacks;
|
||||
|
||||
inline void* operator new(size_t, void* p) { return p; }
|
||||
inline void* operator new[](size_t, void* p) { return p; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue