public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 0/5] ubi: Enhanced fault injection capability for the UBI driver
@ 2023-03-18  1:56 ZhaoLong Wang
  2023-03-18  1:56 ` [PATCH -next 1/5] ubi: Using the Fault Injection Framework to refactor the debugfs interface ZhaoLong Wang
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: ZhaoLong Wang @ 2023-03-18  1:56 UTC (permalink / raw)
  To: miquel.raynal, richard, vigneshr
  Cc: linux-mtd, linux-kernel, chengzhihao1, wangzhaolong1, yi.zhang

The existing fault injection capability of UBI is too simple.
It uses hard-coded fault probability values and lacks other
configurable options. As a result, these interfaces are difficult
to use when digging defects in the abnormal path of code and
reproducing some problems.

The kernel provides a powerful fault injection framework, which
provides rich configurable fault injection attributes during runtime.
So it can be used to improve the fault injection capability of the 
UBI driver.

This series of patches refactor the existing fault injection interface
and add some fault injection types to help testers and developers
find potential problems in the code.

ZhaoLong Wang (5):
  ubi: Using the Fault Injection Framework to refactor the debugfs
    interface
  ubi: Split io_failures into write_failure and erase_failure
  ubi: Add six fault injection type for testing
  ubi: Reserve sufficient buffer length for the input mask
  mtd: Add several functions to the fail_function list

 drivers/mtd/mtdcore.c   |   6 +-
 drivers/mtd/ubi/Kconfig |   8 ++
 drivers/mtd/ubi/debug.c | 185 +++++++++++++++++++-------------------
 drivers/mtd/ubi/debug.h | 190 ++++++++++++++++++++++++++++++++++++----
 drivers/mtd/ubi/io.c    | 101 ++++++++++++++++++---
 drivers/mtd/ubi/ubi.h   |  68 +++++---------
 6 files changed, 390 insertions(+), 168 deletions(-)

-- 
2.31.1


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-04-23 12:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-18  1:56 [PATCH 0/5] ubi: Enhanced fault injection capability for the UBI driver ZhaoLong Wang
2023-03-18  1:56 ` [PATCH -next 1/5] ubi: Using the Fault Injection Framework to refactor the debugfs interface ZhaoLong Wang
2023-03-18  1:56 ` [PATCH -next 2/5] ubi: Split io_failures into write_failure and erase_failure ZhaoLong Wang
2023-03-18  1:56 ` [PATCH -next 3/5] ubi: Add six fault injection type for testing ZhaoLong Wang
2023-03-20 14:28   ` Zhihao Cheng
2023-03-18  1:56 ` [PATCH -next 4/5] ubi: Reserve sufficient buffer length for the input mask ZhaoLong Wang
2023-03-18  1:56 ` [PATCH -next 5/5] mtd: Add several functions to the fail_function list ZhaoLong Wang
2023-04-21 21:18 ` [PATCH 0/5] ubi: Enhanced fault injection capability for the UBI driver Richard Weinberger
2023-04-23 12:54   ` ZhaoLong Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox