Stephane Eranian wrote:
Will,

On Mon, Dec 04, 2006 at 05:58:34PM -0500, William Cohen wrote:

I was able to build libpfm-3.2-061205 and pfmon-3.2-061205 on a ia67 RHEL4 system running a 2.6.9-42.0.3.EL kernel. The newly built pfmon works with this old kernel. However, there are examples for old interface (libpfm/old_interface_ia64_examples) and new interface (libpfm/examples).

I am not sure I understand you last sentence. Are you saying there are
issues with the old examples?

If one wants an example, they need to look at the pfmon code to see how to write code that works with both. There isn't a simple combined example in the pfmlib examples.

There aren't issues with the old examples. I was able to run all the ita_* examples, notify_self*, self, task, task_attach, task_smpl, and whichpmu.

However, showreset got a SIGSEGV on the itanium2 I was trying things out on below is the gdb information from running it.

(gdb) run
Starting program: /home/wcohen/rh-rpms/BUILD/libpfm-3.2-061205/old_interface_ia64_examples/showreset
Reading symbols from shared object read from target memory...done.
Loaded system supplied DSO at 0xa000000000000000

Program received signal SIGSEGV, Segmentation fault.
0x400000000001b990 in vfprintf ()
(gdb) where
#0  0x400000000001b990 in vfprintf ()
#1  0x400000000002b4e0 in printf ()
#2  0x40000000000006c0 in main (argc=-100464, argv=0x1) at showreset.c:91


Would it be worthwhile to have an example that shows how to have a program that is compatible with both interfaces?


Yes, I think it would be worthwhile. That would how to transition from one to 
the other.

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

Reply via email to