summaryrefslogtreecommitdiffstats
path: root/src/core/fault.c
Commit message (Collapse)AuthorAgeFilesLines
* [fault] Add inject_corruption() to randomly corrupt dataMichael Brown2015-07-221-0/+29
| | | | | | | Provide an inject_corruption() function that can be used to randomly corrupt data bytes with configurable probabilities. Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [fault] Generalise NETDEV_DISCARD_RATE fault injection mechanismMichael Brown2015-07-221-0/+53
Provide a generic inject_fault() function that can be used to inject random faults with configurable probabilities. Signed-off-by: Michael Brown <mcb30@ipxe.org>