Commit d8932719 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] remove show_trace_task()

It no longer has any callers.
parent 17d5007f
......@@ -137,18 +137,6 @@ dik_show_trace(unsigned long *sp)
printk("\n");
}
void show_trace_task(struct task_struct * tsk)
{
struct thread_info *ti = tsk->thread_info;
unsigned long fp, sp = ti->pcb.ksp, base = (unsigned long) ti;
if (sp > base && sp+6*8 < base + 16*1024) {
fp = ((unsigned long*)sp)[6];
if (fp > sp && fp < base + 16*1024)
dik_show_trace((unsigned long *)fp);
}
}
static int kstack_depth_to_print = 24;
void show_stack(struct task_struct *task, unsigned long *sp)
......
......@@ -165,18 +165,6 @@ void dump_backtrace(struct pt_regs *regs, struct task_struct *tsk)
c_backtrace(fp, processor_mode(regs));
}
/*
* This is called from SysRq-T (show_task) to display the current
* call trace for each process. Very useful.
*/
void show_trace_task(struct task_struct *tsk)
{
if (tsk != current) {
unsigned int fp = thread_saved_fp(tsk);
c_backtrace(fp, 0x10);
}
}
/* FIXME - this is probably wrong.. */
void show_stack(struct task_struct *task, unsigned long *sp) {
dump_mem("Stack: ", (unsigned long)sp, 8192+(unsigned long)task->thread_info);
......
......@@ -60,14 +60,6 @@ void show_trace(unsigned long * stack)
}
}
void show_trace_task(struct task_struct *tsk)
{
/* TODO, this is not really useful since its called from
* SysRq-T and we don't have a keyboard.. :)
*/
}
/*
* These constants are for searching for possible module text
* segments. MODULE_RANGE is a guess of how much space is likely
......
......@@ -156,14 +156,8 @@ void show_stack(struct task_struct *task, unsigned long *esp)
printk("\n");
}
void show_trace_task(struct task_struct *tsk)
{
show_stack(tsk,(unsigned long *)tsk->thread.esp0);
}
void dump_stack(void)
{
show_stack(NULL,NULL);
}
EXPORT_SYMBOL(dump_stack);
......@@ -123,16 +123,6 @@ void show_trace(struct task_struct *task, unsigned long * stack)
printk("\n");
}
void show_trace_task(struct task_struct *tsk)
{
unsigned long esp = tsk->thread.esp;
/* User space on another CPU? */
if ((esp ^ (unsigned long)tsk->thread_info) & ~(THREAD_SIZE - 1))
return;
show_trace(tsk, (unsigned long *)esp);
}
void show_stack(struct task_struct *task, unsigned long *esp)
{
unsigned long *stack;
......
......@@ -126,11 +126,6 @@ void show_trace(struct task_struct *task, unsigned long *stack)
printk("\n");
}
void show_trace_task(struct task_struct *tsk)
{
show_trace(tsk, (long *)tsk->thread.reg29);
}
/*
* The architecture-independent dump_stack generator
*/
......
......@@ -202,11 +202,6 @@ void show_trace(struct task_struct *task, unsigned long *stack)
printk("\n");
}
void show_trace_task(struct task_struct *tsk)
{
show_trace(tsk, (unsigned long *)tsk->thread.regs.ksp);
}
void die_if_kernel(char *str, struct pt_regs *regs, long err)
{
if (user_mode(regs)) {
......
......@@ -536,10 +536,4 @@ void dump_stack(void)
{
show_stack(current, (unsigned long *)__get_SP());
}
EXPORT_SYMBOL(dump_stack);
void show_trace_task(struct task_struct *tsk)
{
show_stack(tsk, (unsigned long *)tsk->thread.ksp);
}
......@@ -105,17 +105,6 @@ void show_trace(struct task_struct *task, unsigned long * stack)
printk("\n");
}
void show_trace_task(struct task_struct *tsk)
{
/*
* We can't print the backtrace of a running process. It is
* unreliable at best and can cause kernel oopses.
*/
if (tsk->state == TASK_RUNNING)
return;
show_trace(tsk, (unsigned long *) tsk->thread.ksp);
}
void show_stack(struct task_struct *task, unsigned long *sp)
{
unsigned long *stack;
......
......@@ -705,14 +705,8 @@ void show_task(unsigned long *sp)
show_stack(NULL, sp);
}
void show_trace_task(struct task_struct *tsk)
{
show_task((unsigned long *)tsk->thread.sp);
}
void dump_stack(void)
{
show_stack(NULL, NULL);
}
EXPORT_SYMBOL(dump_stack);
......@@ -1760,13 +1760,6 @@ void show_stack(struct task_struct *tsk, unsigned long *_ksp)
#endif
}
void show_trace_task(struct task_struct *tsk)
{
if (tsk)
show_stack(tsk,
(unsigned long *) tsk->thread_info->ksp);
}
void dump_stack(void)
{
unsigned long *ksp;
......
......@@ -42,19 +42,8 @@ void dump_stack(void)
show_trace(&stack);
}
EXPORT_SYMBOL(dump_stack);
void show_trace_task(struct task_struct *tsk)
{
unsigned long esp = PT_REGS_SP(&tsk->thread.regs);
/* User space on another CPU? */
if ((esp ^ (unsigned long)tsk) & (PAGE_MASK<<1))
return;
show_trace((unsigned long *)esp);
}
/*
* Overrides for Emacs so that we follow Linus's tabbing style.
* Emacs will notice this stuff at the end of the file and automatically
......
......@@ -234,10 +234,3 @@ unsigned long get_wchan (struct task_struct *p)
return 0;
}
void show_trace_task (struct task_struct *t)
{
/* blarg XXX */
printk ("show_trace_task: KSP = 0x%lx, USP = 0x%lx, UPC = 0x%lx\n",
t->thread.ksp, KSTK_ESP (t), KSTK_EIP (t));
}
......@@ -197,16 +197,6 @@ void show_trace(unsigned long *stack)
printk("\n");
}
void show_trace_task(struct task_struct *tsk)
{
unsigned long rsp = tsk->thread.rsp;
/* User space on another CPU? */
if ((rsp ^ (unsigned long)tsk->thread_info) & (PAGE_MASK<<1))
return;
show_trace((unsigned long *)rsp);
}
void show_stack(struct task_struct *tsk, unsigned long * rsp)
{
unsigned long *stack;
......
......@@ -151,7 +151,6 @@ 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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment