Port it to use the new Linux perf_event API rather than the old perfmon patch.