On Thu, 24 Apr 2014, Philip Mucci wrote:

> As for the Linux portion, perf is already Linux only, plus configure or 
> the compiler sets the LINUX preprocessing define.

Yes, I just mean if we're going to start encouraging people to access 
uncore-type events by plopping
        :cpu=1
on the end or whatever, that's going to be perf specific if we let libpfm4 
handle it.

So we'll have two interfaces, the if-you're-on-Linux interface which is 
possibly going to be incompatible with the everyone-else interface where 
you have to go and do this:

        PAPI_cpu_option_t cpu_opt;

        cpu_opt.eventset=EventSet;
        cpu_opt.cpu_num=0;

        retval = PAPI_set_opt(PAPI_CPU_ATTACH,(PAPI_option_t*)&cpu_opt);

and it becomes unclear what happens if your event tries to use both
interfaces.

same issue with user/kernel granularity.

Vince

------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to