From: Luis Machado <lgustavo@codesourcery.com>
To: Yao Qi <qiyaoltc@gmail.com>, <gdb-patches@sourceware.org>
Subject: Re: [PATCH 3/3] Use code cache in aarch64 prologue analyzer
Date: Wed, 07 Dec 2016 18:26:00 -0000 [thread overview]
Message-ID: <965901df-04c7-ab45-5e51-34afa9924559@codesourcery.com> (raw)
In-Reply-To: <1481036629-21542-4-git-send-email-yao.qi@linaro.org>
On 12/06/2016 09:03 AM, Yao Qi wrote:
> This patch change aarch prologue analyzer using code cache, in order
> to improve the performance of remote debugging.
>
> gdb.perf/skip-prologue.exp (measured by wall-time) is improved when
> the program is compiled without debug information.
>
> Original Patched Original Patched
> without dbg without dbg with dbg with dbg
>
> / 11.1635239124 9.99472999573 9.65339517593 9.66648793221
> -fstack-protector-all 11.2560930252 9.338118 9.63896489143 9.59474396706
>
> gdb:
>
> 2016-12-06 Yao Qi <yao.qi@linaro.org>
>
> * aarch64-tdep.c (instruction_reader::read): Call
> read_code_unsigned_integer instead of
> read_memory_unsigned_integer.
> ---
> gdb/aarch64-tdep.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/gdb/aarch64-tdep.c b/gdb/aarch64-tdep.c
> index 590dcf6..0175630 100644
> --- a/gdb/aarch64-tdep.c
> +++ b/gdb/aarch64-tdep.c
> @@ -213,7 +213,7 @@ class instruction_reader : public abstract_instruction_reader
> public:
> ULONGEST read (CORE_ADDR memaddr, int len, enum bfd_endian byte_order)
> {
> - return read_memory_unsigned_integer (memaddr, len, byte_order);
> + return read_code_unsigned_integer (memaddr, len, byte_order);
> }
> };
>
>
The series LGTM except for the nit in 1/3. FTR, we have a similar local
patch for ARM and also PowerPC to get the performance numbers up a bit.
It helps with remote debugging as well, since we can read from cache
instead of fetching it over and over again from the target.
next prev parent reply other threads:[~2016-12-07 18:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-06 15:04 [PATCH 0/3] Use code cache in arm and " Yao Qi
2016-12-06 15:04 ` [PATCH 1/3] Compile gdb.perf/skip-prologue.c with and without debug info Yao Qi
2016-12-07 18:24 ` Luis Machado
2016-12-09 9:56 ` Yao Qi
2016-12-06 15:04 ` [PATCH 2/3] Use code cache in arm prologue analyzer Yao Qi
2016-12-06 15:04 ` [PATCH 3/3] Use code cache in aarch64 " Yao Qi
2016-12-07 18:26 ` Luis Machado [this message]
2016-12-09 9:40 ` Yao Qi
2016-12-09 9:57 ` [PATCH 0/3] Use code cache in arm and " Yao Qi
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=965901df-04c7-ab45-5e51-34afa9924559@codesourcery.com \
--to=lgustavo@codesourcery.com \
--cc=gdb-patches@sourceware.org \
--cc=qiyaoltc@gmail.com \
/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