This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Custom loader for STAP
- From: Arkady <arkady dot miasnikov at gmail dot com>
- To: systemtap at sourceware dot org
- Date: Wed, 24 May 2017 14:14:12 +0300
- Subject: Custom loader for STAP
- Authentication-results: sourceware.org; auth=none
Hi,
I am trying to insmod the STAP driver without the staprun. I have
figured out how to do that by writing to the .cmd file - Python script
is here https://github.com/larytet/YALAS/blob/master/generate_messages.py
The approach works fine with the modern (?) kernels. In the CentOS 6.9
folder /sys/kernel/debug/systemtap does not appear after I insmod the
module. Back to the strace and I see this in CentOS 6.9
https://github.com/larytet/YALAS/blob/master/strace.log#L314
I am looking in the staprun source code functions
init_staprun()->insert_stap_module()->insert_module()
I do not see anything special.
After I use staprun once I can insmod manually - the .cmd folder is
getting created. Next boot changes something in the debugfs and I have
to execute staprun again.
There is a "secret" ingredient, but I am missing it.
I will appreciate any tip.
Thanks