[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+EHjTxqNOU9cjA1Gnur9wp4W4nt9ZXC+y6N9HCEzf4BmPc60w@mail.gmail.com>
Date: Thu, 21 Jul 2022 10:57:36 +0100
From: Fuad Tabba <tabba@...gle.com>
To: Kalesh Singh <kaleshsingh@...gle.com>
Cc: maz@...nel.org, mark.rutland@....com, broonie@...nel.org,
madvenka@...ux.microsoft.com, will@...nel.org, qperret@...gle.com,
james.morse@....com, alexandru.elisei@....com,
suzuki.poulose@....com, catalin.marinas@....com,
andreyknvl@...il.com, vincenzo.frascino@....com,
mhiramat@...nel.org, ast@...nel.org, wangkefeng.wang@...wei.com,
elver@...gle.com, keirf@...gle.com, yuzenghui@...wei.com,
ardb@...nel.org, oupton@...gle.com,
linux-arm-kernel@...ts.infradead.org, kvmarm@...ts.cs.columbia.edu,
linux-kernel@...r.kernel.org, kernel-team@...roid.com
Subject: Re: [PATCH v5 06/17] arm64: stacktrace: Add description of stacktrace/common.h
Hi Kalesh,
On Thu, Jul 21, 2022 at 6:57 AM Kalesh Singh <kaleshsingh@...gle.com> wrote:
>
> Add brief description on how to use stacktrace/common.h to implement
> a stack unwinder.
>
> Signed-off-by: Kalesh Singh <kaleshsingh@...gle.com>
> ---
>
> Changes in v5:
> - Add short description of each required function, per Fuad and Marc
> - Add Reviewed-by tag from Fuad
Actually it's missing :)
Reviewed-by: Fuad Tabba <tabba@...gle.com>
Cheers,
/fuad
>
> arch/arm64/include/asm/stacktrace/common.h | 15 +++++++++++++++
> 1 file changed, 15 insertions(+)
>
> diff --git a/arch/arm64/include/asm/stacktrace/common.h b/arch/arm64/include/asm/stacktrace/common.h
> index 7807752aaab1..be7920ba70b0 100644
> --- a/arch/arm64/include/asm/stacktrace/common.h
> +++ b/arch/arm64/include/asm/stacktrace/common.h
> @@ -2,6 +2,21 @@
> /*
> * Common arm64 stack unwinder code.
> *
> + * To implement a new arm64 stack unwinder:
> + * 1) Include this header
> + *
> + * 2) Provide implementations for the following functions:
> + * on_overflow_stack(): Returns true if SP is on the overflow
> + * stack.
> + * on_accessible_stack(): Returns true is SP is on any accessible
> + * stack.
> + * unwind_next(): Performs validation checks on the frame
> + * pointer, and transitions unwind_state
> + * to the next frame.
> + *
> + * See: arch/arm64/include/asm/stacktrace.h for reference
> + * implementations.
> + *
> * Copyright (C) 2012 ARM Ltd.
> */
> #ifndef __ASM_STACKTRACE_COMMON_H
> --
> 2.37.0.170.g444d1eabd0-goog
>
Powered by blists - more mailing lists