Some counters generate zero events with the test vectors: PERF_L2_WRITEBACK, PERF_STORE_ROLLBACK, PERF_ITLB_MISS, PERF_DCACHE_MISS, PERF_DTLB_MISS. Modify test so it generates these events.
Add a test to verify the counters continue to increase. Read them three times, with two invocations of the test function between.
In tests/core/perf_counters/