public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug tapsets/6580] New: revamp backtrace-related tapset functions
@ 2008-05-29 19:31 fche at redhat dot com
  2008-08-20 12:27 ` [Bug tapsets/6580] " fche at redhat dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: fche at redhat dot com @ 2008-05-29 19:31 UTC (permalink / raw)
  To: systemtap

print_stack, backtrace, probefunc, print_backtrace, caller* are
IMO a mess.  Let's rationalize them by deprecating these and
adding some new functions:

stack:long (n:long)        - return PC at stack unwind level N
ustack:long (n:long)       - return PC at user-space stack unwind level N; 
                             useful if kernel-side probe is active
callers:string (n:long)    - return stack(0) stack(1) ... stack(n) as a string
ucallers:string (n:long)   - return ustack(0) ustack (1) ... ustack(n)
symname:string (addr:long) - return the kernel- or user-space symbol name
                             for the given address
symdata:string (addr:long) - likewise, adding [module] +offset/size 
psyms (callers:string)     - print symdata() for all addresses in callers

Backward compatibility:
  function backtrace() { return callers (-1) }
  function print_stack(s) { psyms (s) }
  function print_backtrace() { psyms (callers (-1)) }
  function caller_addr() { return stack (1) }
  function caller() { return symname (caller_addr()) }
  function probefunc() { return symname (stack (0)) }
  function probemod() { return substr(symdata (stack (0)), ....) }

-- 
           Summary: revamp backtrace-related tapset functions
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tapsets
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: fche at redhat dot com


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

------- 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
[parent not found: <bug-6580-6586@http.sourceware.org/bugzilla/>]

end of thread, other threads:[~2012-05-08 18:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-29 19:31 [Bug tapsets/6580] New: revamp backtrace-related tapset functions fche at redhat dot com
2008-08-20 12:27 ` [Bug tapsets/6580] " fche at redhat dot com
2008-09-01 12:33 ` mjw at redhat dot com
2008-09-02 10:15 ` mjw at redhat dot com
2009-03-20 19:33 ` fche at redhat dot com
2009-03-30 11:59 ` mjw at redhat dot com
2010-01-05  9:38 ` mjw at redhat dot com
     [not found] <bug-6580-6586@http.sourceware.org/bugzilla/>
2011-09-08 17:11 ` mjw at redhat dot com
2012-05-08 18:45 ` 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).