We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
我最近在尝试用Streamline分析汇编代码在Android手机上的执行流水线,看了很多博客以后,逐渐理清楚思路,不知道我理解的对不对?
1. 拉取Linux kernel代码,打开CONFIG_HW_PERF_EVENTS等等
2. 在Linux kernel编译目录下拷贝gator driver源码
3. 修改Makefile
4. 重新编译内核,再编译gator.ko
我在Android手机上使用zcat config.zip | grep 'CONFIG_HW_PERF_EVENTS'等查询现有的内核编译时是否开启了相关配置,Android手机上的内核确实是开启了CONFIG_HW_PERF_EVENTS等,但是没有gator.ko,会导致Streamline连接手机以后,出现下面的warnning提示
You kernel needs to be configured to enable Perf and Ftrace. Please see:
developer.arm.com/.../Kernel-configuration-menu-options