Ported perf code to work on arm and adjusted to changes in the kernel that broke...