blob: c29d7fdf1aec941e94d5f1e432cc1faf47da4801 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#include <linux/sched.h>
#include <linux/utsname.h>
#include <linux/kdb.h>
#ifdef CONFIG_SCHED_DEBUG
DEFINE_PER_CPU(int, kdb_in_use) = 0;
extern int sysrq_sched_debug_show(void);
/*
* Display sched_debug information
*/
static int kdb_sched_debug(int argc, const char **argv)
{
sysrq_sched_debug_show();
return 0;
}
#endif
static __init int kdb_enhance_register(void)
{
#ifdef CONFIG_SCHED_DEBUG
kdb_register_repeat("sched_debug", kdb_sched_debug, "",
"Display sched_debug information", 0, KDB_REPEAT_NONE);
#endif
return 0;
}
__initcall(kdb_enhance_register);
|