From b69d605bc78fc90285494745561bf002aa404fa6 Mon Sep 17 00:00:00 2001 From: Jan Stoess Date: Fri, 7 Dec 2007 19:33:32 +0100 Subject: [PATCH] - Don't trace switches from/to the KDB tcb --- kernel/src/glue/v4-x86/x64/tcb.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/src/glue/v4-x86/x64/tcb.h b/kernel/src/glue/v4-x86/x64/tcb.h index d9f67b12..452d5aba 100644 --- a/kernel/src/glue/v4-x86/x64/tcb.h +++ b/kernel/src/glue/v4-x86/x64/tcb.h @@ -129,7 +129,8 @@ INLINE void tcb_t::switch_to(tcb_t * dest) dest, dest->stack, dest->pdir_cache, dest->space); //enter_kdebug("hmm"); #endif - tbuf_record_event (1, 0, "switch %t => %t", (word_t)this, (word_t)dest); + if (this != get_kdebug_tcb() && dest != get_kdebug_tcb()) + tbuf_record_event (1, 0, "switch %t => %t", (word_t)this, (word_t)dest); #ifdef CONFIG_SMP active_cpu_space.set(get_cpu(), dest->space);