perf/Power7: Use macros to identify perf events