Fail to compile gator driver module

我最近在尝试用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提示

"No Perf PMUs detected\n"
"Could not detect any Perf PMUs in /sys/bus/event_source/devices/ but the system contains recognised CPUs. "
"The system may not support perf hardware counters. Check CONFIG_HW_PERF_EVENTS is set and that the PMU is "
"configured in the target device tree."
 
因此我重新编译gator.ko,又出现下面的错误
好像是gator driver里依赖了walk_stackframe内核函数,这个该怎么处理呢?
Parents
  • When it comes to choosing a software development company https://mlsdev.com/blog/53-how-much-does-it-cost-to-develop-a-mobile-app, you should be sure to consider the following aspects: How long and how complicated is the project? There are many factors to consider, but there are some general rules to keep in mind. For example, you should ensure that the company can meet your needs and budget. After all, there is no point in hiring someone who cannot deliver a quality product that meets your needs. After all, a software development company should always be honest and transparent about their pricing.

Reply
  • When it comes to choosing a software development company https://mlsdev.com/blog/53-how-much-does-it-cost-to-develop-a-mobile-app, you should be sure to consider the following aspects: How long and how complicated is the project? There are many factors to consider, but there are some general rules to keep in mind. For example, you should ensure that the company can meet your needs and budget. After all, there is no point in hiring someone who cannot deliver a quality product that meets your needs. After all, a software development company should always be honest and transparent about their pricing.

Children
No data