From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22372 invoked by alias); 11 Aug 2014 13:25:50 -0000 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org Received: (qmail 22302 invoked by uid 89); 11 Aug 2014 13:25:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 11 Aug 2014 13:25:48 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s7BDPc6T029427 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 11 Aug 2014 09:25:38 -0400 Received: from localhost (ovpn-112-63.ams2.redhat.com [10.36.112.63]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s7BDPb9X027978; Mon, 11 Aug 2014 09:25:38 -0400 From: Stefan Hajnoczi To: systemtap@sourceware.org Cc: "Frank Ch. Eigler" , Josh Stone , Jonathan Lebon , Masami Hiramatsu , Stefan Hajnoczi Subject: [PATCH v2 3/3] initscript: allow scripts to load uprobes Date: Mon, 11 Aug 2014 13:25:00 -0000 Message-Id: <1407763523-30556-4-git-send-email-stefanha@redhat.com> In-Reply-To: <1407763523-30556-1-git-send-email-stefanha@redhat.com> References: <1407763523-30556-1-git-send-email-stefanha@redhat.com> X-SW-Source: 2014-q3/txt/msg00146.txt.bz2 Scripts that rely on userspace probing must include the -u option in their conf file: # cat /etc/systemtap/conf.d/example.conf example_OPT=-u The uprobe kernel module will be loaded when the script runs. Signed-off-by: Stefan Hajnoczi --- initscript/systemtap.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/initscript/systemtap.in b/initscript/systemtap.in index ebd28e4..d61d480 100755 --- a/initscript/systemtap.in +++ b/initscript/systemtap.in @@ -422,6 +422,12 @@ get_run_opts () { # normalized_opts show=0 for o in $opts; do case $o in + -u) + # Use cached uprobes module, if available + if [ -f "$CACHE_PATH/uprobes/uprobes.ko" ]; then + echo -n "-u$CACHE_PATH/uprobes/uprobes.ko " + fi + ;; -c|-x|-s|-o|-S) [ $o == '-s' ] && o='-b' [ $o == '-o' ] && mode='-D' -- 1.9.3