我想打开YAFFS中可用的任何调试工具。我希望它可以帮助我调试使用闪存时出现的问题。
Linux内核中是否有任何配置可以帮助我调试YAFFS?
提前致谢。

最佳答案

根据文档,有:



可以在运行时通过proc或sysfs接口(interface)对其进行操作,例如:

cat +os > /proc/yaffs # Enables YAFFS_TRACE_OS
cat -all+gc > /proc/yaffs # Disables everything then enable YAFFS_TRACE_GC
cat 0xf000 > /proc/yaffs # Set trace mask to specified bitmask.

有关详细信息,请参见:http://www.yaffs.net/yaffs-tuning-and-configuration#Tracing_mechanism

10-04 12:29