Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在非 root 设备上运行 systrace。如果选择了任何跟踪事件,它总是会给出以下错误:
找不到跟踪开始标记“TRACE:”:打开/sys/kernel/debug/tracing/events/cpufreq_interactive/enable 时出错:没有这样的文件或目录
如果没有选择跟踪事件,它可以工作,但跟踪不是很有用。
systrace 是否需要 root 访问权限?
请注意,我在 Windows-7 上直接从 Eclipse (DDMS) 运行 systrace。
根据systrace.py --help,以下跟踪需要 root 访问权限:
systrace.py --help
其他选项未指定需要 root 访问权限。
这就是说,我可以使用一些痕迹(例如--cpu-freq),但不幸的是,我很感兴趣,--cpu-load它给了我与你提到的完全相同的错误。
--cpu-freq
--cpu-load