From: Nicholas N. <nj...@cs...> - 2007-10-31 21:46:52
|
On Wed, 31 Oct 2007, Andy Juniper wrote: > I am writing/debugging an application where no IO should block - i.e. > all sockets etc. are (I believe) in non blocking mode. This can be > difficult to be certain of when using various libraries. > > I'd like to prove that none of my processes/threads are blocking and > report a backtrace if they are. Is it possible to do this with Valgrind? None of the existing tools can do this. It might be possible to write a new tool that does it, but I'm not sure. If it is possible, the tool itself probably would be simple, although writing it wouldn't necessarily be simple if you don't know how Valgrind's internals work. Nick |