Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp207260rwr; Tue, 25 Apr 2023 20:38:59 -0700 (PDT) X-Google-Smtp-Source: AKy350YSAPWchCG/JdyYqB9OpmEMWhmA1XlLHGKExXB4arFqITlFtiwsKcrN3qjfgUJXHuZRnSCh X-Received: by 2002:a17:90b:30ca:b0:237:161e:33bc with SMTP id hi10-20020a17090b30ca00b00237161e33bcmr18666461pjb.16.1682480338723; Tue, 25 Apr 2023 20:38:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682480338; cv=none; d=google.com; s=arc-20160816; b=y3Fd1eyVU7YQe07NnmNUaoj7GVd5W5njcfHM5bw3NwmiroORztppPiQ1T9MI1lidem 9mCiUJ6ovAFksmaNzQ4vuICLsealAzX+4fhHPoT69xUD3cgx42vvBdzMKF148rt9NK4s pVNadMkBjHwoQUV8R0rfoEypeGvk8Cvuhck8cPuka8Q4DMqTcZQJF+3K3/KBs9MgdmR/ o/RxzwVq38aZUDY6UrrF7i4KX3q5OEUzWorY2g8272WDzvGPPoAyPJWCgWc/cDb3FL9v zgrKvnQkQJsSFTyZpIDynho7Nym+T2ETw9AFC7/8wCeEpIAVDZPKXH812JyrPXwQB7f8 8AWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=NLPj1pUXA62oDonG07IoKAdYvUTX7uOlKGCMjo9+28w=; b=HmSujhf/IV8c+2vX5CgCcLto8rN1uPkrc1I8ON0nnLcFU2cyHrvNlGDPmgweV9GJGz /DhC81ZqnodaV69Mf5UvyBdDnwx+VRDPOAFNsnFtH6VeD7gbjtisBbowvmrb+dC10j4Q JVTKxFS/u0bIhncfew7WipLtXlNswH/04jUicmdZTj0QSOwF3KSvw9C2ESPg8w/KA4zm RTWOkIW6ssLUdMX/YTAXMkVWJvuFYBVoe2O7pFSSQB3bDnzhcJDkP4DbJdnVJP6ymfVl Zt0+B+Q+jEyKxy8cJcyu149JC42u3yMWE6otPGqntt2coc0xft88n2Yttwa55hSA7Yid A6HQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c18-20020a17090abf1200b002475b063d35si17620062pjs.142.2023.04.25.20.38.45; Tue, 25 Apr 2023 20:38:58 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230435AbjDZDXQ (ORCPT + 99 others); Tue, 25 Apr 2023 23:23:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239146AbjDZDXJ (ORCPT ); Tue, 25 Apr 2023 23:23:09 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 912B71FE2; Tue, 25 Apr 2023 20:23:08 -0700 (PDT) Received: from kwepemi500013.china.huawei.com (unknown [172.30.72.56]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4Q5kcL367Fz18KJN; Wed, 26 Apr 2023 11:19:14 +0800 (CST) Received: from M910t.huawei.com (10.110.54.157) by kwepemi500013.china.huawei.com (7.221.188.120) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Wed, 26 Apr 2023 11:23:05 +0800 From: Changbin Du To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo CC: Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , , , Hui Wang , Changbin Du Subject: [PATCH] perf: unwind: suppress massive unsupported target platform errors Date: Wed, 26 Apr 2023 11:22:46 +0800 Message-ID: <20230426032246.3608596-1-changbin.du@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.110.54.157] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemi500013.china.huawei.com (7.221.188.120) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,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 When cross-analyzing perf data recorded on an another platform, massive unsupported target platform errors are printed. So let's show this message as warning and only once. Signed-off-by: Changbin Du --- tools/perf/util/unwind-libunwind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/unwind-libunwind.c b/tools/perf/util/unwind-libunwind.c index 509c287ee762..e95adbedf6ed 100644 --- a/tools/perf/util/unwind-libunwind.c +++ b/tools/perf/util/unwind-libunwind.c @@ -54,7 +54,7 @@ int unwind__prepare_access(struct maps *maps, struct map *map, bool *initialized } if (!ops) { - pr_err("unwind: target platform=%s is not supported\n", arch); + pr_warning_once("unwind: target platform=%s is not supported\n", arch); return 0; } out_register: -- 2.25.1