This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
SystemTap + Android | Compiling Script | ERROR
- From: ayush goel <ayushgoel1610 at gmail dot com>
- To: systemtap at sourceware dot org
- Date: Tue, 25 Oct 2016 09:44:29 -0700
- Subject: SystemTap + Android | Compiling Script | ERROR
- Authentication-results: sourceware.org; auth=none
I’ve been trying to compile stap scripts so that I can run them on my
android. I’ve installed system tap on my linux system, android ndk and
the systemtap android application on my android device. However the
script compilation process is continuously running into error.
I’ve tried the following things:
As per the documentation
(https://sourceware.org/systemtap/wiki/SystemTapOnAndroidARM) I used
the build-module executable providing path to my kernel source code
and the script as arguments however that fails for me giving the
following error:
config/omap.conf: line 1: /root/sukritk/kernel/goldfish/: Is a directory
./build-module: line 92: [: x86: unary operator expected
./build-module: line 92: [: arm: unary operator expected
unknown kernel architecture ''. Check the corresponding file: config/omap.conf
After searching the net, I found that the stap binary inside
installed/bin can also be used instead, therefore I’m running the
following command now
installed/bin/stap -p 4 -v -a arm -B
CROSS_COMPILE=/root/sukritk/android-ndk-r12b/toolchains/bin/arm-linux-androideabi-
-r /root/sukritk/kernel/goldfish/ -m measure
scripts/monitor_fopen.stp
However the above command fails, with the very first error being
"#error "DebugFS is required and was not found in the kernel.”
I’m assuming I have to recompile my kernel source with some kind of
DEBUGFS flag enabled.
However I’m not really sure how to do that.
Any kind of help or comprehensive steps to compile stap scripts so
that I can run them my android device would be sincerely appreciated.
Thanks and Regards
-Ayush