June 2017
Intermediate to advanced
478 pages
13h 14m
English
You need a kernel that is configured for perf_events, and you need the perf command cross compiled to run on the target. The relevant kernel configuration is CONFIG_PERF_EVENTS, present in the menu General setup | Kernel Performance Events And Counters.
If you want to profile using tracepoints—more on this subject later—also enable the options described in the section about Ftrace. While you are there, it is worthwhile enabling CONFIG_DEBUG_INFO as well.
The perf command has many dependencies, which makes cross compiling it quite messy. However, both the Yocto Project and Buildroot have target packages for it.
You will also need debug symbols on the target for the binaries that you are interested in profiling; ...
Read now
Unlock full access