摘要: export ARCH=armexport CROSS_COMPILE=armv7a-cros-linux-gnueabi-/* make menuconfig, make oldconfig, make xxx_defconfig */make uImagemake modulesDESTDIR=./modules_install make modules_install INSTALL_MOD_PATH=./modules_install 阅读全文
posted @ 2012-03-26 17:43 super119 阅读(307) 评论(0) 推荐(0)
摘要: Probably the most powerful tracer derived from Ftrace is the function tracer. It has the ability to trace practically every function in the kernel. It can be run not just for debugging or analyzing, but also to learn and observe the flow of the Linux kernel.Two previous articles, Debugging the Linu. 阅读全文
posted @ 2012-03-26 17:17 super119 阅读(857) 评论(0) 推荐(0)
摘要: 来自:http://lwn.net/Articles/365835/Ftrace是很棒的kernel debug工具,相比使用printk或其他打印message的方法,ftrace有更强大的debug功能。其他不说,由于printk的执行时间是毫秒级别的,所以printk的加入会导致一些并发行的bug很难重现。而ftrace使用的是ringbuffer,所以时间是微秒级的,这就已经是一个很明显的优势了。还有包括kernel panic/oops的时候可以将trace dump出来等。具体见下文,一共三个part。Ftrace is a tracing utility built direc. 阅读全文
posted @ 2012-03-26 17:16 super119 阅读(623) 评论(0) 推荐(0)
摘要: The Ftrace tracing utility has many different features that will assist in tracking down Linux kernel problems. The previous article discussed setting up Ftrace, using the function and function graph tracers, using trace_printk(), and a simple way to stop the recording of a trace from user space. T. 阅读全文
posted @ 2012-03-26 17:16 super119 阅读(454) 评论(0) 推荐(0)