Re: [PATCH] perfcounters: IRQ and NMI support on AMD CPUs

From: Jaswinder Singh Rajput
Date: Thu Mar 05 2009 - 13:57:23 EST


On Thu, 2009-03-05 at 19:45 +0100, Peter Zijlstra wrote:
> On Fri, 2009-03-06 at 00:02 +0530, Jaswinder Singh Rajput wrote:
> >
> > Any how with this patch on my 64 bit AMD box I am getting:
> >
> > [jaswinder@hpdv5 perfcounters]$ ./perfstat -e 0,1,2,3 ls > /dev/null
> >
> > Performance counter stats for 'ls':
> >
> > perfstat: perfstat.c:415: main: Assertion `res == sizeof(single_count)'
> > failed.
> > Aborted
> > [jaswinder@hpdv5 perfcounters]$
> >
> > [root@hpdv5 perfcounters]# ./kerneltop
> > KernelTop refresh period: 2 seconds
> > kerneltop: kerneltop.c:883: main: Assertion `res == sizeof(ip)' failed.
> > Aborted
> > [root@hpdv5 perfcounters]#
>
> Ah, I think you will need a fresh copy of both utilities, Paul recently
> changed the ABI.
>
> http://people.redhat.com/mingo/perfcounters/
>
> Contains the latest IIRC
>

With fresh copy, perfstat is working.

But kerneltop is still not working and I am not getting any NMI Interrupts.

[root@hpdv5 new]# ./kerneltop -e 3 -c 100 -e 2

------------------------------------------------------------------------------
KernelTop: 0 irqs/sec kernel:nan% [NMI, cache-misses/cache-refs], (all, 2 CPUs)
------------------------------------------------------------------------------

weight events RIP kernel function
______ ______ ________________ _______________


--
JSR

--
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/