On Thursday 18 November 2010, Konstantin Serebryany wrote: > On Thu, Nov 18, 2010 at 5:30 PM, edA-qa mort-ora-y <eda...@disemia.com> wrote: > > In my code I have several activities that happen every 250ms or so. > > Obviously in valgrind the program runs slower, but that means the time > > interval comes a lot more frequently. > > > > Is there any way slowdown the system clock in valgrind as to match its > > slowdown in execution? Or how might I go about this? > > We have the same problem and we have tried (at least twice) the > solution you describe. And we gave up. > First of all, there are dozens of ways a process can gets and use time > and not all of them are system calls (nor even library calls). > Second, if a valgrind-ed program communicates with other processes, > they also have to slowdown time.
The easiest would be to extend Valgrind to allow for full system emulation ;) Hmm... would it help for the cache simulator to maintain a virtual time which can be asked for by a client request? Josef > I would be very interested to hear if anyone managed to slow down the > system clock and got reliable runs; meanwhile we are using command > flags to adjust our timeout values. :( > > --kcc > > > > > Currently I use gettimeofday to get the time. > > > > -- > > edA-qa mort-ora-y > > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- > > > > BigTPoker - Poker fun and games > > > > http://BigTPoker.com/ > > > > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- > > Sign: Please digitally sign your emails. > > Encrypt: I'm also happy to receive encrypted mail. > > > > > > ------------------------------------------------------------------------------ > > Beautiful is writing same markup. Internet Explorer 9 supports > > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > > Spend less time writing and rewriting code and more time creating great > > experiences on the web. Be a part of the beta today > > http://p.sf.net/sfu/msIE9-sfdev2dev > > _______________________________________________ > > Valgrind-users mailing list > > Valgrind-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/valgrind-users > > > > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today > http://p.sf.net/sfu/msIE9-sfdev2dev > _______________________________________________ > Valgrind-users mailing list > Valgrind-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/valgrind-users > ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users