perf_counter: Fix perf_copy_attr() pointer arithmetic