void * k_stacks;
static void ser_debug(int c);
+static void ser_dump_vfs(void);
+
#ifdef CONFIG_SMP
static void ser_dump_proc_cpu(void);
#endif
ser_dump_proc_cpu();
break;
#endif
+ case '5':
+ ser_dump_vfs();
+ break;
#if DEBUG_TRACE
#define TOGGLECASE(ch, flag) \
case ch: { \
}
}
+static void ser_dump_vfs()
+{
+ /* Notify VFS it has to generate stack traces. Kernel can't do that as
+ * it's not aware of user space threads.
+ */
+ mini_notify(proc_addr(KERNEL), VFS_PROC_NR);
+}
+
#ifdef CONFIG_SMP
static void ser_dump_proc_cpu(void)
{
/* A task notify()ed us */
if (who_e == DS_PROC_NR)
handle_work(ds_event);
+ else if (who_e == KERNEL)
+ mthread_stacktraces();
else if (fp != NULL && (fp->fp_flags & FP_SRV_PROC))
handle_work(do_dev_event);
else