Re: Kernel backtrace possiblities



Thanks! Its for the kernel part I want a backtrace. I have used the
show_trace_task(struct task_struct* tsk) function successfully but it
shows backtrace for all threads except the current thread. Do you know
how I can backtrace the "current" thread?


In "traps.c" the show_trace_task function which I'm using looks like
this:

void show_trace_task(struct task_struct *tsk) {
if (tsk != current) {
unsigned int fp = tsk->thread.save->fp;
c_backtrace(fp, 0x10);
}
}

The problem is that it does not print the backtrace of "current"
function. Any ideas on how to print the backtrace of the current
thread?


.