Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1095727pxb; Wed, 6 Apr 2022 08:36:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQGqmScxcJE5umTobksVPyH9Vb7TTZmCuivY68FlHdWLDWokDSrIFY/p3gdcMMrSUcNXIS X-Received: by 2002:a17:902:aa81:b0:156:a183:b2e0 with SMTP id d1-20020a170902aa8100b00156a183b2e0mr9347813plr.73.1649259402435; Wed, 06 Apr 2022 08:36:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649259402; cv=none; d=google.com; s=arc-20160816; b=Z/4C9SpR07JCRZAhx/BUdXpQkbrcgfoV7SAIMdQso4RXiMWGNwH+MEapqNkOoWRYDQ 7cpH2Q1RH1oCl0YYyxrpDxFJnOzoYziEbSgQCnxehDaP2enOBHefb/o0HMwcmD390kdl Nn9+1qdRXVfRMI2ckxssLREFnwTCI+70nO8bWMxWqwO1515uWraa2pzFkPDByKD8irGX 5tfoAJIDp+4fP1FhY0vm/ZKiRJHEO7Ej0tUmPVfOM3xGfObgzrIQkjOoblLnjqQWS5HV 70cRhERm23+OZKIW4a9cmdT9JirqQIjf124fFmXCerZB3NHwnF2FEYYqHlVkNuzUP7KP WFmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=rUNdFNscgiiGJZiqTvmGA40g9OqHKQiT+MDb4Kd/GuI=; b=ddDKZhwy7aAs518nRpk2RoM1b4fCTb4/SEBsSP1NOqyfR6WYYUPjPYxY7/+MROorND X1o/Gy0bv8MnzJtmj4yKcKxfGVDGM/eIeFZ6vt8x7aqI8xukoMUgZK9CJ5i5IgXplfhk /Ay8vK6m7jFD8LjnuoptcN3neqW+vijEKD6Klr01yxt5+cwm/uOiuY4UbyUdMl7ifZ9I 2WLLXFly9LBRGUNcxIARNLCqznD3v+KuLjW7bxe0H4UpqlwkcRs851nybFvBqTNlMQRo JGGOIUWRqDIdMjjymGugwb9FzT2m4llMaH8jV5ATsmLrqVNEqmWrKM6WInsxxMzx48x4 Zlnw== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id g14-20020a170902d5ce00b00153b2d16428si14901437plh.48.2022.04.06.08.36.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 08:36:42 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7BB111A4D4B; Wed, 6 Apr 2022 06:50:09 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233872AbiDFNvv (ORCPT + 99 others); Wed, 6 Apr 2022 09:51:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233489AbiDFNvd (ORCPT ); Wed, 6 Apr 2022 09:51:33 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 926B35F9ADD; Wed, 6 Apr 2022 04:28:58 -0700 (PDT) Received: from fraeml741-chm.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4KYMfk02mrz688JV; Wed, 6 Apr 2022 19:26:54 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml741-chm.china.huawei.com (10.206.15.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 6 Apr 2022 13:28:56 +0200 Received: from [10.47.80.129] (10.47.80.129) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 6 Apr 2022 12:28:56 +0100 Message-ID: <2139adb2-17be-761f-3c8d-e006fc2c4384@huawei.com> Date: Wed, 6 Apr 2022 12:28:55 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: perf tool: About "perf arm64: Inject missing frames when using 'perf record --call-graph=fp'" To: James Clark , CC: , "jolsa@kernel.org >> Jiri Olsa" , , Linux Kernel Mailing List , Arnaldo Carvalho de Melo References: <5f1d8b3f-0afa-2724-4ff1-f061939c68c5@huawei.com> <2dc4266f-02b1-0937-a884-dfa037cc7ffd@arm.com> From: John Garry In-Reply-To: <2dc4266f-02b1-0937-a884-dfa037cc7ffd@arm.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.80.129] X-ClientProxiedBy: lhreml728-chm.china.huawei.com (10.201.108.79) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 06/04/2022 10:08, James Clark wrote: > > > On 05/04/2022 15:04, John Garry wrote: >> Hi Alexandre, >> >> I notice that with commit b9f6fbb3b2c2 ("perf arm64: Inject missing frames when using 'perf record --call-graph=fp'") that I get messages spewing the console when running perf record+report, as below: >> >> john@ubuntu:~/linux$sudo tools/perf/perf record -ag fio null12.fio >> john@ubuntu:~/linux$sudo tools/perf/perf report > report >> unwind: can't read reg 29 >> unwind: can't read reg 29 >> unwind: can't read reg 29 >> unwind: can't read reg 29 >> ... >> >> Do you know the possible cause? I haven't checked... > > Hi John, > > I'm going to look into this today. Great I expect the cause is because we only record >> the link register for this change and then do a best effort unwind to see if > we can get the return address just from that. So I don't think this is a major issue, > probably the outcome will be that I mask any of these errors just for this call > to libunwind that we added. The other main call to libunwind should still print > these errors. > > One thing that is interesting is why we didn't see this when we were testing > the patch before, and we've also found it a little bit difficult to reproduce here. > So there might be more to it than just masking the error, but I'm not sure yet. > > Either way, I don't expect that any unwinding is broken, just that it's > printing an annoying message. Yeah, the actual ouput looks ok at a glance. I really didn't check much. Thanks, John