public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/10485] New: auto-path tapset support for process.* probes
@ 2009-08-05 17:12 fche at redhat dot com
  2009-08-06  9:27 ` [Bug translator/10485] " mjw at redhat dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: fche at redhat dot com @ 2009-08-05 17:12 UTC (permalink / raw)
  To: systemtap

For separately-installed packages that may carry systemtap tapset
files, and even for systemtap itself (bug #10204), it's desirable
to have an additional path resolution mechanism for process() probes.
Specifically, it's undesirable to have to change the .stp files, just
because the installation prefix may have changed (so an executable or
library ended up in /usr/local/libexec/foo vs. /usr/libexec/foo).

So, consider this.  Let's extend the tapset search logic, so that
an extra subdirectory is searched: "$prefix/share/systemtap/tapset/PATH".
Underneath that, a subdirectory structure parallel to "/" would appear,
kind of like "/usr/src/debug" on fedora.  In there, tapset files may refer
to process("name") probes.  Those "name" strings will generally be unqualified
as written, but the translator would insert the "/subpath/" parts.  So:

$prefix/share/systemtap/tapset/PATH/usr/libexec/foobar.stp:
   probe process("my-program"). ... { }
would be treated as
   probe foobar = process("/usr/libexec/my-program") ... { }

This would allow separately built applications / shlibs to drop in additional
files under .../tapset/PATH/... and have stap find the binaries without an
further ado.

-- 
           Summary: auto-path tapset support for process.* probes
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: fche at redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=10485

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-08-03 18:16 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-10485-6586@http.sourceware.org/bugzilla/>
2012-12-18 12:35 ` [Bug translator/10485] auto-path tapset support for process.* probes mjw at redhat dot com
2012-12-18 12:56 ` v.ondruch+sourceware-bz at gmail dot com
2012-12-20 13:57 ` v.ondruch+sourceware-bz at gmail dot com
2016-06-16 20:24 ` fche at redhat dot com
2016-08-03 18:16 ` flu at redhat dot com
2009-08-05 17:12 [Bug translator/10485] New: " fche at redhat dot com
2009-08-06  9:27 ` [Bug translator/10485] " mjw at redhat dot com
2009-08-06 14:57 ` fche at redhat dot com
2009-08-07  9:20 ` mjw at redhat dot com
2009-08-24 20:59 ` mjw at redhat dot com

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).