Re: [PATCH 1/1] perf tools: Add missing user space support forconfig1/config2
From: Andi Kleen
Date: Mon Apr 25 2011 - 18:14:01 EST
> The PAPI tool was using the perf_events interface in the 2.6.39-git
> kernels to collect offcore response results by properly setting the
> config1 register on Nehalem and Westmere machines.
I already had some users for this functionality too. Offcore
events are quite useful for various analysis: basically every time
you have a memory performance problem -- especially a NUMA
problem -- they can help you a lot tracking it down.
They answer questions like "who accesses memory on another node"
As far as I'm concerned b52c55c6a25e4515b5e075a989ff346fc251ed09
is a bad feature regression.
>
> Now it has been disabled for unclear reasons.
Also unfortunately only partial. Previously you could at least
write the MSR from user space through /dev/cpu/*/msr, but now the kernel
randomly rewrites it if anyone else uses cache events.
Right now I have some frontend scripts which are doing this,
but it's really quite nasty.
It's very sad we have to go through this.
-Andi
--
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/