Re: [RFC][PATCH 5/5] perfcounter: Add support for kernel hardwarebreakpoints

From: Alan Stern
Date: Thu Jul 23 2009 - 15:56:17 EST


On Thu, 23 Jul 2009, Peter Zijlstra wrote:

> > Is there a limit to these hardware breakpoints? If so, the software

Certainly there's a limit. They require hardware resources, after all.

> > counter model is not sufficient, since we assume we can always schedule
> > all software counters. However if you were to add more counters than you
> > have hardware breakpoints you're hosed.
>
> Do the breakpoints work on virtual or physical addresses?

On x86, hardware breakpoints take virtual addresses. I don't know
about other architectures.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/