|
From: Bart V. A. <bar...@gm...> - 2008-02-21 19:01:13
|
On Thu, Feb 21, 2008 at 6:38 PM, Vince Weaver <vi...@cs...> 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. |