public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/10045] New: process.syscall(NUM) probes
@ 2009-04-08 12:27 fche at redhat dot com
  2009-04-13 14:19 ` [Bug translator/10045] " dsmith at redhat dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: fche at redhat dot com @ 2009-04-08 12:27 UTC (permalink / raw)
  To: systemtap

In the future, we will probably extend or twin the syscall.* tapset
to utrace-based high-performance probes.  However, utrace per se doesn't
provide efficient per-syscall-type filtering, so if it were implemented
thusly:

probe process.syscall.read = process.syscall {
  if ($syscall_nr!=30) next
  arg1=@cast(...)
}
....

then multiple syscall probes can't be very efficiently implemented,
since it would translate to a chain of if/else's or worse, just to
evaluate the syscall_nr comparison/rejection logic.

If OTOH the syscall number was pushed into the probe point, as in
  probe process.syscall(NUM) {...}
then the translator can emit a more efficient switch block in case
of multiple syscall probes.

-- 
           Summary: process.syscall(NUM) 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=10045

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

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

end of thread, other threads:[~2009-04-16 19:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-08 12:27 [Bug translator/10045] New: process.syscall(NUM) probes fche at redhat dot com
2009-04-13 14:19 ` [Bug translator/10045] " dsmith at redhat dot com
2009-04-16 17:42 ` fche at redhat dot com
2009-04-16 19:59 ` dsmith 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).