From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6366 invoked by alias); 18 Apr 2013 00:55:32 -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 6355 invoked by uid 89); 18 Apr 2013 00:55:31 -0000 X-Spam-SWARE-Status: No, score=-4.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE autolearn=ham version=3.3.1 Received: from mail-oa0-f47.google.com (HELO mail-oa0-f47.google.com) (209.85.219.47) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 18 Apr 2013 00:55:31 +0000 Received: by mail-oa0-f47.google.com with SMTP id n9so2210413oag.20 for ; Wed, 17 Apr 2013 17:55:29 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.182.226.136 with SMTP id rs8mr4019408obc.50.1366246529490; Wed, 17 Apr 2013 17:55:29 -0700 (PDT) Received: by 10.182.1.100 with HTTP; Wed, 17 Apr 2013 17:55:29 -0700 (PDT) Date: Thu, 18 Apr 2013 00:55:00 -0000 Message-ID: Subject: Accessing user-space global variables in timer.profile? From: agentzh To: systemtap@sourceware.org Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2013-q2/txt/msg00040.txt.bz2 Hello! I'm wondering if it is possible to get @var() working the in timer.profile context, just like @cast(). I've tried using @var("var@file") in a timer.profile handler directly, but getting the error Bad $context variable being substituted with literal 0 Maybe we can specify the path to the executable file as a second argument to @var(), just as in @cast()? IMHO, it is very useful if we can get access to user-space global variables of a particular running process in timer.profile when pid() returns the expected pid. Could anyone help me here? Thanks in advance! Best regards, -agentzh