mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 07:36:50 +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:
@@ -1166,6 +1166,11 @@ ProcFS::ProcFS()
|
||||
m_entries[FI_PID_exe] = { "exe", FI_PID_exe, procfs$pid_exe };
|
||||
m_entries[FI_PID_cwd] = { "cwd", FI_PID_cwd, procfs$pid_cwd };
|
||||
m_entries[FI_PID_fd] = { "fd", FI_PID_fd };
|
||||
|
||||
m_kmalloc_stack_helper.resource() = g_dump_kmalloc_stacks;
|
||||
add_sys_bool("kmalloc_stacks", m_kmalloc_stack_helper, [this] {
|
||||
g_dump_kmalloc_stacks = m_kmalloc_stack_helper.resource();
|
||||
});
|
||||
}
|
||||
|
||||
ProcFS::ProcFSDirectoryEntry* ProcFS::get_directory_entry(InodeIdentifier identifier) const
|
||||
|
||||
Reference in New Issue
Block a user