[PATCH] arm64: stacktrace: Clarify documentation of EL0 entry frame skipping

Mark Brown broonie at kernel.org
Thu Oct 8 07:14:57 EDT 2020


On Thu, Oct 08, 2020 at 11:15:58AM +0100, Mark Rutland wrote:

> I reckon we should remove the special case entirely rather than trying
> to shore up the comment here -- the related comment in entry.S is stale
> and misleading, and this will be a mystery to unfamiliar readers anyhow.

That works too, so long as the check isn't really doing anything it can
just be deleted and the comment with it - it's certainly one less weird
special case.  So long as all the things relying on it are already gone.

> Does the below patch look ok to you? I suspect the explicit check for the
> terminal case may help with the reliable stacktrace stuff? e.g. we could
> make that return -ENOENT to distinguish a terminal case from a broken
> frame record.

That's almost exactly what I've got in my reliable stacktrace queue,
down to the choice of -ENOENT for reporting the end of an intact stack.
I'll pick this up for my changes if it doesn't get picked up separately.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20201008/0fc1aaa1/attachment.sig>


More information about the linux-arm-kernel mailing list