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]

Re: [PATCH v2 0/3] initscript: add support for uprobes scripts


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

Attachment: pgpyCybyA0NX7.pgp
Description: PGP signature


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