gem*_*mad 3 debugging embedded linux-kernel perf yocto
我想perf
在 Renesas 目标上使用,我配置了 yocto“local.conf”,如本链接所示。
#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'
Run Code Online (Sandbox Code Playgroud)
perf
正在工作,但我需要监视需要使用的上下文切换perf timechart
以及依赖于性能事件的其他命令,但这些命令找不到此路径 "/sys/kernel/debug/tracing/events" 。
我应该怎么做才能用我的内核编译这个文件夹及其文件?
您可能需要挂载 debugfs 文件系统:
mount -t debugfs none /sys/kernel/debug
Run Code Online (Sandbox Code Playgroud)
如果您已经有自己的启动脚本,/etc/init.d/
应该可以将其添加到那里,或者您可以将其添加/etc/fstab
为
debugfs /sys/kernel/debug debugfs defaults
Run Code Online (Sandbox Code Playgroud)