Michael,

On Tue, Apr 17, 2007 at 09:37:46AM +0200, Michael Kluge wrote:
> >>
> >> mars:~ # /usr/bin/pfmon ...... sequential
> >> cannot write PMCs: Invalid argument
> >> session interrupted by user
> >> mars:~ # ldd /usr/bin/pfmon
> >>         linux-gate.so.1 =>  (0xa000000000000000)
> >>         libpfm.so.3 => /usr/local/lib/libpfm.so.3 (0x2000000000068000)
> >>         libpthread.so.0 => /lib/libpthread.so.0 (0x20000000000d0000)
> >>         libelf.so.0 => /usr/lib/libelf.so.0 (0x2000000000108000)
> >>         libm.so.6.1 => /lib/libm.so.6.1 (0x2000000000148000)
> >>         librt.so.1 => /lib/librt.so.1 (0x2000000000218000)
> >>         libdl.so.2 => /lib/libdl.so.2 (0x2000000000238000)
> >>         libc.so.6.1 => /lib/libc.so.6.1 (0x2000000000250000)
> >>         /lib/ld-linux-ia64.so.2 (0x2000000000000000)
> >> mars:~ # ls -la /usr/local/lib/libpfm.so.3
> >> lrwxrwxrwx 1 root root 15 Apr 16 19:55 /usr/local/lib/libpfm.so.3 -> 
> >> libpfm.so.3.2.0
> >> mars:~ # ls -la /usr/local/lib/libpfm.so.3.2.0
> >> -rwxr-xr-x 1 root root 535372 Apr 16 19:55 /usr/local/lib/libpfm.so.3.2.0
> >>

> pfm_write_pmcs.2924: CPU0 [8430] pmc0 is unimplemented or no-access 
> pmc_type=41
> sys_perfmonctl.4938: CPU0 [8430] context unlocked
> sys_perfmonctl.4939: CPU0 [8430] spinlock_irq_restore ctx e000801aeec28000 by 
> [8430]
> sys_perfmonctl.4951: CPU0 [8430] cmd=pfm_write_pmcs ret=-22

Pfmon is trying to write pmc0 which is not accessible on Montecito.
I have seen this before and it was du to some mismatch between pfmon and libpfm.

If you did make and make install in libpfm without changing the config.mk, then 
you
get libpfm.so in /usr/local/lib.

Similarly, if you typed make and make install with pfmon, you have it in 
/usr/local/bin.
Yet it seems for your output above that you find it in /usr/bin. Are you using 
the right
pfmon? Simply try running pfmon from  the directory you compiled it in.

--
-Stephane
_______________________________________________
perfmon mailing list
[email protected]
http://www.hpl.hp.com/hosted/linux/mail-archives/perfmon/

Reply via email to