不能使用,因为写​​访问Android的壳atrace命令 [英] Can't use Android shell atrace command because of write access

查看:597
本文介绍了不能使用,因为写​​访问Android的壳atrace命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我尝试 atrace 从工具亚洲开发银行模拟器

# atrace
atrace
error opening /sys/kernel/debug/tracing/options/overwrite: No such file or direc
tory (2)

如果我做的:

#mount -t debugfs nodev /sys/kernel/debug
#mount: No such file or directory

如果我尝试使该文件夹:

If I try to make the folder :

#mkdir -p /sys/kernel/debug
#mkdir failed for /sys/kernel/debug/, No such file or directory

所以,很明显,我没有写访问,即使我的 ...

编辑:

我可以在 /数据/ 路径中创建文件夹,但没有在 / SYS / 路径...

I can create folder in /data/ path but no in /sys/ path...

有没有人能够在创建文件夹中的 / SYS / 在模拟器环境路径?

Has anybody be able to create folder in /sys/ path in emulator environment?

任何帮助吗?

谢谢!

推荐答案

在所提供的仿真器,这是不可能的,因为Linux内核编译未经激活跟踪选项完成的。

In the provided emulator this is not possible because Linux kernel compilation was done without activating TRACING OPTIONS.

在为了能,它必然是重新编译Linux内核激活所需的选项。

In order to be able, it is necessarily to recompile Linux kernel activating the required options.

步骤可以在这里找到:

http://www.linuxforu.com / 2010/11 /内核跟踪与 - ftrace部分-1 /

P.S。由于@zapl和其他参与人。

P.S. Thanks to @zapl and other involved guys.

问候,

这篇关于不能使用,因为写​​访问Android的壳atrace命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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