Hi,

I have been porting an application from perfctr (and also from AIX with 
bos.pmapi) to perfmon2. I was looking for something like a "short 
description", that was available for the other two platforms. More precisely 
I was looking for a two to six word string, that is more informative than the 
name of the event, but shorter than the description, which can span several 
lines.

I was looking in the header files perfmon.h and pfmlib.h, but couldn't find 
anything. I worked around by writing a string manipulation subroutine that 
took the description returned by pfm_get_event_description, removed 
initial "Number of" and "Total number of", and chopped off the string at the 
first "." or ",". Not surprisingly, my mileage varied.

Any better solution that that ? If not there, could it be added to the libpfm 
API ?

Having said this, I really appreciate the detailed descriptions, as they are 
very precise. But I am looking for the choice between short and detailed.
-- 
 
Mit freundlichen Gruessen/Best Regards

Dr. Christoph Pospiech
High Performance & Parallel Computing
Advanced Computing Technology Center
Phone +49-351-86269826, eMail: [EMAIL PROTECTED]
Mobile +49-171 765 5871
 
IBM Deutschland GmbH
 Vorsitzender des Aufsichtsrats: Hans Ulrich Maerki
 Geschäftsführung: Martin Jetter (Vorsitzender), 
 Rudolf Bauer, Christian Diedrich, Christoph Grandpierre,
 Matthias Hartmann, Thomas Fell, Michael Diemer
 Sitz der Gesellschaft: Stuttgart
 Registergericht: Amtsgericht Stuttgart, 
 HRB 14562 WEEE-Reg.-Nr. DE 99369940

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

Reply via email to