From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11296 invoked by alias); 23 Apr 2013 19:08:04 -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 11285 invoked by uid 89); 23 Apr 2013 19:08:03 -0000 X-Spam-SWARE-Status: No, score=-3.7 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-ob0-f169.google.com (HELO mail-ob0-f169.google.com) (209.85.214.169) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 23 Apr 2013 19:08:02 +0000 Received: by mail-ob0-f169.google.com with SMTP id tb18so825071obb.14 for ; Tue, 23 Apr 2013 12:08:01 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.60.56.36 with SMTP id x4mr17474866oep.25.1366744081401; Tue, 23 Apr 2013 12:08:01 -0700 (PDT) Received: by 10.182.80.228 with HTTP; Tue, 23 Apr 2013 12:08:01 -0700 (PDT) In-Reply-To: <5175E28B.9050500@redhat.com> References: <51755D3D.6020004@redhat.com> <5175E28B.9050500@redhat.com> Date: Tue, 23 Apr 2013 19:08: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/msg00059.txt.bz2 Hello! On Mon, Apr 22, 2013 at 6:23 PM, Josh Stone wrote: > > So we'll need a @var which at least hints which module holds it, as > described in http://sourceware.org/bugzilla/show_bug.cgi?id=11096#c5 > > That's talking about functions, but timer.profile is similarly context-free. > Yes! This is exactly what I'm looking for :) > Once we have @var-module support internally, then we can also play games > with defaulting the module, using the target object for most process.* > probes (as @var does now), but perhaps using the -c CMD executable for > @var used in functions and context-free probes. > I'm fine with explicitly specifying the module name in @var() since I'm generating the stap script on-the-fly with Perl. But this is feature is a good plus anyway :) > Hope that makes sense. So it's something feasible, I think, but we > can't do it just yet. > Good to know it is doable :) Thanks! -agentzh