This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: [PATCH v2 0/3] initscript: add support for uprobes scripts
- From: Jonathan Lebon <jlebon at redhat dot com>
- To: Stefan Hajnoczi <stefanha at redhat dot com>
- Cc: systemtap at sourceware dot org, fche at redhat dot com
- Date: Tue, 2 Sep 2014 11:03:26 -0400 (EDT)
- Subject: Re: [PATCH v2 0/3] initscript: add support for uprobes scripts
- Authentication-results: sourceware.org; auth=none
- References: <20140901121508 dot GA7855 at stefanha-thinkpad dot redhat dot com>
Hi Stefan,
I'm wondering, could we do without the user needing to
provide the -u option at all and make it completely
transparent instead?
I.e. the initscript could always use the new
--save-uprobes switch, and remember whether uprobes.ko was
built or not so that at runtime, it appropriately appends
-u to the staprun command.
This also works around overriding the '-u' option in the
config file, which could previously be used to enable
unoptimized mode.
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.