Re: Kernel backtrace possiblities



I'm using 2.4.18 kernel.

You want a trace on the kernel part or user part? For kernel part, the
back trace you can find in
arch/i386/kernel/traps.c, but for user space part, a glibc API
backtrace() is provided, but not very powerful, the gdb can help do
the backtrace much better.

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?

BRs,
Markus

.



Relevant Pages

  • Re: Repeated panics...Suspect USB issues
    ... > I'm trying to get a backtrace. ... I've built a kernel with all the right bits, ... > obtain a trace, panic the machine, etc...But I don't think I can obtain a good ... Josh Tolbert ...
    (freebsd-stable)
  • Re: Sony V505BX ATA panic
    ... page fault while in kernel mode ... > db> trace ... I reported a similar crash several days ago. ... My backtrace is different, I get the same "Memory modified after ...
    (freebsd-current)
  • Re: Kernel backtrace possiblities
    ... Does anyone know of some good ways to get kernel ... You want a trace on the kernel part or user part? ... arch/i386/kernel/traps.c, but for user space part, a glibc API ... backtrace() is provided, but not very powerful, the gdb can help do ...
    (comp.os.linux.development.system)
  • LTTng finds abnormally long APIC interrupt handler : 58.2 ms
    ... A trace taken with LTTng on a x86_64 dual quad-core, Linux kernel ... # Input Device Drivers ...
    (Linux-Kernel)
  • Re: [PATCH 2/6] tracing: increase size of number of possible events
    ... unable to handle kernel NULL pointer dereference at 0000006f ... Initializing cgroup subsys cpuset ... CPU: Trace cache: 12K uops, ... # Device Drivers ...
    (Linux-Kernel)