]>
Commit | Line | Data |
---|---|---|
801c135c AB |
1 | comment "UBI debugging options" |
2 | depends on MTD_UBI | |
3 | ||
4 | config MTD_UBI_DEBUG | |
5 | bool "UBI debugging" | |
6 | depends on SYSFS | |
7 | depends on MTD_UBI | |
8 | select DEBUG_FS | |
1deacd7a | 9 | select KALLSYMS_ALL if KALLSYMS && DEBUG_KERNEL |
801c135c AB |
10 | help |
11 | This option enables UBI debugging. | |
12 | ||
13 | config MTD_UBI_DEBUG_MSG | |
14 | bool "UBI debugging messages" | |
15 | depends on MTD_UBI_DEBUG | |
16 | default n | |
17 | help | |
18 | This option enables UBI debugging messages. | |
19 | ||
20 | config MTD_UBI_DEBUG_PARANOID | |
21 | bool "Extra self-checks" | |
22 | default n | |
23 | depends on MTD_UBI_DEBUG | |
24 | help | |
25 | This option enables extra checks in UBI code. Note this slows UBI down | |
26 | significantly. | |
27 | ||
28 | config MTD_UBI_DEBUG_DISABLE_BGT | |
29 | bool "Do not enable the UBI background thread" | |
30 | depends on MTD_UBI_DEBUG | |
31 | default n | |
32 | help | |
33 | This option switches the background thread off by default. The thread | |
34 | may be also be enabled/disabled via UBI sysfs. | |
35 | ||
801c135c AB |
36 | config MTD_UBI_DEBUG_EMULATE_BITFLIPS |
37 | bool "Emulate flash bit-flips" | |
38 | depends on MTD_UBI_DEBUG | |
39 | default n | |
40 | help | |
41 | This option emulates bit-flips with probability 1/50, which in turn | |
42 | causes scrubbing. Useful for debugging and stressing UBI. | |
43 | ||
44 | config MTD_UBI_DEBUG_EMULATE_WRITE_FAILURES | |
45 | bool "Emulate flash write failures" | |
46 | depends on MTD_UBI_DEBUG | |
47 | default n | |
48 | help | |
49 | This option emulates write failures with probability 1/100. Useful for | |
50 | debugging and testing how UBI handlines errors. | |
51 | ||
52 | config MTD_UBI_DEBUG_EMULATE_ERASE_FAILURES | |
53 | bool "Emulate flash erase failures" | |
54 | depends on MTD_UBI_DEBUG | |
55 | default n | |
56 | help | |
57 | This option emulates erase failures with probability 1/100. Useful for | |
58 | debugging and testing how UBI handlines errors. | |
59 | ||
60 | menu "Additional UBI debugging messages" | |
61 | depends on MTD_UBI_DEBUG | |
62 | ||
63 | config MTD_UBI_DEBUG_MSG_BLD | |
64 | bool "Additional UBI initialization and build messages" | |
65 | default n | |
66 | depends on MTD_UBI_DEBUG | |
67 | help | |
68 | This option enables detailed UBI initialization and device build | |
69 | debugging messages. | |
70 | ||
71 | config MTD_UBI_DEBUG_MSG_EBA | |
72 | bool "Eraseblock association unit messages" | |
73 | default n | |
74 | depends on MTD_UBI_DEBUG | |
75 | help | |
76 | This option enables debugging messages from the UBI eraseblock | |
77 | association unit. | |
78 | ||
79 | config MTD_UBI_DEBUG_MSG_WL | |
80 | bool "Wear-leveling unit messages" | |
81 | default n | |
82 | depends on MTD_UBI_DEBUG | |
83 | help | |
84 | This option enables debugging messages from the UBI wear-leveling | |
85 | unit. | |
86 | ||
87 | config MTD_UBI_DEBUG_MSG_IO | |
88 | bool "Input/output unit messages" | |
89 | default n | |
90 | depends on MTD_UBI_DEBUG | |
91 | help | |
92 | This option enables debugging messages from the UBI input/output unit. | |
93 | ||
94 | endmenu # UBI debugging messages |