June 2017
Intermediate to advanced
478 pages
13h 14m
English
Now that you know which functions to look at, it would be nice to step inside and see the code and to have hit counts for each instruction. That is what perf annotate does, by calling down to a copy of objdump installed on the target. You just need to use perf annotate in place of perf report.
perf annotate requires symbol tables for the executables and vmlinux. Here is an example of an annotated function:

If you want to see the source code interleaved with the assembler, you can copy the relevant source files to the target device. If you are using the Yocto Project and build with the extra image feature dbg-pkgs, or have installed ...
Read now
Unlock full access