public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug runtime/10821] unwind_frame has an oversized frame
       [not found] <bug-10821-1110@http.sourceware.org/bugzilla/>
@ 2010-11-02 21:51 ` wcohen at redhat dot com
  2010-11-04 19:43 ` mjw at redhat dot com
  2010-11-06  1:27 ` jistone at redhat dot com
  2 siblings, 0 replies; 6+ messages in thread
From: wcohen at redhat dot com @ 2010-11-02 21:51 UTC (permalink / raw)
  To: systemtap

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

William Cohen <wcohen at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wcohen at redhat dot com

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

* [Bug runtime/10821] unwind_frame has an oversized frame
       [not found] <bug-10821-1110@http.sourceware.org/bugzilla/>
  2010-11-02 21:51 ` [Bug runtime/10821] unwind_frame has an oversized frame wcohen at redhat dot com
@ 2010-11-04 19:43 ` mjw at redhat dot com
  2010-11-06  1:27 ` jistone at redhat dot com
  2 siblings, 0 replies; 6+ messages in thread
From: mjw at redhat dot com @ 2010-11-04 19:43 UTC (permalink / raw)
  To: systemtap

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

Mark Wielaard <mjw at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mjw at redhat dot com

--- Comment #4 from Mark Wielaard <mjw at redhat dot com> 2010-11-04 19:42:43 UTC ---
(In reply to comment #3)
> It does add a few hundred bytes even for probes points that don't do unwinding,
> and currently only x86 uses the dwarf unwinder.

We discussed on irc, and if we unwind_state in the context data with
 #if defined(STP_USE_DWARF_UNWINDER) && defined(STP_NEED_UNWIND_DATA)
then it should only be included when really needed.

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

* [Bug runtime/10821] unwind_frame has an oversized frame
       [not found] <bug-10821-1110@http.sourceware.org/bugzilla/>
  2010-11-02 21:51 ` [Bug runtime/10821] unwind_frame has an oversized frame wcohen at redhat dot com
  2010-11-04 19:43 ` mjw at redhat dot com
@ 2010-11-06  1:27 ` jistone at redhat dot com
  2 siblings, 0 replies; 6+ messages in thread
From: jistone at redhat dot com @ 2010-11-06  1:27 UTC (permalink / raw)
  To: systemtap

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

Josh Stone <jistone at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #5 from Josh Stone <jistone at redhat dot com> 2010-11-06 01:26:47 UTC ---
commit 01a2eba

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

* [Bug runtime/10821] unwind_frame has an oversized frame
  2009-10-21 16:06 [Bug runtime/10821] New: " jistone at redhat dot com
  2009-10-21 16:10 ` [Bug runtime/10821] " jistone at redhat dot com
  2009-10-28 11:57 ` mjw at redhat dot com
@ 2009-10-28 12:40 ` mjw at redhat dot com
  2 siblings, 0 replies; 6+ messages in thread
From: mjw at redhat dot com @ 2009-10-28 12:40 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From mjw at redhat dot com  2009-10-28 12:40 -------
One suggestion would be to make unwind_state part of the probe context data
which is staticly allocated. Then we could pass the state from the
[u]context-unwind.stp script-level for use with the unwinder.

It does add a few hundred bytes even for probes points that don't do unwinding,
and currently only x86 uses the dwarf unwinder.

-- 


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

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

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

* [Bug runtime/10821] unwind_frame has an oversized frame
  2009-10-21 16:06 [Bug runtime/10821] New: " jistone at redhat dot com
  2009-10-21 16:10 ` [Bug runtime/10821] " jistone at redhat dot com
@ 2009-10-28 11:57 ` mjw at redhat dot com
  2009-10-28 12:40 ` mjw at redhat dot com
  2 siblings, 0 replies; 6+ messages in thread
From: mjw at redhat dot com @ 2009-10-28 11:57 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From mjw at redhat dot com  2009-10-28 11:57 -------
This comes from the unwind_frame() local struct unwind_state state;
Which is defined in unwind/unwind.h as:

struct unwind_state {
        uleb128_t loc, org;
        const u8 *cieStart, *cieEnd;
        uleb128_t codeAlign;
        sleb128_t dataAlign;
        struct cfa {
                uleb128_t reg, offs;
        } cfa;
        struct unwind_item regs[ARRAY_SIZE(reg_info)];
        unsigned stackDepth:8;
        unsigned version:8;
        const u8 *label;
        const u8 *stack[STP_MAX_STACK_DEPTH];
};

So with struct unwind_item regs[ARRAY_SIZE(reg_info)]; that is pretty big...

It would be nice if we could allocate this per thread/cpu.

-- 


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

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

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

* [Bug runtime/10821] unwind_frame has an oversized frame
  2009-10-21 16:06 [Bug runtime/10821] New: " jistone at redhat dot com
@ 2009-10-21 16:10 ` jistone at redhat dot com
  2009-10-28 11:57 ` mjw at redhat dot com
  2009-10-28 12:40 ` mjw at redhat dot com
  2 siblings, 0 replies; 6+ messages in thread
From: jistone at redhat dot com @ 2009-10-21 16:10 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From jistone at redhat dot com  2009-10-21 16:10 -------
Commit 1d2cd5ff relaxes the -Wframe-larger-than check as a temporary workaround...

-- 


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

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

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

end of thread, other threads:[~2010-11-06  1:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-10821-1110@http.sourceware.org/bugzilla/>
2010-11-02 21:51 ` [Bug runtime/10821] unwind_frame has an oversized frame wcohen at redhat dot com
2010-11-04 19:43 ` mjw at redhat dot com
2010-11-06  1:27 ` jistone at redhat dot com
2009-10-21 16:06 [Bug runtime/10821] New: " jistone at redhat dot com
2009-10-21 16:10 ` [Bug runtime/10821] " jistone at redhat dot com
2009-10-28 11:57 ` mjw at redhat dot com
2009-10-28 12:40 ` 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).