I am trying to use perf in a system with 3.8 linux kernel. When I used the following command, error happens:
$ perf record -c 100000 -e '{cycles,instructions}:S' ./nonloop 1000
failed to mmap with 25 (Inappropriate ioctl for device)
nonloop: Terminated
Could anyone tell me how to solve the problem?