Ftrace on android freeze when turn on function trace, somebody help me :(

▼魔方 西西 提交于 2019-12-05 22:06:39

There's several reasons that the function tracer may freeze. It's a very invasive tracer (traces almost all functions of the kernel). One issue is if it traces an internal function like disabling interrupts. This would cause it to go into an infinite loop. Now I assume you have an ARM device if you are running Android. Depending on the configuration some of the low level functions for ARM may need to be marked notrace to prevent them to be traced. If you have dynamic tracing enabled, try just tracing a single function and if that works you know the issue is with something that's being traced that shouldn't be. To trace a single function, just:

echo schedule > set_ftrace_filter; echo function > current_tracer

Good luck.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!