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:
Andreas Kling 2019-04-15 23:58:48 +02:00
commit d384c7815f
Notes: sideshowbarker 2024-07-19 14:41:47 +09:00
4 changed files with 14 additions and 0 deletions

View file

@ -59,6 +59,7 @@ private:
mutable Lock m_inodes_lock;
mutable HashMap<unsigned, ProcFSInode*> m_inodes;
RetainPtr<ProcFSInode> m_root_inode;
Lockable<bool> m_kmalloc_stack_helper;
};
struct ProcFSInodeCustomData {