All of lore.kernel.org
 help / color / mirror / Atom feed
From: Leo Liang <ycliang@andestech.com>
To: Ben Dooks <ben.dooks@codethink.co.uk>
Cc: <u-boot@lists.denx.de>, <ganboing@gmail.com>, <rick@andestech.com>
Subject: Re: [[PATCH v2]] riscv: add backtrace support
Date: Thu, 28 Mar 2024 15:36:54 +0800	[thread overview]
Message-ID: <ZgUeFgh2IMpg19uZ@swlinux02> (raw)
In-Reply-To: <20230905121253.269941-1-ben.dooks@codethink.co.uk>

On Tue, Sep 05, 2023 at 01:12:53PM +0100, Ben Dooks wrote:
> When debugging, it is useful to have a backtrace to find
> out what is in the call stack as the previous function (RA)
> may not have been the culprit.
> 
> Since this adds size to the build, do not add it by default
> and avoid putting it in the SPL build if not needed.
> 
> Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
> ---
> v2:
>   - back to codethink email as sifive account is now gone
>   - add option to build SPL with frame pointer
>     (as suggested by Bo Gan <ganboing@gmail.com>
> ---
>  arch/riscv/Kconfig          | 20 ++++++++++++++++++++
>  arch/riscv/Makefile         |  4 ++++
>  arch/riscv/cpu/start.S      |  1 +
>  arch/riscv/lib/interrupts.c | 35 +++++++++++++++++++++++++++++++++++
>  4 files changed, 60 insertions(+)

Tested-by: Leo Yu-Chi Liang <ycliang@andestech.com>

      reply	other threads:[~2024-03-28  7:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-05 12:12 [[PATCH v2]] riscv: add backtrace support Ben Dooks
2024-03-28  7:36 ` Leo Liang [this message]

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=ZgUeFgh2IMpg19uZ@swlinux02 \
    --to=ycliang@andestech.com \
    --cc=ben.dooks@codethink.co.uk \
    --cc=ganboing@gmail.com \
    --cc=rick@andestech.com \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.