From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10320 invoked by alias); 9 Jun 2007 21:16:20 -0000 Received: (qmail 10312 invoked by uid 22791); 9 Jun 2007 21:16:19 -0000 X-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,DK_POLICY_SIGNSOME,DNS_FROM_RFC_ABUSE,SPF_PASS,TW_NV X-Spam-Check-By: sourceware.org Received: from e3.ny.us.ibm.com (HELO e3.ny.us.ibm.com) (32.97.182.143) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 09 Jun 2007 21:16:17 +0000 Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [9.56.227.234]) by e3.ny.us.ibm.com (8.13.8/8.13.8) with ESMTP id l59KDWtw015863 for ; Sat, 9 Jun 2007 16:13:32 -0400 Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by d01relay02.pok.ibm.com (8.13.8/8.13.8/NCO v8.3) with ESMTP id l59LGDjS525160 for ; Sat, 9 Jun 2007 17:16:13 -0400 Received: from d01av02.pok.ibm.com (loopback [127.0.0.1]) by d01av02.pok.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l59LGCvx010479 for ; Sat, 9 Jun 2007 17:16:12 -0400 Received: from [9.47.18.79] (dyn9047018079.beaverton.ibm.com [9.47.18.79]) by d01av02.pok.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id l59LGCo2010468; Sat, 9 Jun 2007 17:16:12 -0400 Subject: Re: Workarounds for very useful developer userspace tracing scripts From: Jim Keniston To: argetek senvx Cc: systemtap@sourceware.org In-Reply-To: <7d5f758c0706091312h7cc76be4o78225c046cdb9df2@mail.gmail.com> References: <7d5f758c0706081007m7e8c0c06td9d0faa310ebf7f1@mail.gmail.com> <1181330120.3685.28.camel@ibm-ni9dztukfq8.beaverton.ibm.com> <7d5f758c0706091312h7cc76be4o78225c046cdb9df2@mail.gmail.com> Content-Type: text/plain Date: Sat, 09 Jun 2007 21:16:00 -0000 Message-Id: <1181420180.3781.29.camel@ibm-ni9dztukfq8.beaverton.ibm.com> Mime-Version: 1.0 X-Mailer: Evolution 2.8.3 (2.8.3-2.fc6) Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 X-SW-Source: 2007-q2/txt/msg00544.txt.bz2 On Sat, 2007-06-09 at 21:12 +0100, argetek senvx wrote: > Thanks, Jim! > > Although a bit painful for folks like me not needing to mess with the > kernel (anymore :-}), yet gotta admit this seems very very cool (not > minding the interface - any stap guys listening? :-}). Thanks. I think the possibilities of kprobes + uprobes + utrace + SystemTap are indeed cool. I can assure you that stap guys are listening. > > I patched my Ubuntu Feisty kernel 2.6.20-16-386 with the utrace patch > set. Can you please point me to a uprobes patch that would apply to > this cleanly? > > I also checked a *dry-run* application of your patch on a Fedora7 box > I have remote access to (kernel 2.6.21-1.3194.fc7 has utrace already): > > ------------------------------------------------------------------------ > > 2.6.21-1.3194.fc7-x86_64$ patch -up1 --dry-run < ~/uprobes.patch > [Patch tribulations snipped] > > Also, as you can see some of the files (probably added by the patch) > prompt for a 'file to patch'. Am I missing something? I assume you're looking at the May 25/26 posting I mentioned, http://sources.redhat.com/ml/systemtap/2007-q2/msg00399.html I was lazy and attached all 3 patches to that one post. On some mailers, they don't show up as separate attachments. So the patch you have may be all 3 patches concatentated. Each patch ends with a line containing a lone underscore (_), so they should be easy to separate. Just apply them in order. Was that the problem? These patches should apply cleanly to any utrace-enabled kernel, with the possible exceptions of the patches to the Makefiles and Kconfig file, which should be easy to hand-patch. > > Regards, > > ~ argetek Thanks again. Jim