How to debug YAFFS?

I would like to include any debugging tool available in YAFFS. I hope this helps me debug the problem that occurs when using Flash. Are there any configs in the linux kernel that will help me debug YAFFS? Thanks in advance.

+4
source share
1 answer

According to the documentation:

Yaffs has many built-in traces that help debug and integrate. tracing is controlled by the yaffs_traceMask bitmask, which allows for various trace sets that must be disabled or enabled at run time.

Trace bits are specified in the yaffs_trace.h file.

The trace mechanism was also captured to provide mask control for additional verification code when the trace is YAFFS_TRACE_VERIFYxxx bit.

The trace mechanism is easily integrated into the system through printf-like statements. Tracing is done through macros that allow strings to be converted to unicode or similar, if necessary.

It can be manipulated at run time through the proc or sysfs interface, for example:

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. 

For more details see: http://www.yaffs.net/yaffs-tuning-and-configuration#Tracing_mechanism

+2
source

Source: https://habr.com/ru/post/1441236/


All Articles