I was tying to use
perf on Renesas target and I configured the yocto "local.conf" as showed in this link.
#avoid stripping binaries INHIBIT_PACKAGE_STRIP = "1" #add the debug information EXTRA_IMAGE_FEATURES= "debug-tweaks tools-debug dbg-pkgs tools-profile" #format the debug info into a readable format for PERF PACKAGE_DEBUG_SPLIT_STYLE = 'debug-file-directory'
perf is working but I need to monitor the context switches which require to use
perf timechart and other commands that depends on perf-events, but the commands can't find this path "/sys/kernel/debug/tracing/events" .
What should I do in order to get this folder and its files compiled with my kernel?