Sampling the counters using perf