lkml.org 
[lkml]   [2013]   [Apr]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/2] Fix perf LBR filtering
On Thu, Apr 25, 2013 at 07:42:11PM +0200, Andi Kleen wrote:
> There's the non cachable region tracking. But there's no guarantee a
> MMIO has to be in there, driver may still rely just on MTRRs. Also
> there may be MMIOs the kernel doesn't know about which just happen
> to be somewhere in the direct mapping.
>
> I don't see any reliable way to detect all mmios.

Hmm.. that's unfortunate.

OK, so how about we use something like:

is_kernel_text() || is_module_text_address()

And bail if not; that should at least make it work for the simple case or
normal text and not be worse than what you propose for JIT stuff.


\
 
 \ /
  Last update: 2013-04-26 10:21    [W:0.128 / U:0.436 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site