fault-inject: allow configuration via configfs
authorAkinobu Mita <akinobu.mita@gmail.com>
Mon, 27 Mar 2023 14:37:32 +0000 (23:37 +0900)
committerJens Axboe <axboe@kernel.dk>
Thu, 13 Apr 2023 13:38:54 +0000 (07:38 -0600)
commit4668c7a2940d134bea50058e138591b97485c5da
treed799f0eb3f7c5a55c27e461be08a368bf20a11fd
parent4d5bba5bee0aa002523125e51789e95d47794a06
fault-inject: allow configuration via configfs

This provides a helper function to allow configuration of fault-injection
for configfs-based drivers.

The config items created by this function have the same interface as the
one created under debugfs by fault_create_debugfs_attr().

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Link: https://lore.kernel.org/r/20230327143733.14599-2-akinobu.mita@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/fault-inject.h
lib/Kconfig.debug
lib/fault-inject.c