Hi! Hi! > The Number Hardware Counters is 7, But according to above ./perf_event_open02 > in RHEL7.0beta, the output is 5. > Whether two slots in PMU has been used, or the output of papi_avail is not > correct :-) .
I would guess that these are used by kernel or system for something else. > I tried to figure out how papi_avail gets the number of hardware counters, It > seems that it just predefines some const values for > specific cpus, but I am not very sure, I do not have much time to read the > papi_library source code. > > And I afraid that this library does not support enough kinds of cpus. I also > met some compilation errors in Fedora19 about this library. > > So whether we can use the first method I mentioned. I think it is more > reasonable, at least according to perf_even_open()'s manpage > and the intent of perf_event_open02 case. Your method is better, because the testcase only cares if perf events are multiplexed or not which is implied by different time_enabled and time_running fields. -- Cyril Hrubis [email protected] ------------------------------------------------------------------------------ Put Bad Developers to Shame Dominate Development with Jenkins Continuous Integration Continuously Automate Build, Test & Deployment Start a new project now. Try Jenkins in the cloud. http://p.sf.net/sfu/13600_Cloudbees _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
