public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug tapsets/23761] New: generalized @entry
@ 2018-10-11 18:46 fche at redhat dot com
  2018-10-18 16:26 ` [Bug tapsets/23761] " fche at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: fche at redhat dot com @ 2018-10-11 18:46 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=23761

            Bug ID: 23761
           Summary: generalized @entry
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tapsets
          Assignee: systemtap at sourceware dot org
          Reporter: fche at redhat dot com
  Target Milestone: ---

With the arrival of non-[uk]retprobe mechanisms to trap return events (e.g.,
tp_syscall.*.return), the traditional @entry(expression) trick is no longer
directly workable.  This is because there is no mechanically-obvious entry
probe to collect the expression, and @entry($var) may need $var that are not
available at all in that form.

So we need to generalize this a bit.

One way is to introduce some macros that explicitly implement the @entry()
machinations behind the scenes:

- one macro to 'probe entry point & save variables'
- and one macro to 'probe exit point & expose saved variables'

used something like

probe syscall.* { @save(myargstr,argstr) }

probe syscall.*.return { 
    @restore(myargstr)
    log(myargstr)
}

which would expand to code that manages a myargstr global array, tid()-indexed.

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

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

* [Bug tapsets/23761] generalized @entry
  2018-10-11 18:46 [Bug tapsets/23761] New: generalized @entry fche at redhat dot com
@ 2018-10-18 16:26 ` fche at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: fche at redhat dot com @ 2018-10-18 16:26 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=23761

Frank Ch. Eigler <fche at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|systemtap at sourceware dot org    |juddin at redhat dot com

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

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

end of thread, other threads:[~2018-10-18 16:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-11 18:46 [Bug tapsets/23761] New: generalized @entry fche at redhat dot com
2018-10-18 16:26 ` [Bug tapsets/23761] " 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).