]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
callgrind: fix --collect-systime=yes with "no instrumentation" mode
authorJosef Weidendorfer <Josef.Weidendorfer@gmx.de>
Fri, 16 Feb 2007 13:12:43 +0000 (13:12 +0000)
committerJosef Weidendorfer <Josef.Weidendorfer@gmx.de>
Fri, 16 Feb 2007 13:12:43 +0000 (13:12 +0000)
(see bug 139363)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6593

callgrind/main.c

index 3715c533aee269ff96ecd836932ed363f1b97edf..160de9565d673c381637373b66d41d95761aa371 100644 (file)
@@ -883,7 +883,8 @@ void CLG_(pre_syscalltime)(ThreadId tid, UInt syscallno)
 static
 void CLG_(post_syscalltime)(ThreadId tid, UInt syscallno, SysRes res)
 {
-  if (CLG_(clo).collect_systime) {
+  if (CLG_(clo).collect_systime &&
+      CLG_(current_state).bbcc) {
     Int o = CLG_(sets).off_full_systime;
 #if CLG_MICROSYSTIME
     struct vki_timeval tv_now;