From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27414 invoked by alias); 8 Aug 2014 06:33:58 -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 27378 invoked by uid 89); 8 Aug 2014 06:33:54 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_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; Fri, 08 Aug 2014 06:33:53 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s786XpGG020016 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 8 Aug 2014 02:33:51 -0400 Received: from localhost (ovpn-112-27.ams2.redhat.com [10.36.112.27]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s786XoMr014769; Fri, 8 Aug 2014 02:33:51 -0400 From: Stefan Hajnoczi To: systemtap@sourceware.org Cc: "Frank Ch. Eigler" , Josh Stone , Jonathan Lebon , Stefan Hajnoczi Subject: [PATCH 0/2] initscript: add support for uprobes scripts Date: Fri, 08 Aug 2014 06:33:00 -0000 Message-Id: <1407479623-30970-1-git-send-email-stefanha@redhat.com> X-SW-Source: 2014-q3/txt/msg00133.txt.bz2 The initscript currently fails for user-space probing scripts on systems where uprobes.ko is built from source by stap(1). This is because the initscript uses a two-phase "compile and then run" approach: The uprobes.ko module is generated during the compile phase but not copied into the cache directory where modules are placed for the run phase. The staprun(8) command fails because the script module cannot be loaded without uprobes.ko. These patches address the issue by copying uprobes.ko into the cache directory. If a script specifies the -u option in its initscript configuration file, staprun(8) will receive the path to uprobes.ko. There is no change in behavior on systems that do not build uprobes.ko. Stefan Hajnoczi (2): initscript: copy uprobes.ko to cache directory initscript: allow scripts to load uprobes initscript/systemtap.in | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) -- 1.9.3