From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12060 invoked by alias); 7 Jun 2013 23:23:17 -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 12051 invoked by uid 89); 7 Jun 2013 23:23:17 -0000 X-Spam-SWARE-Status: No, score=-3.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS autolearn=ham version=3.3.1 Received: from mail-oa0-f43.google.com (HELO mail-oa0-f43.google.com) (209.85.219.43) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 07 Jun 2013 23:23:16 +0000 Received: by mail-oa0-f43.google.com with SMTP id i7so2346952oag.16 for ; Fri, 07 Jun 2013 16:23:15 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.182.120.196 with SMTP id le4mr643115obb.57.1370647395337; Fri, 07 Jun 2013 16:23:15 -0700 (PDT) Received: by 10.182.65.195 with HTTP; Fri, 7 Jun 2013 16:23:15 -0700 (PDT) In-Reply-To: <51AD246B.3060402@redhat.com> References: <51755D3D.6020004@redhat.com> <5175E28B.9050500@redhat.com> <51AD246B.3060402@redhat.com> Date: Fri, 07 Jun 2013 23:23:00 -0000 Message-ID: Subject: Re: Accessing user-space global variables in timer.profile? From: agentzh To: Josh Stone Cc: David Smith , systemtap@sourceware.org Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2013-q2/txt/msg00259.txt.bz2 Hello Josh! On Mon, Jun 3, 2013 at 6:19 PM, Josh Stone wrote: > Very cool! Glad you like it :) > In fact, if we can tease the script portions of this away > from perl-generation, it would be great to make an example script out of > this. Hey, I'm sure if you're probing perl, then you're perfectly > comfortable writing perl to drive stap, but we need to be kinder in the > examples we present. :) > Fair enough :) > If I read it correctly, the dynamic pieces of this script are mostly > just to avoid repeating yourself - is that right? I think with a > parameter for $perl_path, you can do the rest with macros. Maybe a > second parameter for the $minor_version variations. > Yes, that's correct. > I certainly won't force you to change, but it would make a nice in-tree > showcase for @var-module support. :) I'm glad to maintain a perl-free in-tree version of this tool. I can make it into a separate patch if you'd accept it :) Thanks! -agentzh