Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3554839imw; Mon, 18 Jul 2022 10:07:47 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tku5wNIz+7d/z53YoqX2Maczgx0hne8NA54x/VRclxrAgTMqddkjezjXcaQ0ITyqLvppIg X-Received: by 2002:a05:6402:5516:b0:43a:42f9:24d6 with SMTP id fi22-20020a056402551600b0043a42f924d6mr37964604edb.204.1658164067453; Mon, 18 Jul 2022 10:07:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658164067; cv=none; d=google.com; s=arc-20160816; b=i0PpNPfBSwt7xH3SZsUf60GnBTD7I5XguscXXABe3++BKxMuQ5+ZNRQPWs96bqb9ym jxRY8DCySbmXRAg3wJ9gyEA0QmgWfbAyz5jG0IzbWmiTmWROjsJJLThPJKlL+mutPE0X CT3MexQNVp2Vf2541qnz2tT18WRwZYY95jJSZZmI4fjbXvaStZPU5ll9Ygps6AVBxiio BI4OJCHte4ciF27o/kLCNMY2v+tePudp/Jkt4jtKb5DOw90Vj8xpnN8IthSZB8X7Jku6 MWJCfw/Up9SphsjG64i/d8egR7US+dFObsDmEtH9qbzJbsiWG5GkoZVhqbAwNxQ75VK0 tbzA== 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=PFgEFsfl8rKJs7ra2dHHZoS/sWYcHlxBizMiDuSMBHs=; b=AGwp1zRJVqDMOe4VzY0XivFwWfdfws0rVBZdBZ9s1BuI8+cpn2z8WHueWDO6F9m9x5 3hC6/EVcqTm8tIRivcqDX1VZzSIyCIp4+itBDPSqiSBkB6N4sCM8R1d63MvUNsyviN7W FlFlraHjRJOZEe1puYwsrxqszRGQOltLWwtGDf3wLoUA+DJ6pYOUgcd3Fcjjje3hn9uO TsS2NqoEG9gpRAHO880eMyyk5YWV+lKecmn+pDzv5u3j9IdMipWElsTB6o0JHMoqr2Dp pjXPHRg975ZOWuaXMvXfQI1TuwiyDtWLO1h2Vteu8M57ZTCIlXDD0bx1B+G7EJ9X0Fr+ GpOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=mKTwFX9D; 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 h20-20020a50cdd4000000b004356df259b4si15845722edj.361.2022.07.18.10.07.22; Mon, 18 Jul 2022 10:07:47 -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=mKTwFX9D; 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 S233487AbiGRQyB (ORCPT + 99 others); Mon, 18 Jul 2022 12:54:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229890AbiGRQx6 (ORCPT ); Mon, 18 Jul 2022 12:53:58 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68FD962E5 for ; Mon, 18 Jul 2022 09:53:57 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id p4so7517874wms.0 for ; Mon, 18 Jul 2022 09:53:57 -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=PFgEFsfl8rKJs7ra2dHHZoS/sWYcHlxBizMiDuSMBHs=; b=mKTwFX9DcjFSbsWZCVza9QbOzZMgaViFHpyhezP8skfw9OhFHOtxe7Coa9eHKiupWf GVN5yHFqjF5RvR4cUnCT5TeYNNGH16qQTQo1324kdB32i+xK1jhd92eVU0UxcAZ1VJl+ YCFlHbbXFyJy8vOlddVjkGKOTQ/m/QSiyBzHwmTC5yTtRUwcf7Uvc6jPR9g4q/bJhb7J 0l7QCOPJacqQKytb6294d+jLYTpGkqKCr9Rhiqu6KsMCbZfa8rkADp06Jt0BTjfPbpq6 bKh2lRVqkB/XiLnFVspPNZtdu2+PyjKIBF3giMevCtYzSqa8goeqyMShrFPusWEqeYPO hhSQ== 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=PFgEFsfl8rKJs7ra2dHHZoS/sWYcHlxBizMiDuSMBHs=; b=r5DO5rY3M42o4VJChkspK/9MNBcDr3HuJqne1ekhKHWWQIrdymtc2nH4Z+dJS+HbKg cMhrUNS1Vz8CGgvkM3C+BXbc0FIzt3WJurryZdvYMUhGChzh29gUX0lNg2Q3ejOQDPD6 z6r3JOnndcTKkXkEXoSepHYKhTzgdbT3SDooAjFDfVLmU047PfHSkRAOUkKes/L4+fQ6 S13aKjGv4fr3KXU5kGZ/40Q/3NU6IxtaNk8EtXkuCZHgk3/e67LVbXnURHeUHwo7R+wD tOAZ7j7TEKNNGStYKLMy+DbJrCFVzUh/GA8pcQheYEPS+knBqZzZs1uw2+wcT7iYwc+S Qhuw== X-Gm-Message-State: AJIora/OJRyG96b1hj00zwBZrOlxnmvyFeJoiF3g/NWY/xlxewX6WZpP NNZTX+FHFQ1KdBaaiY2ArS9a21zdvF4/Ta/g+EMmlg== X-Received: by 2002:a05:600c:a146:b0:3a3:1e79:4446 with SMTP id ib6-20020a05600ca14600b003a31e794446mr3231430wmb.158.1658163235828; Mon, 18 Jul 2022 09:53:55 -0700 (PDT) MIME-Version: 1.0 References: <20220715061027.1612149-1-kaleshsingh@google.com> <20220715061027.1612149-7-kaleshsingh@google.com> <87k08c3vtw.wl-maz@kernel.org> In-Reply-To: <87k08c3vtw.wl-maz@kernel.org> From: Kalesh Singh Date: Mon, 18 Jul 2022 09:53:44 -0700 Message-ID: Subject: Re: [PATCH v4 06/18] arm64: stacktrace: Add description of stacktrace/common.h To: Marc Zyngier Cc: Mark Rutland , Mark Brown , "Madhavan T. Venkataraman" , Will Deacon , Quentin Perret , Fuad Tabba , James Morse , Alexandru Elisei , Suzuki K Poulose , Catalin Marinas , andreyknvl@gmail.com, vincenzo.frascino@arm.com, Masami Hiramatsu , Alexei Starovoitov , Andrew Jones , Kefeng Wang , Marco Elver , Keir Fraser , Zenghui Yu , Ard Biesheuvel , Oliver Upton , "moderated list:ARM64 PORT (AARCH64 ARCHITECTURE)" , kvmarm , LKML , android-mm@google.com, "Cc: Android Kernel" , "Russell King (Oracle)" 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 On Sun, Jul 17, 2022 at 2:58 AM Marc Zyngier wrote: > > 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 Fuad, Marc. I'll add descriptions in the next version. > > Thanks, > > M. > > -- > Without deviation from the norm, progress is not possible.