* [Bug tapsets/6580] revamp backtrace-related tapset functions
[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
1 sibling, 0 replies; 8+ messages in thread
From: mjw at redhat dot com @ 2011-09-08 17:11 UTC (permalink / raw)
To: systemtap
http://sourceware.org/bugzilla/show_bug.cgi?id=6580
--- Comment #6 from Mark Wielaard <mjw at redhat dot com> 2011-09-08 17:11:15 UTC ---
*** Bug 13094 has been marked as a duplicate of this bug. ***
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tapsets/6580] revamp backtrace-related tapset functions
[not found] <bug-6580-6586@http.sourceware.org/bugzilla/>
2011-09-08 17:11 ` [Bug tapsets/6580] revamp backtrace-related tapset functions mjw at redhat dot com
@ 2012-05-08 18:45 ` fche at redhat dot com
1 sibling, 0 replies; 8+ messages in thread
From: fche at redhat dot com @ 2012-05-08 18:45 UTC (permalink / raw)
To: systemtap
http://sourceware.org/bugzilla/show_bug.cgi?id=6580
Frank Ch. Eigler <fche at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|systemtap at sourceware dot |fche at redhat dot com
|org |
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tapsets/6580] revamp backtrace-related tapset functions
2008-05-29 19:31 [Bug tapsets/6580] New: " fche at redhat dot com
` (4 preceding siblings ...)
2009-03-30 11:59 ` mjw at redhat dot com
@ 2010-01-05 9:38 ` mjw at redhat dot com
5 siblings, 0 replies; 8+ messages in thread
From: mjw at redhat dot com @ 2010-01-05 9:38 UTC (permalink / raw)
To: systemtap
------- Additional Comments From mjw at redhat dot com 2010-01-05 09:38 -------
The split between sym*/backtrace() for kernel side and usym*/ubacktrace() for
user side is confusing. We really should deduce from the probe context which one
the user wants.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|mjw at redhat dot com |systemtap at sources dot
| |redhat dot com
Status|ASSIGNED |NEW
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] 8+ messages in thread
* [Bug tapsets/6580] revamp backtrace-related tapset functions
2008-05-29 19:31 [Bug tapsets/6580] New: " fche at redhat dot com
` (3 preceding siblings ...)
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
5 siblings, 0 replies; 8+ messages in thread
From: mjw at redhat dot com @ 2009-03-30 11:59 UTC (permalink / raw)
To: systemtap
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|systemtap at sources dot |mjw at redhat dot com
|redhat dot com |
Status|NEW |ASSIGNED
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] 8+ messages in thread
* [Bug tapsets/6580] revamp backtrace-related tapset functions
2008-05-29 19:31 [Bug tapsets/6580] New: " fche at redhat dot com
` (2 preceding siblings ...)
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
5 siblings, 0 replies; 8+ messages in thread
From: fche at redhat dot com @ 2009-03-20 19:33 UTC (permalink / raw)
To: systemtap
--
Bug 6580 depends on bug 5951, which changed state.
Bug 5951 Summary: process lifetime/memorymap monitor
http://sourceware.org/bugzilla/show_bug.cgi?id=5951
What |Old Value |New Value
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
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] 8+ messages in thread
* [Bug tapsets/6580] revamp backtrace-related tapset functions
2008-05-29 19:31 [Bug tapsets/6580] New: " 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
` (2 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: mjw at redhat dot com @ 2008-09-02 10:15 UTC (permalink / raw)
To: systemtap
------- Additional Comments From mjw at redhat dot com 2008-09-02 10:14 -------
(In reply to comment #1)
> # Translates an address to a function symbol. Might be expensive
> # so use sparingly in probes, try translating only in end probes.
> function uaddr_symbol:string (uaddr: long) %{ /* pure */
> _stp_symbol_snprint(THIS->__retvalue, MAXSTRINGLEN, THIS->uaddr);
> %}
>
> Can be used with something like the following for a quick and dirty "profiler":
>
> stap -d /path/to/my-static-binary -e 'probe timer.ms(100) {t = tid(); if (t !=
> 0) { printf("%s:.%d 0x%xd:%s\n", execname(), tid(), uaddr(),
> uaddr_symbol(uaddr())); } }'
Franks pointed out that I should mention that _stp_symbol_snprint() only kind of
works by accident for user space and isn't reliable. I filed bug #6866 (Extend
stp_symbol_snprintf for user space) with some more explanation and a plan for
making it reliable.
--
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |6866
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] 8+ messages in thread
* [Bug tapsets/6580] revamp backtrace-related tapset functions
2008-05-29 19:31 [Bug tapsets/6580] New: " 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
` (3 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: mjw at redhat dot com @ 2008-09-01 12:33 UTC (permalink / raw)
To: systemtap
------- Additional Comments From mjw at redhat dot com 2008-09-01 12:32 -------
caller()/ucaller() can probably be implemented more efficiently than as full
wrappers around the caller(1)/ucaller(1). For example the following currently
works to get a quick user space symbol, without need to do a full unwind (a full
unwind is necessary for getting anything more). If you just want to get the user
address and symbol (for static binaries included with -d only for now):
# Returns the address in userspace that the current task was at when the
# probe occurred.
function uaddr:long () %{ /* pure */
#include <asm/processor.h>
struct pt_regs *uregs;
uregs = task_pt_regs(current);
THIS->__retvalue = (int64_t) REG_IP(uregs);
%}
# Translates an address to a function symbol. Might be expensive
# so use sparingly in probes, try translating only in end probes.
function uaddr_symbol:string (uaddr: long) %{ /* pure */
_stp_symbol_snprint(THIS->__retvalue, MAXSTRINGLEN, THIS->uaddr);
%}
Can be used with something like the following for a quick and dirty "profiler":
stap -d /path/to/my-static-binary -e 'probe timer.ms(100) {t = tid(); if (t !=
0) { printf("%s:.%d 0x%xd:%s\n", execname(), tid(), uaddr(),
uaddr_symbol(uaddr())); } }'
--
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] 8+ messages in thread
* [Bug tapsets/6580] revamp backtrace-related tapset functions
2008-05-29 19:31 [Bug tapsets/6580] New: " fche at redhat dot com
@ 2008-08-20 12:27 ` fche at redhat dot com
2008-09-01 12:33 ` mjw at redhat dot com
` (4 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: fche at redhat dot com @ 2008-08-20 12:27 UTC (permalink / raw)
To: systemtap
--
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |5951
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] 8+ messages in thread
end of thread, other threads:[~2012-05-08 18:45 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-6580-6586@http.sourceware.org/bugzilla/>
2011-09-08 17:11 ` [Bug tapsets/6580] revamp backtrace-related tapset functions mjw at redhat dot com
2012-05-08 18:45 ` fche at redhat dot com
2008-05-29 19:31 [Bug tapsets/6580] New: " 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
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).