Hi Stephane,
As Carl Love and I were going over how unit masks are handled in libpfm, we ran
into a confusing looking profile for pfm_find_event_mask. The first argument is
the event index, and the doc shows it as a pointer to an unsigned int. The
actual code has this as just an unsigned int.
I've attaching a patch to fix this error (or what appears to be an error).
--
Regards,
- Corey
Corey Ashford
Software Engineer
IBM Linux Technology Center, Linux Toolchain
cjash...@us.ibm.com
Index: docs/man3/pfm_find_event.3
===================================================================
RCS file: /cvsroot/perfmon2/libpfm/docs/man3/pfm_find_event.3,v
retrieving revision 1.9
diff -u -r1.9 pfm_find_event.3
--- docs/man3/pfm_find_event.3 17 Mar 2008 23:08:42 -0000 1.9
+++ docs/man3/pfm_find_event.3 11 May 2009 22:09:00 -0000
@@ -11,7 +11,7 @@
.BI "int pfm_find_full_event(const char *"str ", pfmlib_event_t *"e ");"
.BI "int pfm_find_event_bycode(int "code ", unsigned int *"desc ");"
.BI "int pfm_find_event_bycode_next(unsigned int "desc1 ", int "code ",
unsigned int *"desc ");"
-.BI "int pfm_find_event_mask(unsigned int *"idx ", const char *"str ",
unsigned int *"mask_idx ");"
+.BI "int pfm_find_event_mask(unsigned int "idx ", const char *"str ", unsigned
int *"mask_idx ");"
.sp
.SH DESCRIPTION
The PMU counters can be programmed to count the number of occurrences
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel