大家来一起来说说你常用的嵌入式linux调试工具

57 views
Skip to first unread message

杨可亲

unread,
Nov 6, 2012, 10:19:49 AM11/6/12
to sh...@googlegroups.com, hz...@googlegroups.com, linux...@googlegroups.com, sz...@googlegroups.com
各位大大们,不说x86平台丰富强大的各种调试工具了,那些很难在嵌入式linux上跑起来。
那么在嵌入式平台做内核开发,应用程序开发也好,大家都怎么调试代码,怎么解决bug的呢?我现在基本上只用printk,printf,别的先进玩意儿没用过,不知大家有什么好的工具和经验,拿出来分享下吧?

Grissiom

unread,
Nov 6, 2012, 10:42:55 AM11/6/12
to sh...@googlegroups.com
gdb……


On Tuesday, November 6, 2012, 杨可亲 wrote:
各位大大们,不说x86平台丰富强大的各种调试工具了,那些很难在嵌入式linux上跑起来。
那么在嵌入式平台做内核开发,应用程序开发也好,大家都怎么调试代码,怎么解决bug的呢?我现在基本上只用printk,printf,别的先进玩意儿没用过,不知大家有什么好的工具和经验,拿出来分享下吧?

--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
 
 


--
Cheers,
Grissiom

杨可亲

unread,
Nov 6, 2012, 10:56:21 AM11/6/12
to sh...@googlegroups.com

gdb在嵌入式上好用吗

wang jl

unread,
Nov 6, 2012, 7:00:12 PM11/6/12
to sh...@googlegroups.com

准确的说是gdbserver

Barry Song

unread,
Nov 6, 2012, 7:00:22 PM11/6/12
to sh...@googlegroups.com, hz...@googlegroups.com, linux...@googlegroups.com, sz...@googlegroups.com
内核用printk,dev_xx, pr_xx,BUG/BUG_ON(), WARN()/WARN_ON(), oops,proc,sysfs和DS-5。
应用用gdbserver/gdb,strace,core
dump等。分析系统用top,iostat,smem,oprofile,LTTng,bootchart,powertop,latencytop等。benchmark用lmbencha,iozone,netperf,sysbench等。
总之linux的分析工具是很全的。

--------------------------------
新浪weibo @宋宝华Barry

SuperCat

unread,
Nov 6, 2012, 9:29:03 PM11/6/12
to sh...@googlegroups.com
QEMU的终端自带gdb,调试一些和硬件没有直接关系的驱动啥的还是很有用的

2012/11/7 Barry Song <21c...@gmail.com>

catch

unread,
Nov 7, 2012, 10:39:26 PM11/7/12
to sh...@googlegroups.com
gadserver,
printf

分析工具:
top
感觉挺好用的,其他的用的不多。

在 2012年11月7日星期三UTC+8上午10时29分09秒,毒島裕也写道:

David pulq

unread,
Nov 8, 2012, 1:44:31 AM11/8/12
to sh...@googlegroups.com
ftrace, perf

杨可亲

unread,
Nov 18, 2012, 9:54:50 AM11/18/12
to sh...@googlegroups.com
这个的确很不错,gdbserver可以动态调试
Reply all
Reply to author
Forward
0 new messages