Re: [Patch 0/1] HW-BKPT: Allow per-cpu kernel-space Hardware Breakpoint requests

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Frederic Weisbecker
Date: Wednesday, August 26, 2009 - 4:49 am

On Wed, Aug 26, 2009 at 11:16:42AM +0200, Ingo Molnar wrote:


What you are suggesting is a complete refactoring of the breakpoint API
on top of pmus.

Well, that's possible and would factorize the scheduling, conflict and so
on. So that's theoretically a good point and I hope we'll come to such
centralization, that looks like my suggestion to Peter to share the
perfcounter layer that handles the scheduling of hardware registers.

But the pmu handling is currently not ready for that.
For now it's completely tied to perfcounter, the pmu handling must
become completely standalone wrt perfcounter because hardware
breakpoint shouldn't depend on perfcounter.
It couldn't even, because it is not only wanted for perfcounter but
currently used by ptrace (and perhaps some other various users) and
I can't imagine we need to open a perfcounter to use ptrace facilities.

That said, I really agree with the concept, we could then drop the
scheduling bindings for hardware breakpoints and use a centralized
thing for that which would be the pmu.

But:

- the PMUs handling is not ready for that as I explained above
- we still need the hardware breakpoint layer that decodes a breakpoint
  request (address, length of the memory target, number of registers
  limitation). This part is still a mandatory feature to build dynamic
  PMU based breakpoints.

Frederic.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [Patch 0/1] HW-BKPT: Allow per-cpu kernel-space Hardwa ..., Frederic Weisbecker, (Wed Aug 19, 10:33 am)
Re: [Patch 0/1] HW-BKPT: Allow per-cpu kernel-space Hardwa ..., Frederic Weisbecker, (Tue Aug 25, 8:36 pm)
Re: [Patch 0/1] HW-BKPT: Allow per-cpu kernel-space Hardwa ..., Frederic Weisbecker, (Wed Aug 26, 4:49 am)
Re: [Patch 0/1] HW-BKPT: Allow per-cpu kernel-space Hardwa ..., Frederic Weisbecker, (Tue Sep 1, 4:51 pm)