Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp4520867rwj; Tue, 20 Dec 2022 11:12:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf4N5do0YWcgxON6yxHWtsRf/+DS5R6ESVh7qAspq5T8fpfcNRwwtaKPWLgTeZgwyuI5b9Sc X-Received: by 2002:a17:902:e80c:b0:18a:4493:5db6 with SMTP id u12-20020a170902e80c00b0018a44935db6mr72427803plg.41.1671563538648; Tue, 20 Dec 2022 11:12:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671563538; cv=none; d=google.com; s=arc-20160816; b=RU9koMbA2m+Z8gdDHfRU7dNwoPgN1YfYkhh5CDbLubYmkiPP45UqP10c6B+cVbhJi3 EOm6PrhGOo1Qn1Kl87kueEtFc3YPJj+HP/OBszZsmufUQ0zfH6wNeuq4MDsZ3pmoNyHr Eikci/BOKPGDSoBmt2jNL4wuh0aqbU38gZGd2pXt/G4zpi98CC1rHAS1OKfAqTSTx8bT h1V27QMxtqNEKd3iChhgxEbY2S4X0zaLZK9Hzsw5Y924tmVB3KSDdcOu+EYHyhlyF0OT 16X7Aglkegn8JDN7jxqrVxTTINxoUOSpYNm4ekNEgwgv+O4OqW1BY/YvUuk++5PjJOn/ EsrA== 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=x2MD05nayZD7jfFfebpmqQIIon3ab9qhfJrZv0hiKlg=; b=Blp2Gwz/75ORmXh1KSxFw6GmS1vVWVoCYhTAEj3MuFf0cu1wx0Dnjn4HQbGxJ50Mi6 wGvM0bqVv6HqfQQ1jnHxFjOaopfKJ209isidPg2K10CdlsRTZBOPuW2weGwducioPFxA QnLcXk4iXKZkSi+TUvs1YLPVak84bgSA3UjWcMinemG3zRVfFTJkt9AcfvvXgLjPiu/D a88MVewkrErpifUqYkulvxR4iZjV2DRfhHsYht1ycQD9A82nhxne3ECkp3NFiMlcNXDQ RIJXsq2SlMiph1vvC6lhFwhTjFtJ4/kB8fC0FUrhGm2Tj2lJbt4LUbyUXDQG53kJAWhl +KsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W7JRsv4m; 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 u2-20020a170902b28200b00180a7ff784csi13174224plr.360.2022.12.20.11.12.09; Tue, 20 Dec 2022 11:12:18 -0800 (PST) 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=W7JRsv4m; 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 S232913AbiLTSRr (ORCPT + 69 others); Tue, 20 Dec 2022 13:17:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229536AbiLTSRm (ORCPT ); Tue, 20 Dec 2022 13:17:42 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CF01CE07; Tue, 20 Dec 2022 10:17:41 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id E5114B8169E; Tue, 20 Dec 2022 18:17:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F88FC433EF; Tue, 20 Dec 2022 18:17:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671560258; bh=tCcCyQjvXJTLP1/+poEFAXufnkYSId0E8S1P4iv/fg8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=W7JRsv4mvJHXxAPDiCFhvqRIx+Q260FI72CCbuiwmM9M2GoH2HlOwf0yZjuqQHGwJ tLz0mdGE7sHVSA/lRePJb5Zw64Ynb8kf+q7DrFLn5L6VGjSHoXRfk93shbScSQGv7u QVk23qTH4w731VsRCYJlzIbEWdVUilek1RAFkko++cSqt9I6aJnX732eyEoKngmlBX /dl14vcTmxsOwq9kV4LkZej/XcVvt85Ja+S12BqLlDru4bAJaua+KWAIfC00aqWniU t4QP3CA1IrCT1lS7sU+ODfHOAkXxD+LMpVTZvss3sUjmDaVIUAr1SlRCk8a84AWSkI GQkTYXwDdEYfQ== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id D272940367; Tue, 20 Dec 2022 15:17:30 -0300 (-03) Date: Tue, 20 Dec 2022 15:17:30 -0300 From: Arnaldo Carvalho de Melo To: Adrian Hunter Cc: Yang Jihong , peterz@infradead.org, mingo@redhat.com, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@kernel.org, namhyung@kernel.org, irogers@google.com, carsten.haitzler@arm.com, leo.yan@linaro.org, ravi.bangoria@amd.com, martin.lau@kernel.org, ak@linux.intel.com, masami.hiramatsu.pt@hitachi.com, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] perf tools: Set debug_peo_args and redirect_to_stderr to correct values in perf_quiet_option Message-ID: References: <20221220035702.188413-1-yangjihong1@huawei.com> <20221220035702.188413-2-yangjihong1@huawei.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 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 Tue, Dec 20, 2022 at 09:35:36AM +0200, Adrian Hunter escreveu: > On 20/12/22 05:57, Yang Jihong wrote: > > When perf uses quiet mode, perf_quiet_option sets debug_peo_args to -1, > > and display_attr incorrectly determines the value of debug_peo_args. > > As a result, unexpected information is displayed. > > > > Before: > > # perf record --quiet -- ls > /dev/null > > ------------------------------------------------------------ > > perf_event_attr: > > size 128 > > { sample_period, sample_freq } 4000 > > sample_type IP|TID|TIME|PERIOD > > read_format ID|LOST > > disabled 1 > > inherit 1 > > mmap 1 > > comm 1 > > freq 1 > > enable_on_exec 1 > > task 1 > > precise_ip 3 > > sample_id_all 1 > > exclude_guest 1 > > mmap2 1 > > comm_exec 1 > > ksymbol 1 > > bpf_event 1 > > ------------------------------------------------------------ > > ... > > > > After: > > # perf record --quiet -- ls > /dev/null > > # > > > > redirect_to_stderr is a similar problem. > > > > Fixes: f78eaef0e049 ("perf tools: Allow to force redirect pr_debug to stderr.") > > Fixes: ccd26741f5e6 ("perf tool: Provide an option to print perf_event_open args and return value") > > Suggested-by: Adrian Hunter > > Signed-off-by: Yang Jihong > > Reviewed-by: Adrian Hunter Thanks, applied all patches in this series. - Arnaldo