|  | 
|  | 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 | 
|  | 9 | +	select KALLSYMS_ALL | 
|  | 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 | + | 
|  | 36 | +config MTD_UBI_DEBUG_USERSPACE_IO | 
|  | 37 | +	bool "Direct user-space write/erase support" | 
|  | 38 | +	default n | 
|  | 39 | +	depends on MTD_UBI_DEBUG | 
|  | 40 | +	help | 
|  | 41 | +	  By default, users cannot directly write and erase individual | 
|  | 42 | +	  eraseblocks of dynamic volumes, and have to use update operation | 
|  | 43 | +	  instead. This option enables this capability - it is very useful for | 
|  | 44 | +	  debugging and testing. | 
|  | 45 | + | 
|  | 46 | +config MTD_UBI_DEBUG_EMULATE_BITFLIPS | 
|  | 47 | +	bool "Emulate flash bit-flips" | 
|  | 48 | +	depends on MTD_UBI_DEBUG | 
|  | 49 | +	default n | 
|  | 50 | +	help | 
|  | 51 | +	  This option emulates bit-flips with probability 1/50, which in turn | 
|  | 52 | +	  causes scrubbing. Useful for debugging and stressing UBI. | 
|  | 53 | + | 
|  | 54 | +config MTD_UBI_DEBUG_EMULATE_WRITE_FAILURES | 
|  | 55 | +	bool "Emulate flash write failures" | 
|  | 56 | +	depends on MTD_UBI_DEBUG | 
|  | 57 | +	default n | 
|  | 58 | +	help | 
|  | 59 | +	  This option emulates write failures with probability 1/100. Useful for | 
|  | 60 | +	  debugging and testing how UBI handlines errors. | 
|  | 61 | + | 
|  | 62 | +config MTD_UBI_DEBUG_EMULATE_ERASE_FAILURES | 
|  | 63 | +	bool "Emulate flash erase failures" | 
|  | 64 | +	depends on MTD_UBI_DEBUG | 
|  | 65 | +	default n | 
|  | 66 | +	help | 
|  | 67 | +	  This option emulates erase failures with probability 1/100. Useful for | 
|  | 68 | +	  debugging and testing how UBI handlines errors. | 
|  | 69 | + | 
|  | 70 | +menu "Additional UBI debugging messages" | 
|  | 71 | +	depends on MTD_UBI_DEBUG | 
|  | 72 | + | 
|  | 73 | +config MTD_UBI_DEBUG_MSG_BLD | 
|  | 74 | +	bool "Additional UBI initialization and build messages" | 
|  | 75 | +	default n | 
|  | 76 | +	depends on MTD_UBI_DEBUG | 
|  | 77 | +	help | 
|  | 78 | +	  This option enables detailed UBI initialization and device build | 
|  | 79 | +	  debugging messages. | 
|  | 80 | + | 
|  | 81 | +config MTD_UBI_DEBUG_MSG_EBA | 
|  | 82 | +	bool "Eraseblock association unit messages" | 
|  | 83 | +	default n | 
|  | 84 | +	depends on MTD_UBI_DEBUG | 
|  | 85 | +	help | 
|  | 86 | +	  This option enables debugging messages from the UBI eraseblock | 
|  | 87 | +	  association unit. | 
|  | 88 | + | 
|  | 89 | +config MTD_UBI_DEBUG_MSG_WL | 
|  | 90 | +	bool "Wear-leveling unit messages" | 
|  | 91 | +	default n | 
|  | 92 | +	depends on MTD_UBI_DEBUG | 
|  | 93 | +	help | 
|  | 94 | +	  This option enables debugging messages from the UBI wear-leveling | 
|  | 95 | +	  unit. | 
|  | 96 | + | 
|  | 97 | +config MTD_UBI_DEBUG_MSG_IO | 
|  | 98 | +	bool "Input/output unit messages" | 
|  | 99 | +	default n | 
|  | 100 | +	depends on MTD_UBI_DEBUG | 
|  | 101 | +	help | 
|  | 102 | +	  This option enables debugging messages from the UBI input/output unit. | 
|  | 103 | + | 
|  | 104 | +endmenu # UBI debugging messages | 
0 commit comments