mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
fault-inject: add /proc/<pid>/fail-nth
fail-nth interface is only created in /proc/self/task/<current-tid>/. This change also adds it in /proc/<pid>/. This makes shell based tool a bit simpler. $ bash -c "builtin echo 100 > /proc/self/fail-nth && exec ls /" Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Akinobu Mita <[email protected]> Cc: Dmitry Vyukov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
1203c8e6fb
commit
168c42bc56
2 changed files with 3 additions and 1 deletions
|
|
@ -2962,6 +2962,7 @@ static const struct pid_entry tgid_base_stuff[] = {
|
|||
#endif
|
||||
#ifdef CONFIG_FAULT_INJECTION
|
||||
REG("make-it-fail", S_IRUGO|S_IWUSR, proc_fault_inject_operations),
|
||||
REG("fail-nth", 0644, proc_fail_nth_operations),
|
||||
#endif
|
||||
#ifdef CONFIG_ELF_CORE
|
||||
REG("coredump_filter", S_IRUGO|S_IWUSR, proc_coredump_filter_operations),
|
||||
|
|
|
|||
Loading…
Reference in a new issue