blob: fad4adc0fe2c07dcac9ce3725ac202b1f314d372 [file] [log] [blame]
Artem B. Bityutskiy801c1352006-06-27 12:22:22 +04001comment "UBI debugging options"
Artem B. Bityutskiy801c1352006-06-27 12:22:22 +04002
3config MTD_UBI_DEBUG
4 bool "UBI debugging"
5 depends on SYSFS
Artem B. Bityutskiy801c1352006-06-27 12:22:22 +04006 select DEBUG_FS
Randy Dunlap1deacd72010-08-12 12:10:59 -07007 select KALLSYMS_ALL if KALLSYMS && DEBUG_KERNEL
Artem B. Bityutskiy801c1352006-06-27 12:22:22 +04008 help
9 This option enables UBI debugging.
10
H Hartley Sweeten1dd78632010-08-19 17:28:50 -070011if MTD_UBI_DEBUG
12
Artem B. Bityutskiy801c1352006-06-27 12:22:22 +040013config MTD_UBI_DEBUG_MSG
14 bool "UBI debugging messages"
Artem B. Bityutskiy801c1352006-06-27 12:22:22 +040015 help
16 This option enables UBI debugging messages.
17
18config MTD_UBI_DEBUG_PARANOID
19 bool "Extra self-checks"
Artem B. Bityutskiy801c1352006-06-27 12:22:22 +040020 help
21 This option enables extra checks in UBI code. Note this slows UBI down
22 significantly.
23
24config MTD_UBI_DEBUG_DISABLE_BGT
25 bool "Do not enable the UBI background thread"
Artem B. Bityutskiy801c1352006-06-27 12:22:22 +040026 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. Bityutskiy801c1352006-06-27 12:22:22 +040030config MTD_UBI_DEBUG_EMULATE_BITFLIPS
31 bool "Emulate flash bit-flips"
Artem B. Bityutskiy801c1352006-06-27 12:22:22 +040032 help
33 This option emulates bit-flips with probability 1/50, which in turn
34 causes scrubbing. Useful for debugging and stressing UBI.
35
36config MTD_UBI_DEBUG_EMULATE_WRITE_FAILURES
37 bool "Emulate flash write failures"
Artem B. Bityutskiy801c1352006-06-27 12:22:22 +040038 help
39 This option emulates write failures with probability 1/100. Useful for
40 debugging and testing how UBI handlines errors.
41
42config MTD_UBI_DEBUG_EMULATE_ERASE_FAILURES
43 bool "Emulate flash erase failures"
Artem B. Bityutskiy801c1352006-06-27 12:22:22 +040044 help
45 This option emulates erase failures with probability 1/100. Useful for
46 debugging and testing how UBI handlines errors.
47
H Hartley Sweeten1dd78632010-08-19 17:28:50 -070048comment "Additional UBI debugging messages"
Artem B. Bityutskiy801c1352006-06-27 12:22:22 +040049
50config MTD_UBI_DEBUG_MSG_BLD
51 bool "Additional UBI initialization and build messages"
Artem B. Bityutskiy801c1352006-06-27 12:22:22 +040052 help
53 This option enables detailed UBI initialization and device build
54 debugging messages.
55
56config MTD_UBI_DEBUG_MSG_EBA
57 bool "Eraseblock association unit messages"
Artem B. Bityutskiy801c1352006-06-27 12:22:22 +040058 help
59 This option enables debugging messages from the UBI eraseblock
60 association unit.
61
62config MTD_UBI_DEBUG_MSG_WL
63 bool "Wear-leveling unit messages"
Artem B. Bityutskiy801c1352006-06-27 12:22:22 +040064 help
65 This option enables debugging messages from the UBI wear-leveling
66 unit.
67
68config MTD_UBI_DEBUG_MSG_IO
69 bool "Input/output unit messages"
Artem B. Bityutskiy801c1352006-06-27 12:22:22 +040070 help
71 This option enables debugging messages from the UBI input/output unit.
72
H Hartley Sweeten1dd78632010-08-19 17:28:50 -070073endif # MTD_UBI_DEBUG