I'm trying to learn about linux kernel module development, and I see in several resources the use of dump_stack
defined in linux/printk.h
. I tried it, and it doesn't do anything, so I go to look in the header files included with linux 5.14 (linux-5.14/include/linux/printk.h
) and I see the definition is
static inline void dump_stack(void)
{
}
Thinking I must have done something wrong getting the source, I check the header files included with the distribution of linux I am using (kali linux) in /usr/src/linux-headers-5.14.0-kali2-common/include/linux/printk.h
and I see the same thing. What am I missing here?