Hi! > >> Make performance_counter01 run default. This performance_counter01 case > >> is to use perf_event_open() to test hardware CPU events. > >> > >> Do not let performance_counter02 run defalult. This test need to know > >> an upper bound on the number of hardware counters, which varies in > >> different platforms. So if knowing this value, user can execute: > >> ./performance_counter02 -C (upper bound) to run this test. > > The test seems to default to 8. Can we just make it return TCONF if > > there are less than 8 hw counters? Having tests that are not executed by > > default is pointless. > Here I actually do not know how to get the number of hardware counters. > I had googled this issue, but do not find any method to get the number.
Hmm. I've looked at the interface and I wonder if we can do something as setting on the exclusive bit and create HW perf counters untill the perf_event_open() starts to fail, but that is just guess, the perf interface looks quite complicated. -- Cyril Hrubis [email protected] ------------------------------------------------------------------------------ _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
