单个c文件产生的log
test1
adb root
adb shell "echo -n 'file mdss_dsi_panel.c +p' > /sys/kernel/debug/dynamic_debug/control"
cat /proc/kmsg
cat /dev/kmsg |grep mdss_dsi_panel_bklt_dcs
test2
adb wait-for-devices root && adb wait-for-devices remount
adb shell
echo -n 'file mdss_fb.c +p' > d/dynamic_debug/control
cat /proc/kmsg
cat /dev/kmsg |grep mdss_fb_scale_bl
常用脚本
adb wait-for-device & adb shell dmesg > dmesg.txt
adb wait-for-device & adb shell logcat > logcat.txt
adb wait-for-device & adb shell "logcat -b kernel" >kernel.txt
adb shell logcat -v time > d:/logcat.txt
pause
实时不断log
cat /dev/kmsg |grep wuchengbing
实时会断log
adb shell cat proc/kmsg
导出logcat.bat
adb shell logcat -v time > d:/logcat.txt
pause
导出qsee.log.bat
adb shell cat /sys/kernel/debug/tzdbg/qsee_log > qsee.log
pause
QXDM
DUMP
DUMP抓取注意事项
抓dump要提供详细的版本号包含日期时间或者提供对应版本的vmlinux文件
T卡LOG
*#87# -> 手动测试 -> T卡LOG。
方法1。本次开启log,重启后不开启
方法2:一直开启LOG,重启也会开启
方法3:关闭,下次重启不开启。
放到外置T卡,拷贝出来。
adb pull /sdcard/log/ d:\log\
用批处理bat获取log
adb devices
@echo "logs"
adb pull /mnt/sdcard/logs logs
adb pull /mnt/sdcard/log logs
adb pull /data/anr logs/anr
adb pull /data/aee_exp logs/data_aee_exp
adb pull /data/core logs/data_core
adb pull /data/tombstones logs/tombstones
adb shell ps > logs/ps.txt
adb shell dumpstate > logs/dumpstate.txt
adb shell dumpsys > logs/dumpsys.txt
adb shell top -t -d 2 -n 5 > logs/top.txt
adb shell service list > logs/serviceList.txt
adb bugreport > logs/bugreport.txt
adb pull sdcard/log d:\log
@echo "done"
pause
音频抓Log方法
请将Daig.cfg文件push到system/etc下面,*20121220# ,选择Kernel,logcat 和QXDM log,log级别如下图所示,抓取离线日志,寄存器信息需要实时dump.
每次测试完如果问题不出现,请清理这次log,复现一次问题提取一次。
Wu_Being博客声明:本人博客欢迎转载,请标明博客原文和原链接!谢谢!
《抓log的各种方法和命令》: http://blog.csdn.net/u014134180/article/details/78120331
如果你看完这篇博文,觉得对你有帮助,并且愿意付赞助费,那么我会更有动力写下去。
时间: 2024-09-09 10:00:57