From: Arkady <arkady.miasnikov@gmail.com>
To: systemtap@sourceware.org
Subject: Custom loader for STAP
Date: Wed, 24 May 2017 11:14:00 -0000 [thread overview]
Message-ID: <CANA-60qLa-F2SxC65wCpvPvHM6QQEO8BTf0cNzdmQ03tKLRmvg@mail.gmail.com> (raw)
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
next reply other threads:[~2017-05-24 11:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-24 11:14 Arkady [this message]
2017-05-24 17:28 ` Frank Ch. Eigler
2017-05-25 6:08 ` Arkady
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CANA-60qLa-F2SxC65wCpvPvHM6QQEO8BTf0cNzdmQ03tKLRmvg@mail.gmail.com \
--to=arkady.miasnikov@gmail.com \
--cc=systemtap@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).