Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp476099imw; Fri, 15 Jul 2022 07:01:15 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t4K4x2ZyMmze8zCDuwUYcX9/w/r1zHPP9sPxRYm3GFXxwJjZf8AKko8wopL5rfuj5OfNM0 X-Received: by 2002:a05:6870:c5a0:b0:10c:5a7f:1e1c with SMTP id ba32-20020a056870c5a000b0010c5a7f1e1cmr7853165oab.250.1657893675241; Fri, 15 Jul 2022 07:01:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657893675; cv=none; d=google.com; s=arc-20160816; b=htwKcXHQmP4RC9Xqgo+LLUr2HwmVjxtphLTQyQyf4cir1QzrlBpVlrcP4TFTcItXe1 4JU3TUZbw0L3ewrc49EHplEnQUP6mDL7qEq1tEEg6soWKvjk9Bp3sVRIDUHoTBmN+/TK Ro7h5O7WpwHK9clZjPyBKugy3SSkWhJizi1tYyaxq55CVoGgDPdDmQNlO8Rxr3qHIT6s LsxgVe0LU2yVwKwMLRQrC5Fie+/XYC7aC1SUAI1VVLa//7kAnh3V7ndT8uxDlQIWl0ZV d8Yyx/2/JSJ8/4vWEyPrwN0SyLf3lfds16p7RC+7/M2NAt96LByqQpSwL0yC/AOU/R/h XoGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=fRcx9c8UdpURDQJn1/FwxxpqDetYYI9ywH8GAGTFS+U=; b=hvtuvNO+rRmrBt8MfWddBJteRNUUAd4K7ii/BsHHaqfSukhaFrneJrgG/PwbFqbQNv a7RENzzYXGpd2kYrb2pixngIBD3N8HiofBFd34f0JrkQWbAWt3c2Phl0X8BHgPSvTczT fMztkWzMrzWgTYkRD7gbBG2jFCVVtPvSWsyWnrb4RUAA5bokGwBLsIjpMHX/wRJ4Lhgj PP+1DyB6H+kdGlvt/fRSe6TI0AXeAE3xnxSlAaDoakIM9c5IUvW9+wRR38iGF6OTL/hl Hc8p8kFbvCQXClM7gwwTXJYuLyeR92JdrdjNEzYE6pvn9NTOAe19+Q/QhyysBOO58mqN NrzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=gtFC5Oqg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lt8-20020a05687142c800b0010c05c5d776si4014158oab.267.2022.07.15.07.01.02; Fri, 15 Jul 2022 07:01:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=gtFC5Oqg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235037AbiGOOAF (ORCPT + 99 others); Fri, 15 Jul 2022 10:00:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235064AbiGON7s (ORCPT ); Fri, 15 Jul 2022 09:59:48 -0400 Received: from mail-ot1-x32b.google.com (mail-ot1-x32b.google.com [IPv6:2607:f8b0:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C18A7822E for ; Fri, 15 Jul 2022 06:59:43 -0700 (PDT) Received: by mail-ot1-x32b.google.com with SMTP id g19-20020a9d1293000000b0061c7bfda5dfso3191670otg.1 for ; Fri, 15 Jul 2022 06:59:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fRcx9c8UdpURDQJn1/FwxxpqDetYYI9ywH8GAGTFS+U=; b=gtFC5Oqg8xhzmhUgw0Irrwnhki0tPLqR9BejFwaaiBIjCPhOyRnjtS0e/MhDRfvZEp pWel7RCg+ldSNukr8AXo5gUxGdJGqejdOeYCBnTemXJsM828rHl1BfwxibWOg0SgIM4D KzDI4U/R6UvCdvJv8YmLFWyV/HrlFGdyyY7fQd0SOPwxGRo6qbvVI13JDTwNIoQZJkZr HUDMJEx7i7BccgEhBdezfzh9+7tdqzh8Mq8osrTCIPKgvnS41lJ5iDKNdySTfLjTEerZ ic+pFPpwJ9narc2AT3FePEMX3fX7rV4px3LxHsqAQuJ5gmH+Khb0JG3UtMsx7bHEtq9b P8tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fRcx9c8UdpURDQJn1/FwxxpqDetYYI9ywH8GAGTFS+U=; b=kI2vo5UytYESHXfOe5l8B4RAcBV8AGlTYmW0dvLMXlJK/PaSGQvYJNSLCmESghrCg0 3H8JqZrvmZEJBU4cVuxbD5EqJhWdxaZ68jhHuqanXNE6gEFeYerXBPP9KxVd/aMxF+JI 6MCBDi4oOyyQ9cc8jK/aFIAjKIfPkNKTG+lqtAT7AEFLbSKkGOkYIFLwqf+JoQ3HPc/V NDpzfDGwsBaI9+RQnRZx2J1dtH56kYDDml56NuucM78MRQDXKsTFP6auabw44calDDYl n5CW8XdcrV1ioaiECUo1s2h2QEiwtGsxXTDuAicXoBr8uu4IJReN5GcXpO2WL6TxSNRU QQzw== X-Gm-Message-State: AJIora+zStj6p8fmrBpduLh/GwsyvIcsE0AnFbp6ktJpT3NLZKXw3Sfd ASKHtCFjua6a/12f4I1DE/WF3YRKaYfyQB9DOyRC8A== X-Received: by 2002:a9d:873:0:b0:61c:3f57:39e2 with SMTP id 106-20020a9d0873000000b0061c3f5739e2mr5396066oty.299.1657893582980; Fri, 15 Jul 2022 06:59:42 -0700 (PDT) MIME-Version: 1.0 References: <20220715061027.1612149-1-kaleshsingh@google.com> <20220715061027.1612149-7-kaleshsingh@google.com> In-Reply-To: <20220715061027.1612149-7-kaleshsingh@google.com> From: Fuad Tabba Date: Fri, 15 Jul 2022 14:59:07 +0100 Message-ID: Subject: Re: [PATCH v4 06/18] arm64: stacktrace: Add description of stacktrace/common.h To: Kalesh Singh Cc: maz@kernel.org, mark.rutland@arm.com, broonie@kernel.org, madvenka@linux.microsoft.com, will@kernel.org, qperret@google.com, james.morse@arm.com, alexandru.elisei@arm.com, suzuki.poulose@arm.com, catalin.marinas@arm.com, andreyknvl@gmail.com, russell.king@oracle.com, vincenzo.frascino@arm.com, mhiramat@kernel.org, ast@kernel.org, drjones@redhat.com, wangkefeng.wang@huawei.com, elver@google.com, keirf@google.com, yuzenghui@huawei.com, ardb@kernel.org, oupton@google.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, android-mm@google.com, kernel-team@android.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Kalesh, On Fri, Jul 15, 2022 at 7:11 AM Kalesh Singh wrote: > > Add brief description on how to use stacktrace/common.h to implement > a stack unwinder. > > Signed-off-by: Kalesh Singh > --- > arch/arm64/include/asm/stacktrace/common.h | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/arch/arm64/include/asm/stacktrace/common.h b/arch/arm64/include/asm/stacktrace/common.h > index f86efe71479d..b362086f4c70 100644 > --- a/arch/arm64/include/asm/stacktrace/common.h > +++ b/arch/arm64/include/asm/stacktrace/common.h > @@ -2,6 +2,14 @@ > /* > * 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() > + * - on_accessible_stack() > + * - unwind_next() > + * > * Copyright (C) 2012 ARM Ltd. > */ > #ifndef __ASM_STACKTRACE_COMMON_H > -- Ideally it would be nice to have a description of what these functions are expected to do, but that said, Reviewed-by: Fuad Tabba Thanks, /fuad > 2.37.0.170.g444d1eabd0-goog >