Kconfig.debug 2.4 KB

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