Skip to content

Commit a4c750e

Browse files
author
Marc Zyngier
committed
arm64: Update 'unwinder howto'
Implementing a new unwinder is a bit more involved than writing a couple of helpers, so let's not lure the reader into a false sense of comfort. Instead, let's point out what they should call into, and what sort of parameter they need to provide. Signed-off-by: Marc Zyngier <[email protected]> Reviewed-by: Kalesh Singh <[email protected]> Tested-by: Kalesh Singh <[email protected]> Reviewed-by: Oliver Upton <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 62ae216 commit a4c750e

File tree

1 file changed

+4
-10
lines changed
  • arch/arm64/include/asm/stacktrace

1 file changed

+4
-10
lines changed

arch/arm64/include/asm/stacktrace/common.h

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,11 @@
55
* To implement a new arm64 stack unwinder:
66
* 1) Include this header
77
*
8-
* 2) Provide implementations for the following functions:
9-
* on_overflow_stack(): Returns true if SP is on the overflow
10-
* stack.
11-
* on_accessible_stack(): Returns true is SP is on any accessible
12-
* stack.
13-
* unwind_next(): Performs validation checks on the frame
14-
* pointer, and transitions unwind_state
15-
* to the next frame.
8+
* 2) Call into unwind_next_common() from your top level unwind
9+
* function, passing it the validation and translation callbacks
10+
* (though the later can be NULL if no translation is required).
1611
*
17-
* See: arch/arm64/include/asm/stacktrace.h for reference
18-
* implementations.
12+
* See: arch/arm64/kernel/stacktrace.c for the reference implementation.
1913
*
2014
* Copyright (C) 2012 ARM Ltd.
2115
*/

0 commit comments

Comments
 (0)