mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Zhihao Cheng <chengzhihao1@huawei.com>
To: ZhaoLong Wang <wangzhaolong1@huawei.com>,
	<miquel.raynal@bootlin.com>, <richard@nod.at>, <vigneshr@ti.com>
Cc: <linux-mtd@lists.infradead.org>, <linux-kernel@vger.kernel.org>,
	<yi.zhang@huawei.com>, <yangerkun@huawei.com>
Subject: Re: [PATCH v3 1/5] ubi: Use the fault injection framework to enhance the fault injection capability
Date: Fri, 20 Oct 2023 16:55:33 +0800	[thread overview]
Message-ID: <e6e151fc-3515-8b21-e7b0-cc3d9148a696@huawei.com> (raw)
In-Reply-To: <20231020064803.643399-2-wangzhaolong1@huawei.com>

在 2023/10/20 14:47, ZhaoLong Wang 写道:
> To make debug parameters configurable at run time, use the
> fault injection framework to reconstruct the debugfs interface,
> and retain the legacy fault injection interface.
> 
> Now, the file emulate_failures and fault_attr files control whether
> to enable fault emmulation.
> 
> The file emulate_failures receives a mask that controls type and
> process of fault injection. Generally, for ease of use, you can
> directly enter a mask with all 1s.
> 
> echo 0xffff > /sys/kernel/debug/ubi/ubi0/emulate_failures
> 
> And you need to configure other fault-injection capabilities for
> testing purpose:
> 
> echo 100 > /sys/kernel/debug/ubi/fault_inject/emulate_power_cut/probability
> echo 15 > /sys/kernel/debug/ubi/fault_inject/emulate_power_cut/space
> echo 2 > /sys/kernel/debug/ubi/fault_inject/emulate_power_cut/verbose
> echo -1 > /sys/kernel/debug/ubi/fault_inject/emulate_power_cut/times
> 
> The CONFIG_MTD_UBI_FAULT_INJECTION to enable the Fault Injection is
> added to kconfig.
> 
> Signed-off-by: ZhaoLong Wang <wangzhaolong1@huawei.com>


Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com>

  reply	other threads:[~2023-10-20  8:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-20  6:47 [PATCH v3 0/5] ubi: Enhanced fault injection capability for the UBI driver ZhaoLong Wang
2023-10-20  6:47 ` [PATCH v3 1/5] ubi: Use the fault injection framework to enhance the fault injection capability ZhaoLong Wang
2023-10-20  8:55   ` Zhihao Cheng [this message]
2023-10-20  6:48 ` [PATCH v3 2/5] ubi: Split io_failures into write_failure and erase_failure ZhaoLong Wang
2023-10-20  6:48 ` [PATCH v3 3/5] ubi: Add six fault injection type for testing ZhaoLong Wang
2023-10-20  9:09   ` Zhihao Cheng
2023-10-20  6:48 ` [PATCH v3 4/5] ubi: Reserve sufficient buffer length for the input mask ZhaoLong Wang
2023-10-20  6:48 ` [PATCH v3 5/5] mtd: Add several functions to the fail_function list ZhaoLong Wang
2023-10-20  9:11   ` Zhihao Cheng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e6e151fc-3515-8b21-e7b0-cc3d9148a696@huawei.com \
    --to=chengzhihao1@huawei.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=miquel.raynal@bootlin.com \
    --cc=richard@nod.at \
    --cc=vigneshr@ti.com \
    --cc=wangzhaolong1@huawei.com \
    --cc=yangerkun@huawei.com \
    --cc=yi.zhang@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®