On 03/26/11 08:00, zhao bao wrote: > 2011/3/26 David Ahern <[email protected]>: >> On 03/26/11 06:31, zhao bao wrote: >>>> It's used to trace kernel space page faults, not for userspace code. >>>> >>>> Lin Ming >>>> >>> >>> From the ouput of "perf report" command, I think perf can record the >>> page faults from userspace code. >>> >>> [root@localhost lab]# perf record -R -c 1 -d -e faults ./hello >>> hello,world >> >> '-e faults' is a software event. perf-trace does not handle S/W events. >> perf-trace has been renamed to perf-script, and perf-script recently >> gained the ability to dump S/W events: >> >> https://lkml.org/lkml/2011/3/10/3 >> >> David >> > Thanks. How can I apply your patch? May I need upgrade to 2.6.38?
You can compile latest perf userpsace and it should work with files from older kernels. David -- To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
