android上的perf工具不会传递结果
我设置了下面的kernek配置并构建了内核。并使用 但是大部分东西我都是0分android上的perf工具不会传递结果,android,linux-kernel,adb,perf,Android,Linux Kernel,Adb,Perf,我设置了下面的kernek配置并构建了内核。并使用 但是大部分东西我都是0分 Performance counter stats for 'ls': 21.059054 task-clock # 0.313 CPUs utilized 80 context-switches # 0.004 M/sec 0 CPU-m
Performance counter stats for 'ls':
21.059054 task-clock # 0.313 CPUs utilized
80 context-switches # 0.004 M/sec
0 CPU-migrations # 0.000 K/sec
139 page-faults # 0.007 M/sec
0 cycles # 0.000 GHz [80.24%]
0 stalled-cycles-frontend # 0.00% frontend cycles idle [64.89%]
0 stalled-cycles-backend # 0.00% backend cycles idle [75.43%]
0 instructions # 0.00 insns per cycle
0 branches # 0.000 K/sec
0 branch-misses # 0.00% of all branches [65.55%]
0.067236380 seconds time elapsed
但大多数计数器都是0
我是在Nexus4设备上做的。有什么问题吗?有人能帮忙吗?我为Nexus4编译了一个内核为3.4.0的Kitkat主机,得到了相同的结果 我发现在内核中有一个特定于Krait的文件:arch/arm/kernel/perf_event\u msm_Krait.c 它使用得很好,因为在dmesg中,我得到: [0.002350]硬件性能事件:使用ARMv7 Krait PMU驱动程序启用,5个计数器可用 但是我认为Krait PMU在这个内核版本中的支持非常有限。这将得到证实。 这个补丁的发布日期是今年1月,我在内核3.13中没有看到它
Performance counter stats for 'ls':
21.059054 task-clock # 0.313 CPUs utilized
80 context-switches # 0.004 M/sec
0 CPU-migrations # 0.000 K/sec
139 page-faults # 0.007 M/sec
0 cycles # 0.000 GHz [80.24%]
0 stalled-cycles-frontend # 0.00% frontend cycles idle [64.89%]
0 stalled-cycles-backend # 0.00% backend cycles idle [75.43%]
0 instructions # 0.00 insns per cycle
0 branches # 0.000 K/sec
0 branch-misses # 0.00% of all branches [65.55%]
0.067236380 seconds time elapsed