]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
coregrind/m_scheduler + drd: Rework r13862
authorBart Van Assche <bvanassche@acm.org>
Mon, 10 Mar 2014 19:40:45 +0000 (19:40 +0000)
committerBart Van Assche <bvanassche@acm.org>
Mon, 10 Mar 2014 19:40:45 +0000 (19:40 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13864

coregrind/m_scheduler/scheduler.c
drd/drd_main.c

index b6f558d0a1532bd953e811243e273745441196db..52b4d0f257aa7aadb967e9234452f7fe97ece168 100644 (file)
@@ -1011,7 +1011,6 @@ static void handle_tt_miss ( ThreadId tid )
                                  ip, True/*upd_fast_cache*/ );
    if (UNLIKELY(!found)) {
       /* Not found; we need to request a translation. */
-      VG_TRACK( start_client_code, tid, bbs_done );
       if (VG_(translate)( tid, ip, /*debug*/False, 0/*not verbose*/, 
                           bbs_done, True/*allow redirection*/ )) {
          found = VG_(search_transtab)( NULL, NULL, NULL,
@@ -1025,7 +1024,6 @@ static void handle_tt_miss ( ThreadId tid )
         // or the thread has been marked for termination.  Either
         // way, we just need to go back into the scheduler loop.
       }
-      VG_TRACK( stop_client_code, tid, bbs_done );
    }
 }
 
index db6eeb8bf556eba443e70eeed76451c810871bdd..2104ea3799f534998f6c74a243cb9efb89baef04 100644 (file)
@@ -276,6 +276,7 @@ static void drd_pre_mem_read(const CorePart part,
                              const Addr a,
                              const SizeT size)
 {
+   DRD_(thread_set_vg_running_tid)(VG_(get_running_tid)());
    if (size > 0)
    {
       DRD_(trace_load)(a, size);