[PATCH v2 0/3] initscript: add support for uprobes scripts
Stefan Hajnoczi
stefanha@redhat.com
Wed Sep 3 12:46:00 GMT 2014
On Tue, Sep 02, 2014 at 11:03:26AM -0400, Jonathan Lebon wrote:
> I'm wondering, could we do without the user needing to
> provide the -u option at all and make it completely
> transparent instead?
That's a nice idea.
> The only question is how/where this setting would be
> remembered. One way I can think of right now is to simply
> touch a blank file in the CACHE_PATH's uprobes directory for
> each script that requires it, but maybe there's a more
> elegant method.
The $CACHE_PATH/$SCRIPT.opts file seems like the logical place to save
it. Currently the format is:
$(uname -a)
stap compile opts
We can add a new line extra options (in a backwards-compatible fashion
to avoid breaking existing cache directories). If it contains
--load-uprobes then staprun will be invoked with
-u$CACHE_PATH/uprobes/uprobes.ko.
Stefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/systemtap/attachments/20140903/8ace3622/attachment.sig>
More information about the Systemtap
mailing list