From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: Jules Maselbas <jmaselbas@kalray.eu>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] common: add printf debugging automation
Date: Mon, 7 Mar 2022 18:06:01 +0100 [thread overview]
Message-ID: <5c85b663-8848-b84d-c687-bc467c6c1fa0@pengutronix.de> (raw)
In-Reply-To: <20220306224901.GC18417@tellis.lin.mbt.kalray.eu>
Hello Jules,
On 06.03.22 23:49, Jules Maselbas wrote:
> Hi Ahmad,
>
> On Sat, Mar 05, 2022 at 11:20:13PM +0100, Ahmad Fatoum wrote:
>> This allows automating pinpointing of breakage outside PBL. For example
>> if barebox is stuck during startup:
>>
>> - Turn on CONFIG_DEBUG_LL and CONFIG_DEBUG_INITCALLS
>> - Note last $initcall executed
> By $initcall are you talking about the function name or about the
> initcall address during startup ?
Function name, that's why KALLSYMS is required. It's not strictly necessary
though and code could just check if the first character is a digit and accept
an address in that case. I will do this for v2.
>> diff --git a/common/Kconfig b/common/Kconfig
>> index b8c3e34c0a58..2a35b43e2717 100644
>> --- a/common/Kconfig
>> +++ b/common/Kconfig
>> @@ -1592,6 +1592,21 @@ config ASAN
>> Enables ASAN (AddressSANitizer) - runtime memory debugger,
>> designed to find out-of-bounds accesses and use-after-free bugs.
>>
>> +config FTRACE
>> + bool "Enable function tracing (Only for debugging!)
> missing closing quote here --------------------------------^
> which generated the following warning when building:
> common/Kconfig:1583:warning: multi-line strings not supported
Thanks, will fix for v2.
Cheers,
Ahmad
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
prev parent reply other threads:[~2022-03-07 17:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-05 22:20 Ahmad Fatoum
2022-03-06 22:49 ` Jules Maselbas
2022-03-07 17:06 ` Ahmad Fatoum [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=5c85b663-8848-b84d-c687-bc467c6c1fa0@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=jmaselbas@kalray.eu \
/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