Received: by 2002:a05:6a10:87d6:0:0:0:0 with SMTP id g22csp460529pxr; Sun, 10 Apr 2022 21:11:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGIr0TdW0WjENcwiu87Sp6mYGJcAgVVCzE63VnadazZO4nOKwvm2k94QKK8OZRNn5+j24P X-Received: by 2002:a17:906:19c6:b0:6ce:98a4:5ee6 with SMTP id h6-20020a17090619c600b006ce98a45ee6mr27802018ejd.567.1649650279744; Sun, 10 Apr 2022 21:11:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649650279; cv=none; d=google.com; s=arc-20160816; b=bQQU4LRi6PwRbU0B/6LrNXuZAT4cr3R6Wo8GHdBMwXhdhLrvORE64MzGDDt6ZMBfoJ wISqTNIcw84P8M8wiWEwJxIY7DaPv4Qs4+83bBsttOb/r/ZDlovDmk4PgH4vhwoVs6+1 qzck0gtADuJgAm2QrqDV6Y9MrAgN4MgnNUhHfYbfXppI9rcw7NFP2v4tcvZbu/AdcB3Y lpJx58DL7Bxfo464neScRnQIB3vM7SPUjdMg3mOJv8I5CwCrokQH+Hsf286t3ZT+eyvT oJixqrnE5OoDi+PEOY64mtlWWDDQkR9D+9Ipkv4LmSAX8VQaeu86dpBvIKq43POt2+h6 3i6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6nrT4rzn98DrzbdLLq4n0089drHX36TG59s3YfDkun0=; b=Wj8mSacI28FDFW19/f0dxYgqaRHxRoytcncdRAdUt1ZuEEkb1r7ZQgi9fRtASZItof 6mLyBlQBinpzbz98vb+CW8cTCFR0Az5Cef2RtfDBalvwAZFdnpueAyw69TCgpejd6tR8 2+59GKDZi68/r9+uDaZ5njgx7bRelAYUTPBG9MTQvH5C/RbEZj9v4G4DeHHELV0CPeKy /mWyPoslxQ1cVE/Hf6r0sAXO5IbgIhiaRNovpQoTBdBd0yiIozxw0DOpnGg6+SvMNrnH E1EMCi3nF1aQYGh15peocnxujKIFIRvu7+fYJ1I8t7JVg/BkE+2F0TUJL46mUMcTLkFJ aWqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=elrwglyA; 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 m13-20020a170906258d00b006df76385f31si1711824ejb.977.2022.04.10.21.10.55; Sun, 10 Apr 2022 21:11:19 -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=elrwglyA; 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 S242371AbiDIPJ3 (ORCPT + 99 others); Sat, 9 Apr 2022 11:09:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242363AbiDIPJ1 (ORCPT ); Sat, 9 Apr 2022 11:09:27 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D05ED56776; Sat, 9 Apr 2022 08:07:19 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 67C7060A1E; Sat, 9 Apr 2022 15:07:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9DFEDC385A4; Sat, 9 Apr 2022 15:07:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649516838; bh=8fIwaEWTTC0t7RDjHYBSSEM+cb3kp73/o0Cj33EjI4w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=elrwglyA8caXY/MYupOBnz2N9dJ3nq/caO6DjIW+f+CAK6UhWk29KXyJ/8Uq8QQY+ gsG2tGPzpvorqVFiHeRYuvQxnKJjA5UdgqHRb15p/Ij4Xdom+3oao0J7o2qAkefV9O l/MB/TMv0H8Nnl4Zgw0lho24Nmb8wKEKzWJ1AV9Kpy1ovBE+YcH1oa7EdiEL0RrllA PKC7INCdwRnKPdmXuYVfw8vmGlUNfTjwaLbMK1Ztd43VaTyzB/1a0wd1dUnmRUKQQs SAPBg8B2AqNHUeS9LiNC5InO+t5GYYIfp13CWdPIeXBksRTbzg0FAS0kzfv68jy8UP 387m8bZdZWMLw== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id E8E9A40407; Sat, 9 Apr 2022 12:07:15 -0300 (-03) Date: Sat, 9 Apr 2022 12:07:15 -0300 From: Arnaldo Carvalho de Melo To: John Garry Cc: James Clark , linux-perf-users@vger.kernel.org, alexandre.truong@arm.com, Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , German Gomez , Arnaldo Carvalho de Melo , linux-kernel@vger.kernel.org Subject: Re: [PATCH] perf: Don't show unwind error messages when augmenting frame pointer stack Message-ID: References: <20220406145651.1392529-1-james.clark@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-7.1 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,T_SCC_BODY_TEXT_LINE 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 Em Fri, Apr 08, 2022 at 03:12:15PM +0100, John Garry escreveu: > On 06/04/2022 15:56, James Clark wrote: > > Commit b9f6fbb3b2c2 ("perf arm64: Inject missing frames when using 'perf > > record --call-graph=fp'") intended to add a 'best effort' Dwarf unwind > > that improved the frame pointer stack in most scenarios. It's expected > > that the unwind will fail sometimes, but this shouldn't be reported as > > an error. It only works when the return address can be determined from > > the contents of the link register alone. > > > > Fix the error shown when the unwinder requires extra registers by adding > > a new flag that suppresses error messages. This flag is not set in the > > normal --call-graph=dwarf unwind mode so that behavior is not changed. > > > > Reported-by: John Garry > > Fixes: b9f6fbb3b2c2 ("perf arm64: Inject missing frames when using 'perf record --call-graph=fp'") > > Signed-off-by: James Clark > > Seems ok: > Tested-by: John Garry Thanks, applied. - Arnaldo