From: Antonio Macchi on
how can I know if my CPU support "Performance counter regsters"?
From: Jasen Betts on
On 2009-12-23, Antonio Macchi <antonio_macchi(a)alice.it> wrote:
> how can I know if my CPU support "Performance counter regsters"?

cat /proc/cpuinfo

I'm guessing it's "arch_perfmon" on the "flags" line



--- news://freenews.netfront.net/ - complaints: news(a)netfront.net ---
From: Antonio Macchi on
Jasen Betts wrote:
> On 2009-12-23, Antonio Macchi <antonio_macchi(a)alice.it> wrote:
>> how can I know if my CPU support "Performance counter regsters"?
>
> cat /proc/cpuinfo
>
> I'm guessing it's "arch_perfmon" on the "flags" line
>


it seems so... thanks

this is the line in cpufeature.h (inside the kernel tree)

$ grep ARCH arch/x86/include/asm/cpufeature.h
#define X86_FEATURE_ARCH_PERFMON (3*32+11) /* Intel Architectural PerfMon */
#define cpu_has_arch_perfmon boot_cpu_has(X86_FEATURE_ARCH_PERFMON)


(Architectural Performance Monitornig...)
thanks