kdb
[Top] [All Lists]

Re: [PATCH] kdb on SMP (breakpoint hits multiple cpus simultaneously)

To: vamsi@xxxxxxxxxx
Subject: Re: [PATCH] kdb on SMP (breakpoint hits multiple cpus simultaneously)
From: Keith Owens <kaos@xxxxxxx>
Date: Thu, 03 Apr 2003 23:55:37 +1000
Cc: "Zhang, Sonic" <sonic.zhang@xxxxxxxxx>, Hua Qin <qinhua@xxxxxxxxxxxxxxxxxxxxx>, kdb@xxxxxxxxxxx
In-reply-to: Your message of "Thu, 03 Apr 2003 14:16:07 +0530." <20030403141606.A27891@in.ibm.com>
Sender: kdb-bounce@xxxxxxxxxxx
On Thu, 3 Apr 2003 14:16:07 +0530, 
"Vamsi Krishna S ." <vamsi@xxxxxxxxxx> wrote:
>Yes, that is what I thought. My earlier patch fixed only the int3
>points. I will do similar fix for debugreg breakpoints too
>and update the man pages and code comments accordingly.

I suggest you wait a bit.  A lot of the breakpoint problems come from
the fact that kdb tries to control who can enter kdb, in particular the
way kdb tries to avoid two cpus entering kdb at the same time.  I have
concluded that this design was wrong, there are some situations where
kdb cannot prevent concurrent entry, e.g. external debugging interrupts
that are sent to all cpus and cannot be blocked.  As usual, ia64 is a
special case :(.

The answer is not to try to prevent concurrent entry to kdb but to
accept that it occurs and work with it.  That means the breakpoint
state must become per-cpu, as in the smphdr* patches.  Concurrent
software breakpoints will be allowed.


<Prev in Thread] Current Thread [Next in Thread>