Howdy,
You can annotate from within the perf report itself. What you have to do is to take the perf record output. That will create a perf.data file. Now, run perf archive. This will create a tarball. On Sat, Dec 7, 2013 at 10:48 AM, Abu Rasheda <rcpilot2010@xxxxxxxxx> wrote:
I figure out, it quite simple. Writing steps here, so it may be useful
for someone in future.
perf record -a
ctrl-C when done collecting data
copy kernel_module.ko to
/lib/modules/2.6.32-71.el6.x86_64/kernel/net/ipv4/kernel_module.ko
perf annotate function_name_in_kernel_module
Since you compiled kernel module on this machine, perf can get path
from the binary and locate the source. enjoy.
On Fri, Dec 6, 2013 at 7:14 PM, Abu Rasheda <rcpilot2010@xxxxxxxxx> wrote:
> Guys,
>
> I want to annotate Linux kernel module with c-source using perf tool.
> Is it possible ? can someone points me to the instructions how to do
> this ?
>
> Thanks
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies