From: Julian Seward Date: Tue, 15 Mar 2005 01:40:12 +0000 (+0000) Subject: Improve debug printing. X-Git-Tag: svn/VALGRIND_3_0_0~957 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6401cf15345c229ad438d49c3b0df24a1786f6d;p=thirdparty%2Fvalgrind.git Improve debug printing. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3361 --- diff --git a/coregrind/vg_scheduler.c b/coregrind/vg_scheduler.c index 3138b7b53a..d407644fc7 100644 --- a/coregrind/vg_scheduler.c +++ b/coregrind/vg_scheduler.c @@ -716,6 +716,9 @@ VgSchedReturnCode VG_(scheduler) ( ThreadId tid ) UInt trc; ThreadState *tst = VG_(get_ThreadState)(tid); + if (VG_(clo_trace_sched)) + print_sched_event(tid, "entering VG_(scheduler)"); + VGP_PUSHCC(VgpSched); /* set the proper running signal mask */ @@ -870,7 +873,10 @@ VgSchedReturnCode VG_(scheduler) ( ThreadId tid ) } /* switch (trc) */ } - + + if (VG_(clo_trace_sched)) + print_sched_event(tid, "exiting VG_(scheduler)"); + vg_assert(VG_(is_exiting)(tid)); VGP_POPCC(VgpSched);