Kconfig.debug 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  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_DISABLE_BGT
  11. bool "Do not enable the UBI background thread"
  12. help
  13. This option switches the background thread off by default. The thread
  14. may be also be enabled/disabled via UBI sysfs.
  15. config MTD_UBI_DEBUG_EMULATE_BITFLIPS
  16. bool "Emulate flash bit-flips"
  17. help
  18. This option emulates bit-flips with probability 1/50, which in turn
  19. causes scrubbing. Useful for debugging and stressing UBI.
  20. config MTD_UBI_DEBUG_EMULATE_WRITE_FAILURES
  21. bool "Emulate flash write failures"
  22. help
  23. This option emulates write failures with probability 1/100. Useful for
  24. debugging and testing how UBI handlines errors.
  25. config MTD_UBI_DEBUG_EMULATE_ERASE_FAILURES
  26. bool "Emulate flash erase failures"
  27. help
  28. This option emulates erase failures with probability 1/100. Useful for
  29. debugging and testing how UBI handlines errors.
  30. endif # MTD_UBI_DEBUG