From: Josef Weidendorfer Date: Fri, 16 Feb 2007 13:12:43 +0000 (+0000) Subject: callgrind: fix --collect-systime=yes with "no instrumentation" mode X-Git-Tag: svn/VALGRIND_3_3_0~371 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef2d36cdfdb5cf5ef8ba97f621ba18a0511a1321;p=thirdparty%2Fvalgrind.git callgrind: fix --collect-systime=yes with "no instrumentation" mode (see bug 139363) git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6593 --- diff --git a/callgrind/main.c b/callgrind/main.c index 3715c533ae..160de9565d 100644 --- a/callgrind/main.c +++ b/callgrind/main.c @@ -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;