On Thu, Feb 21, 2008 at 6:38 PM, Vince Weaver <[EMAIL PROTECTED]> wrote: > To do this properly, it would be nice if it were possible to be notified > whenever a thread-change happened. That way the statistics from the > various threads could be kept separately.
This would be useful for exp-drd too. What I do now is to compare the result of VG_(get_running_tid)() with a cached value in order to detect when Valgrind scheduled another thread. This test is performed upon every load, every store, and every time the stack pointer is modified. Bart. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Valgrind-developers mailing list Valgrind-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-developers