perf_counter: Add ioctl for changing the sample period/frequency