Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2894226rwr; Fri, 28 Apr 2023 18:59:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7x7tGugx3nkp8bbMKfU3gJ3V42z+vkSgDGx1zt1HRYJJOWg5MhdgsZuPTw0NotIvN7wbmz X-Received: by 2002:a17:902:ce89:b0:1a4:f4e6:b68 with SMTP id f9-20020a170902ce8900b001a4f4e60b68mr8609174plg.3.1682733550480; Fri, 28 Apr 2023 18:59:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682733550; cv=none; d=google.com; s=arc-20160816; b=F6F6uVdeR+xRRPWyPy52XJdj6FnKNP8gCodJxAf7bjTNuLcUeU8zc0O/5crM/pBmpk NwhpQ8XMLyf3L3hpa+6fpiyEh9jPntMNue/FwbSZwu0gy0jl+xlfe2A66FnrP+wI7oBY b6NixF/OMcE04+umyAUwLuhwNm/YbyD5kuKKQo4RmBF9GppGKibED+VpG06LfpyZlKx+ TSvSR76cAsvP4F4/xZmKZJwsyq4HJuO9rkLJ/eqyG4RDlRIVp69tSJsBfUca3dmLeVSj KTq9H9hKI2K2BgDf3pBU5lWGqiX+DRSCB0UWjKh6wtl073HVXK43rOUsH+Zk9MPe0+RS 89KA== 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=SNnpl5gFrGEWwYYC2ICLhXxGoNvES9+VOAJqHMEK0ZM=; b=iLqyCeiyJwlO99y08G5WvPfTS5VYd0Ey2G9POWowktT0TfmqP20m5C7oiUl13Lmlgm YOIHPpHr2IkfZ/A+Op5s1810NnybPte30855/gMupnkkAMB7bsRf44sI/1UpFHceNQWa C+qFPaNIai2qdfIXeUKzVMJrAySKhDOyEAgra+enHotv64T7zvf9zfrVW2eJcpu+I6Js bSr3M+CKZ/7HMQqhN7dWa7lqY1l8odGDn2ba+MOoK7ox7PZCAaNLUvO+6wB3K7gWzAtB Ir85gC2d7XGTSaht3em0B4bjcxmliCWbX1rn8zBeABBIuBW3/79YeYNP8IpkUeWi0Ywf mrDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=A9ccRJOK; 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 z12-20020a170903018c00b0019ca3bea310si11517315plg.303.2023.04.28.18.58.59; Fri, 28 Apr 2023 18:59:10 -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=A9ccRJOK; 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 S1347285AbjD2Bxb (ORCPT + 99 others); Fri, 28 Apr 2023 21:53:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347165AbjD2Bxa (ORCPT ); Fri, 28 Apr 2023 21:53:30 -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 85CD730D2; Fri, 28 Apr 2023 18:53:27 -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 133586381A; Sat, 29 Apr 2023 01:53:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3083EC433D2; Sat, 29 Apr 2023 01:53:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682733206; bh=+TDrBsUXK9LBvhOasneN/5DL8bhxJi2WMFP1alFlGkg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=A9ccRJOKhL7e2akp0Rr2Eze0E8c+Ri/8FA7e0jMaqJc73od3XtN8SJ2dGs9gcUAav nEX1AlYK/gVLRT/5TMjFIUogWeEZ+NrxHVuUXd8IBdLDOd5unO8WW5dY0ThcIevPvo ynR0NVOFUer687MJY2T6X+ssSlZ4wNIFvyWumCX+ERJsBFovKM1vgkgQL73TwtIsvG qfVOnWeefZBm5hM/s99MfwltR4tEVCbm+esOOMPlIKfvzZqJ2Rib7uuQh6SiMm1Z61 RR/L5rVtXguREOmBgJBRm6XQbywdimMfRiqDuGRFr0mdIcf8s4gETFmkiVolOWg56/ +DoxoZ6ZAhWNg== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 7A476403B5; Fri, 28 Apr 2023 22:53:23 -0300 (-03) Date: Fri, 28 Apr 2023 22:53:23 -0300 From: Arnaldo Carvalho de Melo To: Changbin Du Cc: Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Hui Wang Subject: Re: [PATCH] perf: unwind: suppress massive unsupported target platform errors Message-ID: References: <20230426032246.3608596-1-changbin.du@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230426032246.3608596-1-changbin.du@huawei.com> X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 Wed, Apr 26, 2023 at 11:22:46AM +0800, Changbin Du escreveu: > 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. Thanks, applied. - Arnaldo > 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 > -- - Arnaldo