Re: strace and kernel functions!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi..


>           Is there any too (like strace) to trace the flow of calls into the
> kernel. It would be immensely useful if there is any such function like
> that.
> Please let me know if there is such tool if any ??

None that I know. But I usually do this as workaround: by using qemu.
Start qemu and activate its gdb server. before that, prepare a kernel
image that is compiled with debug info included and frame pointer
included.

Then start qemu with this kernel. Start another console/xterm/whatever
and execute gdb. Give the path to kernel image so it acts as symbol
file. Then tell gdb to connect to qemu's gdb port. put a breakpoint in
a function and do "bt". You may need to apply non mainline qemu
patches to make it run "linearly" to make debugging easier.

regards,

Mulyadi

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux