Revision dd48c085c1cdf9446f92826f1fd451167fb6c2fd authored by Akinobu Mita on 03 August 2011, 23:21:01 UTC, committed by Linus Torvalds on 04 August 2011, 00:25:20 UTC
init_fault_attr_dentries() is used to export fault_attr via debugfs.
But it can only export it in debugfs root directory.

Per Forlin is working on mmc_fail_request which adds support to inject
data errors after a completed host transfer in MMC subsystem.

The fault_attr for mmc_fail_request should be defined per mmc host and
export it in debugfs directory per mmc host like
/sys/kernel/debug/mmc0/mmc_fail_request.

init_fault_attr_dentries() doesn't help for mmc_fail_request.  So this
introduces fault_create_debugfs_attr() which is able to create a
directory in the arbitrary directory and replace
init_fault_attr_dentries().

[akpm@linux-foundation.org: extraneous semicolon, per Randy]
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Tested-by: Per Forlin <per.forlin@linaro.org>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Christoph Lameter <cl@linux-foundation.org>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: Matt Mackall <mpm@selenic.com>
Cc: Randy Dunlap <rdunlap@xenotime.net>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent f48d191
History
File Mode Size
Kconfig -rw-r--r-- 797 bytes
Makefile -rw-r--r-- 439 bytes
alarmtimer.c -rw-r--r-- 17.8 KB
clockevents.c -rw-r--r-- 8.5 KB
clocksource.c -rw-r--r-- 25.3 KB
jiffies.c -rw-r--r-- 3.0 KB
ntp.c -rw-r--r-- 24.1 KB
posix-clock.c -rw-r--r-- 8.3 KB
tick-broadcast.c -rw-r--r-- 15.5 KB
tick-common.c -rw-r--r-- 9.5 KB
tick-internal.h -rw-r--r-- 4.7 KB
tick-oneshot.c -rw-r--r-- 4.4 KB
tick-sched.c -rw-r--r-- 22.0 KB
timecompare.c -rw-r--r-- 4.8 KB
timeconv.c -rw-r--r-- 3.5 KB
timekeeping.c -rw-r--r-- 29.5 KB
timer_list.c -rw-r--r-- 7.5 KB
timer_stats.c -rw-r--r-- 9.9 KB

back to top