[fault] Generalise NETDEV_DISCARD_RATE fault injection mechanism
authorMichael Brown <mcb30@ipxe.org>
Wed, 22 Jul 2015 01:56:49 +0000 (02:56 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 22 Jul 2015 20:17:47 +0000 (21:17 +0100)
commitd0325b1da64c8ff611cd4c3151e266dd2685c462
treeaa8daf27408752e2c88cba632fe8443682922b50
parent9546b0c17bfa01b7c3c0b3162187f4357c4c03d4
[fault] Generalise NETDEV_DISCARD_RATE fault injection mechanism

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>
src/config/fault.h [new file with mode: 0644]
src/config/general.h
src/core/fault.c [new file with mode: 0644]
src/include/ipxe/errfile.h
src/include/ipxe/fault.h [new file with mode: 0644]
src/net/netdevice.c