|
From: corentin.labbe <cor...@ge...> - 2012-08-01 15:21:38
|
Hello I was searching a fault injector tool, for faulting malloc, file operation syscall, networks operation syscall etc... I have found an old try on the valgrind mailing list in June 2008 but it seems to not have changed since this time. So I have tried to update this project and I have attached my patch to add FailGrind to the valgrind project. This first try is based on the none tool and I have implemented only to fail malloc, open, read, write, fopen, socket and bind functions. Only one parameter is supported for the moment, the percentage of functions fail. Example: valgrind --tool=failgrind --percent=90 ls This command will launch ls and each function call have 90% chance to fail. In the future I wish to add an option to choose which list of syscall to fail and an option to do a "peace-time" before begining to fail functions. Any comments would be appreciated. Thanks for all people of #valgrind-dev for their help. LABBE Corentin |