Kconfig.debug 2.0 KB

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