Home
last modified time | relevance | path

Searched refs:fail_nth (Results 1 – 5 of 5) sorted by relevance

/openbmc/linux/lib/
H A Dfault-inject.c108 unsigned int fail_nth = READ_ONCE(current->fail_nth); in should_fail_ex() local
110 if (fail_nth) { in should_fail_ex()
115 fail_nth--; in should_fail_ex()
116 WRITE_ONCE(current->fail_nth, fail_nth); in should_fail_ex()
117 if (!fail_nth) in should_fail_ex()
/openbmc/linux/Documentation/fault-injection/
H A Dfault-injection.rst510 int i, err, res, fail_nth, fds[2];
515 fail_nth = open(buf, O_RDWR);
518 write(fail_nth, buf, strlen(buf));
521 pread(fail_nth, buf, sizeof(buf), 0);
/openbmc/linux/include/linux/
H A Dsched.h1339 unsigned int fail_nth; member
/openbmc/linux/fs/proc/
H A Dbase.c1407 task->fail_nth = n; in proc_fail_nth_write()
1423 len = snprintf(numbuf, sizeof(numbuf), "%u\n", task->fail_nth); in proc_fail_nth_read()
/openbmc/linux/kernel/
H A Dfork.c1174 tsk->fail_nth = 0; in dup_task_struct()