From: Leon Romanovsky <leon@kernel.org>
To: Mark Brown <broonie@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>,
Shuah Khan <skhan@linuxfoundation.org>,
Randy Dunlap <rdunlap@infradead.org>,
workflows@vger.kernel.org, linux-doc@vger.kernel.org
Subject: Re: [PATCH] docs: submitting-patches: Limit backtrace trimming to timestamps
Date: Thu, 26 Nov 2026 14:59:59 +0200 [thread overview]
Message-ID: <20261126125959.GL774860@unreal> (raw)
In-Reply-To: <d4848afd-a23a-4119-ac09-1fe5e4681e3a@sirena.org.uk>
On Thu, Nov 26, 2026 at 12:23:36PM +0000, Mark Brown wrote:
> On Thu, Nov 26, 2026 at 10:12:08AM +0200, Leon Romanovsky wrote:
> > From: Leon Romanovsky <leonro@nvidia.com>
>
> > AI tools tend to trim backtraces too far. Taint flags, module lists and
> > module names disappear, which hides that an out-of-tree module was
> > involved or that an in-kernel API was misused, especially a driver API
> > that is not meant for general use.
>
> > Ask authors to remove only the timestamps and drop the example, which
> > shows a trace reduced to bare function names. Timestamps are the one
> > part of a dump that adds only noise.
>
> There's more than that, for example when you get something from a
> syscall on arm64 you've got five frames before you get to the point
> of even invoke_syscall(), and thirty odd registers printed two per line
> the values of which are mostly of minimal interest for posterity. They
> can be very useful, which is why they're printed, but can really benefit
> from some editing a lot of the time.
We can improve the trimming, starting with the point I proposed - the raw stack
trace.
In my experience, the current Documentation example and the trimming suggestion
go too far.
Thanks
next prev parent reply other threads:[~2026-11-26 13:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 8:12 [PATCH] docs: submitting-patches: Limit backtrace trimming to timestamps Leon Romanovsky
2026-11-26 9:45 ` Geert Uytterhoeven
2026-11-26 10:03 ` Leon Romanovsky
2026-11-26 12:23 ` Mark Brown
2026-11-26 12:59 ` Leon Romanovsky [this message]
2026-11-26 13:22 ` Mark Brown
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=20261126125959.GL774860@unreal \
--to=leon@kernel.org \
--cc=broonie@kernel.org \
--cc=corbet@lwn.net \
--cc=linux-doc@vger.kernel.org \
--cc=rdunlap@infradead.org \
--cc=skhan@linuxfoundation.org \
--cc=workflows@vger.kernel.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