This is the mail archive of the
mailing list for the systemtap project.
Setting values in library tapsets from user tapscript?
- From: Craig Ringer <craig at 2ndquadrant dot com>
- To: systemtap at sourceware dot org
- Date: Mon, 28 Oct 2019 15:41:27 +0800
- Subject: Setting values in library tapsets from user tapscript?
Related to my earlier post, is there any way to supply macro values to
Say I need to define @EXECPATH in "myexec.stp" so I can use @var and
@cast etc for references to the executable that "myexec.stp" targets.
Is there any way to do that from the main user tapscript, or the commandline?
Library tapsets don't seem to see @define'd macros from user
tapscripts, which is sensible. But I didn't find a way to define them
on the commandline either; -D macros don't appear to be visible to the
tapscripts, just the generated C code.
Using -G doesn't help since you can't write @var("sym@CU",$someglobal)
I'm struggling to find any way to create a tapset that can probe
globals in postgres :( and I just cannot understand why it's this hard
in a tool that's so smooth and simple in most ways.
Craig Ringer http://www.2ndQuadrant.com/
2ndQuadrant - PostgreSQL Solutions for the Enterprise