Hi Stephane,
no, it's using the correct one:
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
With a static binary:
mars:~ # ldd /usr/bin/pfmon
not a dynamic executable
mars:~ # /usr/bin/pfmon ........ sequential
cannot write PMCs: Invalid argument
Maybe something wrong with my libpfm?
Regards, Michael
Stephane Eranian schrieb:
Hi Michael,
On Mon, Apr 16, 2007 at 08:37:39AM +0200, Michael Kluge wrote:
we are getting closer :) All is again compiled:
mars:~ # /usr/bin/pfmon --system-wide
--smpl-outfile=/tmp/sample.out.7314 --smpl-entries=100000 -u -k
--short-smpl-periods=15940000 --smpl-module=compact
--events=CPU_OP_CYCLES_ALL --cpu-list=0 dplace -c0
/work/home2/mkluge/omp_sched/sequential
cannot write PMCs: Invalid argument
I think that is because you are not linking with the right libpfm.
Do a ldd of pfmon, it is picking up the older libpfm installed on
your system. You may want to use LD_LIBRARY_PATH to point it to the
place where you have the CVS libpfm. Alternatively, you can compile
pfmon as static.
--
-Stephane
_______________________________________________
perfmon mailing list
[email protected]
http://www.hpl.hp.com/hosted/linux/mail-archives/perfmon/
--
____________________________________________
Michael Kluge, M.Sc.
Technische Universität Dresden
Center for Information Services and
High Performance Computing (ZIH)
D-01062 Dresden
Germany
Contact:
Room : HRSK 151
Phone: (+49) 351 463 32424
Fax : (+49) 351 463 37773
email: [EMAIL PROTECTED]
_______________________________________________
perfmon mailing list
[email protected]
http://www.hpl.hp.com/hosted/linux/mail-archives/perfmon/