[PATCH 372/552] perf/ioctl: Add check for the sample_period value