Artem B. Bityutskiy | 801c135 | 2006-06-27 12:22:22 +0400 | [diff] [blame] | 1 | comment "UBI debugging options" |
Artem B. Bityutskiy | 801c135 | 2006-06-27 12:22:22 +0400 | [diff] [blame] | 2 | |
| 3 | config MTD_UBI_DEBUG |
| 4 | bool "UBI debugging" |
| 5 | depends on SYSFS |
Artem B. Bityutskiy | 801c135 | 2006-06-27 12:22:22 +0400 | [diff] [blame] | 6 | select DEBUG_FS |
Randy Dunlap | 1deacd7 | 2010-08-12 12:10:59 -0700 | [diff] [blame] | 7 | select KALLSYMS_ALL if KALLSYMS && DEBUG_KERNEL |
Artem B. Bityutskiy | 801c135 | 2006-06-27 12:22:22 +0400 | [diff] [blame] | 8 | help |
| 9 | This option enables UBI debugging. |
| 10 | |
H Hartley Sweeten | 1dd7863 | 2010-08-19 17:28:50 -0700 | [diff] [blame] | 11 | if MTD_UBI_DEBUG |
| 12 | |
Artem B. Bityutskiy | 801c135 | 2006-06-27 12:22:22 +0400 | [diff] [blame] | 13 | config MTD_UBI_DEBUG_MSG |
| 14 | bool "UBI debugging messages" |
Artem B. Bityutskiy | 801c135 | 2006-06-27 12:22:22 +0400 | [diff] [blame] | 15 | help |
| 16 | This option enables UBI debugging messages. |
| 17 | |
| 18 | config MTD_UBI_DEBUG_PARANOID |
| 19 | bool "Extra self-checks" |
Artem B. Bityutskiy | 801c135 | 2006-06-27 12:22:22 +0400 | [diff] [blame] | 20 | help |
| 21 | This option enables extra checks in UBI code. Note this slows UBI down |
| 22 | significantly. |
| 23 | |
| 24 | config MTD_UBI_DEBUG_DISABLE_BGT |
| 25 | bool "Do not enable the UBI background thread" |
Artem B. Bityutskiy | 801c135 | 2006-06-27 12:22:22 +0400 | [diff] [blame] | 26 | help |
| 27 | This option switches the background thread off by default. The thread |
| 28 | may be also be enabled/disabled via UBI sysfs. |
| 29 | |
Artem B. Bityutskiy | 801c135 | 2006-06-27 12:22:22 +0400 | [diff] [blame] | 30 | config MTD_UBI_DEBUG_EMULATE_BITFLIPS |
| 31 | bool "Emulate flash bit-flips" |
Artem B. Bityutskiy | 801c135 | 2006-06-27 12:22:22 +0400 | [diff] [blame] | 32 | help |
| 33 | This option emulates bit-flips with probability 1/50, which in turn |
| 34 | causes scrubbing. Useful for debugging and stressing UBI. |
| 35 | |
| 36 | config MTD_UBI_DEBUG_EMULATE_WRITE_FAILURES |
| 37 | bool "Emulate flash write failures" |
Artem B. Bityutskiy | 801c135 | 2006-06-27 12:22:22 +0400 | [diff] [blame] | 38 | help |
| 39 | This option emulates write failures with probability 1/100. Useful for |
| 40 | debugging and testing how UBI handlines errors. |
| 41 | |
| 42 | config MTD_UBI_DEBUG_EMULATE_ERASE_FAILURES |
| 43 | bool "Emulate flash erase failures" |
Artem B. Bityutskiy | 801c135 | 2006-06-27 12:22:22 +0400 | [diff] [blame] | 44 | help |
| 45 | This option emulates erase failures with probability 1/100. Useful for |
| 46 | debugging and testing how UBI handlines errors. |
| 47 | |
H Hartley Sweeten | 1dd7863 | 2010-08-19 17:28:50 -0700 | [diff] [blame] | 48 | comment "Additional UBI debugging messages" |
Artem B. Bityutskiy | 801c135 | 2006-06-27 12:22:22 +0400 | [diff] [blame] | 49 | |
| 50 | config MTD_UBI_DEBUG_MSG_BLD |
| 51 | bool "Additional UBI initialization and build messages" |
Artem B. Bityutskiy | 801c135 | 2006-06-27 12:22:22 +0400 | [diff] [blame] | 52 | help |
| 53 | This option enables detailed UBI initialization and device build |
| 54 | debugging messages. |
| 55 | |
| 56 | config MTD_UBI_DEBUG_MSG_EBA |
| 57 | bool "Eraseblock association unit messages" |
Artem B. Bityutskiy | 801c135 | 2006-06-27 12:22:22 +0400 | [diff] [blame] | 58 | help |
| 59 | This option enables debugging messages from the UBI eraseblock |
| 60 | association unit. |
| 61 | |
| 62 | config MTD_UBI_DEBUG_MSG_WL |
| 63 | bool "Wear-leveling unit messages" |
Artem B. Bityutskiy | 801c135 | 2006-06-27 12:22:22 +0400 | [diff] [blame] | 64 | help |
| 65 | This option enables debugging messages from the UBI wear-leveling |
| 66 | unit. |
| 67 | |
| 68 | config MTD_UBI_DEBUG_MSG_IO |
| 69 | bool "Input/output unit messages" |
Artem B. Bityutskiy | 801c135 | 2006-06-27 12:22:22 +0400 | [diff] [blame] | 70 | help |
| 71 | This option enables debugging messages from the UBI input/output unit. |
| 72 | |
H Hartley Sweeten | 1dd7863 | 2010-08-19 17:28:50 -0700 | [diff] [blame] | 73 | endif # MTD_UBI_DEBUG |