using perf tool

Abu Rasheda rcpilot2010 at
Sat Dec 7 00:18:43 EST 2013

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
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 at> 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

More information about the Kernelnewbies mailing list