问题描述
我无法运行名为systrace.pl的Android SDK工具,因为我收到以下错误:
错误打开/ sys / kernel / debug / tracing / options / overwrite:没有这样的文件或目录
sys / kernel / debug / tracing目录甚至不存在。
有一点研究表明,我需要使用以下命令启用debugfs:
mount -o rw,remount -t debugfs none / sys / kernel / debug
随后运行安装表示debugfs正在运行:
#mount
...
/ sys / kernel / debug / sys / kernel / debug debugfs rw,relatime 0 0
...
我在开发人员设置菜单中启用了跟踪(所有项目)。我正在三星Galaxy S3上使用库存ROM 4.1.1。
在Android的systrace上有很多文章,但似乎没有解决问题没有文件在/ sys / kernel / debug / tracing中实际生成...
p>
看起来您的systrace在您的设备正在运行的内核上未启用,需要用支持systrace的替换boot.img。
I'm unable to run the Android SDK tool called systrace.pl because I get errors like:
error opening /sys/kernel/debug/tracing/options/overwrite: No such file or directory
And indeed the /sys/kernel/debug/tracing directory doesn't even exist.
A little research showed I need to enable debugfs with the following command:
mount -o rw,remount -t debugfs none /sys/kernel/debug
Running mount there afterwards indicates the debugfs is running:
#mount
...
/sys/kernel/debug /sys/kernel/debug debugfs rw,relatime 0 0
...
And I have trace enabled (all items) in the developer settings menu. I'm using the stock ROM 4.1.1 on a Samsung Galaxy S3.
There's a lot of articles out there on systrace for Android but nothing seems to solve the problem of no files actually being generated in /sys/kernel/debug/tracing...
Answered the same question below:
Make Systrace work with 4.1.2 device on Mac
Looks like your systrace is not enabled on the kernel your device is running, you need to replace your boot.img with one that has systrace support.
这篇关于在设备上运行Android systrace的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!