diff options
| author | Ingo Molnar <mingo@elte.hu> | 2006-12-06 23:35:59 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 11:39:32 -0500 |
| commit | e59e2ae2c29700117a54e85c106017c24837119f (patch) | |
| tree | d746e90d2d79fa8458d021d3572bc55ebdc3aca3 /include | |
| parent | 875d95ec9eb69ffb334116fb44d04d9a64dcbfbb (diff) | |
[PATCH] SysRq-X: show blocked tasks
Add SysRq-X support: show blocked (TASK_UNINTERRUPTIBLE) tasks only.
Useful for debugging IO stalls.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/sched.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 837a012f57..0a90cefb0b 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
| @@ -194,7 +194,16 @@ extern void init_idle(struct task_struct *idle, int cpu); | |||
| 194 | 194 | ||
| 195 | extern cpumask_t nohz_cpu_mask; | 195 | extern cpumask_t nohz_cpu_mask; |
| 196 | 196 | ||
| 197 | extern void show_state(void); | 197 | /* |
| 198 | * Only dump TASK_* tasks. (-1 for all tasks) | ||
| 199 | */ | ||
| 200 | extern void show_state_filter(unsigned long state_filter); | ||
| 201 | |||
| 202 | static inline void show_state(void) | ||
| 203 | { | ||
| 204 | show_state_filter(-1); | ||
| 205 | } | ||
| 206 | |||
| 198 | extern void show_regs(struct pt_regs *); | 207 | extern void show_regs(struct pt_regs *); |
| 199 | 208 | ||
| 200 | /* | 209 | /* |
