public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: Craig Ringer <craig@2ndquadrant.com>
To: systemtap@sourceware.org
Subject: Re: Path resolution inconsistency between process("binary") and @var("var@cu","module")
Date: Mon, 28 Oct 2019 09:11:00 -0000	[thread overview]
Message-ID: <CAMsr+YGYhBy8LCWuW2XD23eVtuWzhE91KZW9+xLHqxY1WNOdSw@mail.gmail.com> (raw)
In-Reply-To: <CAMsr+YE3uEzFJZX-YgNFfwYoKRgHZNWCLbAb2SDqW6S6OSnuyw@mail.gmail.com>

Further

> But taking a step back: systemtap appears to expand functions once per
> invocation in a probe anyway, so why doesn't the function benefit from
> the focus_on_module() of the probe and work like case [0] without any
> specification of module name at all?
>
> Phew! Ideas?


Further note on this. I since tried the auto_path feature by putting
my library tapset in

    tapsets/PATH/my/path/to/postgres

and used

    stap -I `pwd`/tapsets/ test.stp

but had exactly the same issues. A look at the code suggests that the
auto_path feature, like the PATH search etc, is only effective for
probes, not for @var and @cast .



-- 
 Craig Ringer                   http://www.2ndQuadrant.com/
 2ndQuadrant - PostgreSQL Solutions for the Enterprise

  reply	other threads:[~2019-10-28  9:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-28  5:53 Craig Ringer
2019-10-28  9:11 ` Craig Ringer [this message]
2019-10-30 22:15 ` Frank Ch. Eigler
2019-10-31  5:01   ` Craig Ringer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAMsr+YGYhBy8LCWuW2XD23eVtuWzhE91KZW9+xLHqxY1WNOdSw@mail.gmail.com \
    --to=craig@2ndquadrant.com \
    --cc=systemtap@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).