public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/6941] better prologue heuristics needed for userspace (non-regparm)
       [not found] <bug-6941-6586@http.sourceware.org/bugzilla/>
@ 2012-06-16 16:13 ` fche at redhat dot com
  2012-06-16 16:33 ` fche at redhat dot com
  2014-02-28 19:10 ` jlebon at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: fche at redhat dot com @ 2012-06-16 16:13 UTC (permalink / raw)
  To: systemtap

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

--- Comment #2 from Frank Ch. Eigler <fche at redhat dot com> 2012-06-16 16:12:26 UTC ---
*** Bug 10762 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] 4+ messages in thread

* [Bug translator/6941] better prologue heuristics needed for userspace (non-regparm)
       [not found] <bug-6941-6586@http.sourceware.org/bugzilla/>
  2012-06-16 16:13 ` [Bug translator/6941] better prologue heuristics needed for userspace (non-regparm) fche at redhat dot com
@ 2012-06-16 16:33 ` fche at redhat dot com
  2014-02-28 19:10 ` jlebon at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: fche at redhat dot com @ 2012-06-16 16:33 UTC (permalink / raw)
  To: systemtap

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jan.kratochvil at redhat
                   |                            |dot com, mjw at redhat dot
                   |                            |com

--- Comment #3 from Frank Ch. Eigler <fche at redhat dot com> 2012-06-16 16:32:58 UTC ---
With gcc VTA, prologue searching at -O2 is becoming unnecessary.  However, at
-O0 it is becoming essential, for gcc does not run VTA processing at -O0, and
the dwarf location list data it emits is only accurate in the post-prologue
section.  So we need to figure out whether the given target executable was
built with -O0, and then perform proper prologue search heuristics.

To find out -O*, one can look at the DW_AT_producer of the
DW_TAG_compile_unit,; recent gcc emits the compiler option list in there.  We
can look for the absence of -O[123] and/or the presence of -O0, or
-fno-var-tracking.  It's a heuristic, but so there.  See gdb's
dwarf2read.c:process_full_comp_unit() to see its set of related heuristics.

See gdb's symtab.c:skip_prologue_sal() and skip_prologue_using_lineinfo() for
the actual prologue-skipping heuristics, which are similar to our own in
dwflpp.cxx:resolve_prologue_endings().

-- 
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] 4+ messages in thread

* [Bug translator/6941] better prologue heuristics needed for userspace (non-regparm)
       [not found] <bug-6941-6586@http.sourceware.org/bugzilla/>
  2012-06-16 16:13 ` [Bug translator/6941] better prologue heuristics needed for userspace (non-regparm) fche at redhat dot com
  2012-06-16 16:33 ` fche at redhat dot com
@ 2014-02-28 19:10 ` jlebon at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: jlebon at redhat dot com @ 2014-02-28 19:10 UTC (permalink / raw)
  To: systemtap

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

Jonathan Lebon <jlebon at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jlebon at redhat dot com
         Resolution|---                         |FIXED

--- Comment #4 from Jonathan Lebon <jlebon at redhat dot com> ---
> With gcc VTA, prologue searching at -O2 is becoming unnecessary.  However,
> at -O0 it is becoming essential, for gcc does not run VTA processing at -O0,
> and the dwarf location list data it emits is only accurate in the
> post-prologue section.  So we need to figure out whether the given target
> executable was built with -O0, and then perform proper prologue search
> heuristics.

The code now runs the prologue searching heuristics only for programs that were
not optimized (or for which there may be reasons to believe location info in
their prologues may be unreliable, such as in older GCC versions). See also the
related PR13420.

Commits 277a2b9 and b5b9879.

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

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

* [Bug translator/6941] better prologue heuristics needed for userspace (non-regparm)
  2008-10-04  0:18 [Bug translator/6941] New: " fche at redhat dot com
@ 2008-10-07 14:37 ` fche at redhat dot com
  0 siblings, 0 replies; 4+ messages in thread
From: fche at redhat dot com @ 2008-10-07 14:37 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From fche at redhat dot com  2008-10-07 14:36 -------
Created an attachment (id=2983)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=2983&action=view)
one possible heuristic

This patch implements one intuitive but insufficient heuristic
for this.  It's saved here for archiving only.

-- 


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

------- 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:[~2014-02-28 19:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-6941-6586@http.sourceware.org/bugzilla/>
2012-06-16 16:13 ` [Bug translator/6941] better prologue heuristics needed for userspace (non-regparm) fche at redhat dot com
2012-06-16 16:33 ` fche at redhat dot com
2014-02-28 19:10 ` jlebon at redhat dot com
2008-10-04  0:18 [Bug translator/6941] New: " fche at redhat dot com
2008-10-07 14:37 ` [Bug translator/6941] " 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).