Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2170192imw; Sun, 17 Jul 2022 03:04:23 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sXveRS+myaOb9japieAx4PuJpjZ09QC+eHto6nMqSRw8TXQ8T9hSIvYjaPTag4io0ijW2k X-Received: by 2002:a17:906:5d16:b0:72f:248d:525a with SMTP id g22-20020a1709065d1600b0072f248d525amr2224080ejt.441.1658052263170; Sun, 17 Jul 2022 03:04:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658052263; cv=none; d=google.com; s=arc-20160816; b=zLnxiT/7vjfhnPPleIpjLd/Kzc3mFDw5+Iace8b4+O48ROIjrIYe8OnK7p58Y9oC4Y BcO808vTdmsMINZzDl7JZILset02gnj23Sq93gn5AP3QotbuKejn1KAm2JTGKH3gM51s oT/1EhvBLugj5b6zDGdJCG2XebMvkJxeb7LasC3OXrHI/iLLmNjgyw5dV6HsuQFILunl qaQVcxidMFPNSP7Bx3TbJP55DdKmo6+anSboy+JY7F8rG3rufr9ME0DyVhklsCJlw0zi BkOIZ026H7u2vhaeoXKFQ9b1s3shKNS7xl7/ClNAEckzQ1sa+/epDySezFOWAdNfdb6j +bFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature; bh=m8z4iO4bPn3bescxDVXecZ0Pzf0RsmNkf/fqUzSLKnw=; b=wcugCVFqy12z7KGt2QImOiwDFLT6ioJMYFK0edbD6BQTHCFAKekfUJZRe8eNwPbOHy yxH9I4IK8Uve6A5vVQETDKcVqdJoCh9fTthCHun26l+m0bK6sNkhLk8ZGRRq7C2rUZ3c 4+yGwO3B9slhPrkoX6QGLU12s5GnHrE0t/50B1xsCtPqCmwgTrN5z7bxAJXty0CKRViH B5u2e3DiEPQMs78jldcSShbUW4XMrwJQDgy7Y28uVQZ5QAL+m6iOSWBkFS1dhQFjEhFm sonLKhlcKiF8Bz7y49MiL3rCJ+JBnqZrM1Ko6a/LhM0S7NGypujA7H0jEiFvF9AuF13J ++Dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RB73boqw; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s20-20020a056402037400b0043a6d32f4bcsi11181245edw.123.2022.07.17.03.03.57; Sun, 17 Jul 2022 03:04:23 -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=@kernel.org header.s=k20201202 header.b=RB73boqw; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232762AbiGQJ6B (ORCPT + 99 others); Sun, 17 Jul 2022 05:58:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbiGQJ6A (ORCPT ); Sun, 17 Jul 2022 05:58:00 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E2DB186C5 for ; Sun, 17 Jul 2022 02:57:59 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 28563B80D9E for ; Sun, 17 Jul 2022 09:57:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A1C58C3411E; Sun, 17 Jul 2022 09:57:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658051876; bh=SwRUGIYuiONdg7eAHKWwZ3Mujc4biRRS1Cegr1HAD98=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=RB73boqw53PFFwQhWEcm4uDZQZRLDDG99oqBfxUrQiahGaDWsNCyEj0uzBwbpEHy3 S8dG0Wk6wrPZXRULMG20yZ+VezW9wpX0G7nEc3trGkJxJfgUCHd1VaN9hRyUtHvcz7 sfcV9jJ6l7y1aT4/8UwjwF6yYT/AiA8vY2Ha7VwyfPMZi5sBgPv3cUPHU3m1Is27ii M3M93p1WFZmvHxF5kzZ81Llz2E6mkFC9EvYM36jSfirEqQAfREYrfIlmKbjwH41Aqr xqjBsc/AUYQbZxmX1MA1lTnnWIzn+FOHO/dm2un81WgGo1rilxjocTeI6V06VqEslU yNqoL9KNtKQFg== Received: from sofa.misterjones.org ([185.219.108.64] helo=wait-a-minute.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1oD12A-007zXP-4y; Sun, 17 Jul 2022 10:57:54 +0100 Date: Sun, 17 Jul 2022 10:57:47 +0100 Message-ID: <87k08c3vtw.wl-maz@kernel.org> From: Marc Zyngier To: Kalesh Singh Cc: mark.rutland@arm.com, broonie@kernel.org, madvenka@linux.microsoft.com, will@kernel.org, qperret@google.com, tabba@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 Subject: Re: [PATCH v4 06/18] arm64: stacktrace: Add description of stacktrace/common.h In-Reply-To: <20220715061027.1612149-7-kaleshsingh@google.com> References: <20220715061027.1612149-1-kaleshsingh@google.com> <20220715061027.1612149-7-kaleshsingh@google.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: kaleshsingh@google.com, mark.rutland@arm.com, broonie@kernel.org, madvenka@linux.microsoft.com, will@kernel.org, qperret@google.com, tabba@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 X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 On Fri, 15 Jul 2022 07:10:15 +0100, 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() A short description of what these helpers are supposed to do would also be helpful. Thanks, M. -- Without deviation from the norm, progress is not possible.