This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/12276] New: lookup functions & uploaded-data for address->file:line mappings
- From: "fche at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: Wed, 1 Dec 2010 00:02:25 +0000
- Subject: [Bug translator/12276] New: lookup functions & uploaded-data for address->file:line mappings
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=12276
Summary: lookup functions & uploaded-data for
address->file:line mappings
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
AssignedTo: systemtap@sources.redhat.com
ReportedBy: fche@redhat.com
In order to do finer-grain-than-function profiling, it's desirable
to map a random PC to something more precise than [u]symdata() gives.
It may be practical to upload subsets/variants of the .debug_line data,
in order to enable a [u]symfileline() function that would produce a
file:line# string. With that, this ditty should give a nice
line-by-line profile, as in opannotate --assembly.
global prof
probe timer.profile {
prof [(user_mode() ? usymfileline(uaddr()) : symfileline(addr() /*?*/)] <<< 1
}
probe end {
foreach (fileline+ in prof) {
printf("%20s %6d\n", fileline, @count(prof[fileline]))
}
}
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.