summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_fail.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC r318476, r318478:markj2017-05-251-1/+1
| | | | Fix up some kern_yield() usages.
* Fix some cosmetic issues in kern_fail.c omitted from r296927.markj2016-06-091-15/+11
| | | | Obtained from: Matthew Bryan <matthew.bryan@isilon.com>
* fail(9): Only gather/print stacks if STACK is enabledcem2016-03-171-0/+6
| | | | | | | This is a follow-up fix to the earlier r296927. Reported by: bz Sponsored by: EMC / Isilon Storage Division
* fail(9): Upstreaming some fail point enhancementscem2016-03-161-133/+643
| | | | | | | | | | | | | | | | | | | | | This is several year's worth of fail point upgrades done at EMC Isilon. They are interdependent enough that it makes sense to put a single diff up for them. Primarily, we added: - Changing all mainline execution paths to be lockless, which lets us use fail points in more sleep-sensitive areas, and allows more parallel execution - A number of additional commands, including 'pause' that lets us do some interesting deterministic repros of race conditions - The ability to dump the stacks of all threads sleeping on a fail point - A number of other API changes to allow marking up the fail point's context in the code, and firing callbacks before and after execution - A man page update Submitted by: Matthew Bryan <matthew.bryan@isilon.com> Reviewed by: cem (earlier version), jhb, kib, pho With feedback from: bdrewery Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D5427
* Use a regular sbuf + SYSCTL_OUT() rather than sbuf_new_for_sysctl() withian2015-03-161-1/+3
| | | | | | | auto-draining, to avoid a potential copyout fault while holding a lock. Pointed out by: jhb Pointy hat to: ian
* Use sbuf_new_for_sysctl() instead of plain sbuf_new() to ensure sysctlian2015-03-141-3/+2
| | | | | | string returned to userland is nulterminated. PR: 195668
* Mark MALLOC_DEFINEs static that have no corresponding MALLOC_DECLAREs.ed2011-11-071-1/+1
| | | | This means that their use is restricted to a single C file.
* Add an option to have a fail point term only execute when run by amdf2011-07-081-1/+19
| | | | | | | specified pid. This is helpful for automated testing involving a global knob that would otherwise be executed by many other threads. MFC after: 1 week
* style(9) and cleanup fixes.mdf2011-07-081-80/+69
| | | | MFC after: 1 week
* Initialize fp_location for explicitly managed fail points, and pushmdf2010-12-211-2/+3
| | | | | | | | | | | | | | | the parentheses around the location for simple fail points into the location string. This makes the print on fail point set more consistent between the two versions. Also fix up fail.h a little for style(9): only use one of sys/param.h and sys/types.h, and use the existing __XSTRING() macro instead of rolling our own. Also fix up a few tabs on changed and nearby lines. Lastly, since KFAIL_POINT_{BEGIN,END} are not meant for use outside this file, just eliminate the macros entirely. MFC after: 1 week
* Move the fail_point_entry definition from fail.h to kern_fail.c, whichmdf2010-12-211-9/+37
| | | | | | | allows putting the enumeration constants of fail point types with the text string that matches them. MFC after: 1 week
* Remove extraneous semicolons, no functional changes.mbr2010-01-071-2/+2
| | | | | Submitted by: Marc Balmer <marc@msys.ch> MFC after: 1 week
* fail(9) support:zml2009-05-271-0/+575
Add support for kernel fault injection using KFAIL_POINT_* macros and fail_point_* infrastructure. Add example fail point in vfs_bio.c to simulate VM buf pressure. Approved by: dfr (mentor)
OpenPOWER on IntegriCloud