From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4351 invoked by alias); 13 Jan 2020 06:42:29 -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 4344 invoked by uid 89); 13 Jan 2020 06:42:29 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Google-Smtp-Source:APXvYqz, Related, oct, Oct X-HELO: mail-lf1-f65.google.com Received: from mail-lf1-f65.google.com (HELO mail-lf1-f65.google.com) (209.85.167.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 13 Jan 2020 06:42:27 +0000 Received: by mail-lf1-f65.google.com with SMTP id m30so5972604lfp.8 for ; Sun, 12 Jan 2020 22:42:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ct7BNgxi6lz0E6Uke6X3wlO9egKLCuMShaOosMr/RRM=; b=skrk5nWgnYGjPvyGMWfKbOCHiZycYGFDzRoQ/ezF7vZZhy394yG+L+Y6LR55UMIaAz flowGBbBXx1as0hQoQjPrHGjKT7ymNmmRPH4IiZnw0i1TPIER2u0fHRy5jM4upOL2POV 8jwaoBT1QhZvFQph15YZStHwU1h9/wMlTivtqQcz+LaM+ZAIYFBW/PLvzlHuHogyX2RZ Lk/IT+pJoKdckwPj78Vaa9DppQ7+rwzLLj9yfMfmj8ogyO0BjgwLTUanUGqUvFWLpQPS 9+G99sMSBKC6rO/xs9cPeoCL/alZPBIhiftrFiNtwYua77ABVIz17cAZeCRhcAHcg3RM 4knA== MIME-Version: 1.0 References: <87y2x1eucp.fsf@redhat.com> In-Reply-To: <87y2x1eucp.fsf@redhat.com> From: Craig Ringer Date: Mon, 13 Jan 2020 06:42:00 -0000 Message-ID: Subject: Re: Setting values in library tapsets from user tapscript? To: "Frank Ch. Eigler" Cc: systemtap@sourceware.org Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2020-q1/txt/msg00006.txt On Thu, 31 Oct 2019 at 06:34, Frank Ch. Eigler wrote: > > craig wrote: > > > Related to my earlier post, is there any way to supply macro values to > > referenced tapsets? [...] > > Yeah, indirectly. [...] - create a new foo.stpm file in a new directory /zoo > > Apologies for the late reply. That did the trick. The Makefile for the relevant programs now generates a templated .stpm that defines appropriate macros. Then a regular tapset uses those macros in a probe alias. So the tapscripts using the tapset don't have to care. The invoker supplies the correct include path and it works. It'd be good to be able to resolve @var etc against userspace modules as discussed before, but it can be worked around this way at least. -- Craig Ringer http://www.2ndQuadrant.com/ 2ndQuadrant - PostgreSQL Solutions for the Enterprise