public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "tomas.vanek at fbl dot cz" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug tdep/29738] Arm M-profile dwarf2 unwinder performance suffers from exponential grows
Date: Thu, 03 Nov 2022 08:43:39 +0000 [thread overview]
Message-ID: <bug-29738-4717-nDxx8hGELG@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-29738-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=29738
tomas.vanek at fbl dot cz changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Arm v8 M-profile secure |Arm M-profile dwarf2
|extension dwarf2 unwinder |unwinder performance
|performance |suffers from exponential
| |grows
--- Comment #4 from tomas.vanek at fbl dot cz ---
(In reply to Luis Machado from comment #3)
> I suppose we'd have the same issue with non-secure m-profiles, as they'd
> need to do 3 ^ number_of_frame calls as well, based on this code:
>
> else if (tdep->is_m)
> {
> CORE_ADDR sp
> = get_frame_register_unsigned (this_frame, ARM_SP_REGNUM);
> CORE_ADDR msp
> = get_frame_register_unsigned (this_frame,
> tdep->m_profile_msp_regnum);
> CORE_ADDR psp
> = get_frame_register_unsigned (this_frame,
> tdep->m_profile_psp_regnum);
Yes, the problem exists on all m-profiles. I edited the bug summary.
As I wrote in the reply to Torbjorn email from 31th Oct (you should have
received a CC, didn't you?), the exponential growth has the base "only" 2 for
m-profile w/o the security extension, because ARM_SP_REGNUM is read from CFA in
dwarf2 cache and does not generate new get_frame_register_unsigned() request.
Unfortunately each exponential base greater than 1 is strong enough to spoil
the performance. If the debugged app has 16 consecutive dwarf2 frames the 'bt'
command is for very very patient users only.
--
You are receiving this mail because:
You are on the CC list for the bug.
next prev parent reply other threads:[~2022-11-03 8:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-31 18:18 [Bug tdep/29738] New: Arm v8 M-profile secure extension dwarf2 unwinder performance tomas.vanek at fbl dot cz
2022-11-02 8:16 ` [Bug tdep/29738] " luis.machado at arm dot com
2022-11-02 16:26 ` luis.machado at arm dot com
2022-11-03 8:20 ` luis.machado at arm dot com
2022-11-03 8:43 ` tomas.vanek at fbl dot cz [this message]
2022-11-03 8:44 ` [Bug tdep/29738] Arm M-profile dwarf2 unwinder performance suffers from exponential growth tomas.vanek at fbl dot cz
2022-11-04 11:04 ` tomas.vanek at fbl dot cz
2022-11-04 15:27 ` torbjorn.svensson at st dot com
2023-02-02 3:43 ` brobecker at gnat dot com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-29738-4717-nDxx8hGELG@http.sourceware.org/bugzilla/ \
--to=sourceware-bugzilla@sourceware.org \
--cc=gdb-prs@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).