diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-02-18 16:39:53 -0800 |
|---|---|---|
| committer | David S. Miller <davem@nuts.davemloft.net> | 2004-02-18 16:39:53 -0800 |
| commit | 87f095b8e4710137fd086ed28c3b2b086dd4437e (patch) | |
| tree | be30fb69a34e15b78e0cf9aa59abaa51084f7696 /include/linux | |
| parent | a25a6d9af6241d1fbc961fc55375f843c3139092 (diff) | |
[PATCH] show_task() fix and cleanup
show_task() is preinting negative numbers for free stack due to arithmetic
against the wrong pointer.
Fix that up, and clean up a few related things.
show_task still has bogus code which atempts to work out how much stack the
task has ever used - it cannot work because we don't actually zero out the
stack pages when allocating them. We should fix that, or take it out.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/sched.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 3f2e5d071464..40170aa312a1 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -151,6 +151,7 @@ extern void init_idle(task_t *idle, int cpu); extern void show_state(void); extern void show_regs(struct pt_regs *); +extern void show_trace_task(task_t *tsk); /* * TASK is a pointer to the task whose backtrace we want to see (or NULL for current |
