public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/10830] New: new pp() variant for source-level probe point name
@ 2009-10-22 16:29 fche at redhat dot com
  2009-10-22 17:58 ` [Bug translator/10830] " jistone at redhat dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: fche at redhat dot com @ 2009-10-22 16:29 UTC (permalink / raw)
  To: systemtap

As it is, pp() from within a process.mark probe returns something like
process(..).statement(23748234), whereas the original mark() would be
rather more informative appropriate.

One problem is that the current rewriting machinery 
(sdt_query::handle_query_module) creates a synthetic probe that maintains
no relationship to the original one.   If it created an alias_derived_probe,
then at least a aliaswise derivation chain would be preserved.

Considering that existing aliases like "syscall.open" result in pp()'s that
are the most-expanded, 'kernel.function("...")' strings, we may also need
another pp() variant that gives the least-expanded (but including wildcard
expansions) probe point -- i.e., the topmost alias name.  For this function,
say, pp1(), we could return syscall.open and indeed process("...").mark("...").

The future data emitted into the generated C code to enable pp1() could be
conditionally compiled in iff pp1() is present in the script code -- kind of
like what we do for STP_NEED_SYMBOL_DATA etc.

-- 
           Summary: new pp() variant for source-level probe point name
           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=10830

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

^ permalink raw reply	[flat|nested] 11+ messages in thread
[parent not found: <bug-10830-1110@http.sourceware.org/bugzilla/>]

end of thread, other threads:[~2010-10-25 18:19 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-22 16:29 [Bug translator/10830] New: new pp() variant for source-level probe point name fche at redhat dot com
2009-10-22 17:58 ` [Bug translator/10830] " jistone at redhat dot com
2009-10-22 18:05 ` jistone at redhat dot com
2010-01-18 20:16 ` fche at redhat dot com
2010-03-16 18:20 ` jistone at redhat dot com
2010-06-23 11:43 ` jistone at redhat dot com
2010-06-23 16:43 ` mjw at redhat dot com
2010-06-23 23:09 ` przemyslaw at pawelczyk dot it
2010-06-24  7:10 ` fche at redhat dot com
2010-06-24 18:47 ` jistone at redhat dot com
     [not found] <bug-10830-1110@http.sourceware.org/bugzilla/>
2010-10-25 18:19 ` fche 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).