难道Android的systrace需要root权限? [英] Does Android systrace require root access?

查看:1456
本文介绍了难道Android的systrace需要root权限?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要一个无根的设备上运行systrace。它总是给人如果任何跟踪事件的选择了以下错误:

I am trying to run systrace on a non-rooted device. It always gives the following error if any of the trace events is selected:

找不到一丝起始标记TRACE:':错误打开/ SYS /内核/调试/跟踪/事件/ cpufreq_interactive /启用:没有这样的文件或目录

如果没有选择跟踪事件,它的工作原理,但跟踪不是很usweful。

If no trace event is selected, it works, but the trace is not very usweful.

请问systrace需要root访问权限?

Does systrace requires root access?

请注意,我在Windows 7直接运行systrace从Eclipse中(DDMS)。

Note that I am running systrace directly from Eclipse (DDMS) on Windows-7.

推荐答案

systrace.py --help ,下面的痕迹需要root权限:

According to systrace.py --help, the following traces require root access:

  • -d,--disk:跟踪磁盘I / O(需要根)
  • -u,--bus利用率:跟踪总线利用率(需要root)
  • -w,--workqueue:跟踪内核工作队列(需要root)
  • -d, --disk: trace disk I/O (requires root)
  • -u, --bus-utilization: trace bus utilization (requires root)
  • -w, --workqueue: trace the kernel workqueues (requires root)

其他选项没有指定一个需要root访问权限。

The other options don't specify that a root access is required.

这说,我可以使用一些痕迹(如 - CPU的频率 ),但我在不幸兴趣< STRONG> - CPU负荷 这给了我同样的错误,因为你所提到的。

This said, I can use some of the traces (such as --cpu-freq), but I am unfortunately interested in --cpu-load which gives me the very same error as you mentioned.

这篇关于难道Android的systrace需要root权限?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆