From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_2 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 09219C32750 for ; Fri, 2 Aug 2019 13:03:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DB78F20679 for ; Fri, 2 Aug 2019 13:03:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404106AbfHBNDY convert rfc822-to-8bit (ORCPT ); Fri, 2 Aug 2019 09:03:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:52864 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389446AbfHBNDY (ORCPT ); Fri, 2 Aug 2019 09:03:24 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D1A4D20657; Fri, 2 Aug 2019 13:03:22 +0000 (UTC) Date: Fri, 2 Aug 2019 09:03:20 -0400 From: Steven Rostedt To: Jiping Ma Cc: Will Deacon , , , , , , Subject: Re: [PATCH v2] tracing: Function stack size and its name mismatch in arm64 Message-ID: <20190802090320.728f133b@gandalf.local.home> In-Reply-To: <47e90170-e971-c2f5-b6c9-d3c6a694a4a7@windriver.com> References: <20190801083340.57075-1-jiping.ma2@windriver.com> <20190801094156.emo36ekvrm74nndl@willie-the-truck> <47e90170-e971-c2f5-b6c9-d3c6a694a4a7@windriver.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2 Aug 2019 10:43:03 +0800 Jiping Ma wrote: > > *Why* does the frame appear to be off-by-one? > Because the PC is LR in ARM64 stack actually.  Following is ARM64 stack > layout. Please refer to the figure 3 in > http://infocenter.arm.com/help/topic/com.arm.doc.ihi0055b/IHI0055B_aapcs64.pdf >             LR >             FP >             ...... >             LR >             FP And the LR holds the return address, right? Which would be identical to x86 and every other arch I know about. -- Steve