Kconfig.debug 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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_USERSPACE_IO
  32. bool "Direct user-space write/erase support"
  33. default n
  34. depends on MTD_UBI_DEBUG
  35. help
  36. By default, users cannot directly write and erase individual
  37. eraseblocks of dynamic volumes, and have to use update operation
  38. instead. This option enables this capability - it is very useful for
  39. debugging and testing.
  40. config MTD_UBI_DEBUG_EMULATE_BITFLIPS
  41. bool "Emulate flash bit-flips"
  42. depends on MTD_UBI_DEBUG
  43. default n
  44. help
  45. This option emulates bit-flips with probability 1/50, which in turn
  46. causes scrubbing. Useful for debugging and stressing UBI.
  47. config MTD_UBI_DEBUG_EMULATE_WRITE_FAILURES
  48. bool "Emulate flash write failures"
  49. depends on MTD_UBI_DEBUG
  50. default n
  51. help
  52. This option emulates write failures with probability 1/100. Useful for
  53. debugging and testing how UBI handlines errors.
  54. config MTD_UBI_DEBUG_EMULATE_ERASE_FAILURES
  55. bool "Emulate flash erase failures"
  56. depends on MTD_UBI_DEBUG
  57. default n
  58. help
  59. This option emulates erase failures with probability 1/100. Useful for
  60. debugging and testing how UBI handlines errors.
  61. menu "Additional UBI debugging messages"
  62. depends on MTD_UBI_DEBUG
  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. config MTD_UBI_DEBUG_MSG_EBA
  71. bool "Eraseblock association unit messages"
  72. default n
  73. depends on MTD_UBI_DEBUG
  74. help
  75. This option enables debugging messages from the UBI eraseblock
  76. association unit.
  77. config MTD_UBI_DEBUG_MSG_WL
  78. bool "Wear-leveling unit messages"
  79. default n
  80. depends on MTD_UBI_DEBUG
  81. help
  82. This option enables debugging messages from the UBI wear-leveling
  83. unit.
  84. config MTD_UBI_DEBUG_MSG_IO
  85. bool "Input/output unit messages"
  86. default n
  87. depends on MTD_UBI_DEBUG
  88. help
  89. This option enables debugging messages from the UBI input/output unit.
  90. endmenu # UBI debugging messages