Vivek,
> On Monday 03 September 2007 16:21, Stephane Eranian wrote:
> > Vivek,
> >
> > Look at notify_self2.c. It is not system-wide but it can be converted
> > fairly easily.
>
Ok, there is another small issue related to switching from per-thread to
system-wide on IA-64,
/*
* Let's roll now
*/
pfm_self_start(ctx_fd);
busyloop();
pfm_self_stop(ctx_fd);
The pfm_self_start/pfm_self_stop macros only work for a per-thread context. I
should
have commented on that in the source code. So your problem is that monitoring is
never activated. You need to use the actual systam call:
perfmonctl(ctx_fd, PFM_START, 0, 0);
busyloop();
perfmonctl(ctx_fd, PFM_STOP, 0, 0);
With this, notify-self2.c worked for me.
--
-Stephane
_______________________________________________
perfmon mailing list
[email protected]
http://www.hpl.hp.com/hosted/linux/mail-archives/perfmon/