Hi, On Tue, Feb 24, 2009 at 3:11 AM, <x...@ict.ac.cn> wrote: > hi all, > I am using perfmon kernel v2.6 with pfmlib v3.5. Can I switch event > sets on overflow of a specific PMD register? > Yes, you can.
You need to set the flag PFM_SETFL_OVFL_SWITCH on the event set using the pfm_create_event_sets() syscall. Then, you need to arm the overflow switch threshold on the PMD you want using the reg_ovfl_swcnt field. If you want to switch at the first overflow, then set this field to 1. > On sample mode, I would like to switch event sets when the sample-based > event PMD overflow. I guess one solution is set the size of sampling > buffer to only one entry, and I can switch event sets on overflow of the > buffer. But I really don't prefer that cause the sampling interval is > small(0.25ms) and the overhead may be high if I do that. > > Any suggestions? > > - Scott > > ---------------------------------------------------------------------------- > Advanced Compiler Technology Laboratory > Institute of Computing Technology > Chinese Academy of Sciences > P.O.Box 2704, 100190, Beijing, China > Tel: 86-10-62600618 > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > perfmon2-devel mailing list > perfmon2-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/perfmon2-devel > ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ perfmon2-devel mailing list perfmon2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perfmon2-devel