perf_counter, x86: Implement generalized cache event types, add Core2 support