|
From: corentin.labbe <cor...@ge...> - 2012-08-01 15:21:38
Attachments:
failgrind.patch
|
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 |
|
From: corentin.labbe <cor...@ge...> - 2012-08-16 05:59:44
Attachments:
failgrind-16082012.patch
|
Le 01/08/2012 17:21, corentin.labbe a écrit : > 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 > > Hello I have attached an updated patch for failgrind. Failgrind now support theses options: --failfunc for selecting which functions may fail. Example: --failfunc=malloc,open --failclass for selecting a whole class of functions which may fail. Example --failclass=1 for failing open,read,write LABBE Corentin |