This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

SystemTap + Android | Compiling Script | ERROR


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]