This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Setting values in library tapsets from user tapscript?


On Thu, 31 Oct 2019 at 06:34, Frank Ch. Eigler <fche@redhat.com> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]