不能使用,因为写​​访问Android的壳atrace命令命令、Android、atrace

2023-09-04 13:10:53 作者:年少怎能不多情i

如果我尝试 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.

问候,