Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4446262rwi; Mon, 17 Oct 2022 06:27:06 -0700 (PDT) X-Google-Smtp-Source: AMsMyM58wWPa15ZBiK7XLcJso2liml3Rab/f6uGrYITsVJCmCKytyRlZJgPHZ6OD49067EJacgPn X-Received: by 2002:a17:906:cc0b:b0:78d:f3b9:ab15 with SMTP id ml11-20020a170906cc0b00b0078df3b9ab15mr8577151ejb.367.1666013226670; Mon, 17 Oct 2022 06:27:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666013226; cv=none; d=google.com; s=arc-20160816; b=camxTNDfASq1kU0wsZaGo2C9PanUog+5hhNRRgxWuNDLvbm/2V3x1QPMM0UwSZmvWX +iGkEyG6zG50rJL2Z59JXhPJlreu4d4Rd+lLs76YmybG51uidZ1n5vNTpeH8Jr0Fe1ow xziRSnWsQHa+g1VkVrJV+DSbngmeP9O/Qx4/IUPd/jhM5LH99l5T+CDZ8vO+q4ArhKeF ltr8EY0xMfUTGwxlEqllNQ58Q+ca1XgdkdVsHrgOo+fxNsw4A7MvmBcKnWuCDbX0aKuH L+sC7juG6h8TCscrvhBxSzIQtYYGD3Rb2gNoxBoHPjyKCi5TdS99qET5BvW25byUhdZN gDrw== 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=7x1wPOdUHNMXAyLUDaXdVltSCuYLkap4XJM0xqdF8xI=; b=mpi4rzdg894acE4CQc1z3LjMtjA25x8QmlkYiOrOREQ3cLXeDUEhPb53GLSLtyZQpy PRreveUTGohrpadJvRAip6NzmhFdmxQtMAZVX9v+Rcm30L8+bWwpqQvpqXzALyy2q1tb B39LPjk+1jF2+07Tz5GE6QxDHi+we4sELXBr4iNeceBnAU/MAJqOzttitbi15Fw691iA o93GAFN2TTvEvIpzLiX9lNel3WvuP0W2y/hhZ3atJ3i6ZBGATWBmValuft7CxOlxJw8D V4hvps14K6bGDJH+OL0K7obwlEkxNcxmLNum58MSuW+ZmxA8ZqKg0FWMj+iZcu4A5Y6K MTtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HTaoaLiD; 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 cu9-20020a170906e00900b007830f14fffesi8468578ejb.375.2022.10.17.06.26.41; Mon, 17 Oct 2022 06:27:06 -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=HTaoaLiD; 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 S229999AbiJQMdk (ORCPT + 99 others); Mon, 17 Oct 2022 08:33:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229669AbiJQMdi (ORCPT ); Mon, 17 Oct 2022 08:33:38 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 961151006; Mon, 17 Oct 2022 05:33:37 -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 3223761127; Mon, 17 Oct 2022 12:33:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E426C433C1; Mon, 17 Oct 2022 12:33:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666010016; bh=xOhZ798gL/+y6nBCxEZb+QFOl8ru0dI5jW9R7qV3Dxg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HTaoaLiDl+L3yaW63mFw6G4kb6wRzQUh1cverewP9Figc0sjRoss5x6ryrfn8IUaT fiZ1HFrKsVSvxLp4DpPQxNB0ZLJX+L/tsFc3vR18PdHoTsm6oayMhZVgdc5txiXuRj uRLL1O3OQIG2t/murvbZHiVjTf18hO2z0UMx0oREK5TjVRIwnb9cp1ErYukH3VGqqe ZGoUW4J7aAXeZep/aOcR+tykQ41DY2jO5D7Yg+C9AAP2GO7QJryxmNrndA9x648pbT AdK6Z0wNtSe9b1WgoZokbZQ6fSZUzCfsNRDGF7RyDmE0Y8oBAQyVag1XOWrm/bjpI9 ZJKo0Sr0afX8w== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 4BA1F403B6; Mon, 17 Oct 2022 09:33:34 -0300 (-03) Date: Mon, 17 Oct 2022 09:33:34 -0300 From: Arnaldo Carvalho de Melo To: James Clark Cc: Namhyung Kim , linux-perf-users , linux-kernel , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter Subject: Re: [PATCH] perf: Fix "Track with sched_switch" test by not printing warnings in quiet mode Message-ID: References: <20221012111025.30609-1-james.clark@arm.com> <62f485df-4f5e-64a2-1294-6e162de25556@arm.com> <912a4d0a-51b3-591b-8c8f-f078216d5b35@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <912a4d0a-51b3-591b-8c8f-f078216d5b35@arm.com> X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-7.4 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 Fri, Oct 14, 2022 at 10:47:34AM +0100, James Clark escreveu: > On 13/10/2022 17:57, Namhyung Kim wrote: > > On Wed, Oct 12, 2022 at 10:12 AM James Clark wrote: > >> On 12/10/2022 17:50, Namhyung Kim wrote: > >>> On Wed, Oct 12, 2022 at 4:13 AM James Clark wrote: > >>>>> The test already supplies -q to run in quiet mode, so extend quiet mode > >>>>> to perf_stdio__warning() and also ui__warning() for consistency. > >>> > >>> I'm not sure if suppressing the warnings with -q is a good thing. > >>> Maybe we need to separate warning/debug messages from the output. > >> > >> I don't see the issue with warnings being suppressed in quiet mode as > >> long as errors are still printed. In other cases warnings have already > >> been suppressed by quiet mode and this site is the odd one out. > >> > >> What use case are you thinking of where someone explicitly adds -q but > >> wants to see non fatal warnings? > > > > I don't have any specific use case. If it's already suppressed in other > > cases, I'm fine with it. > > > > Actually I may have been mistaken. Seems like quiet is only used for > "extra info" type messages rather than warnings. Although the commit > message does say: > > The -q/--quiet option is to suppress any message. Sometimes users just > want to see the numbers and it can be used for that case. > > With 'any' that I would take to include warnings as well. I could move > warnings to stderr, but this has a much greater chance of breaking > anyone's workflows that might be looking for warnings on stdout than > removing warnings when -q is provided. > > Also if warnings are moved to stderr and quiet isn't used, there would > be no way to suppress warnings in the TUI which might actually be a > useful feature. > > So I'm still leaning towards the original change, if you are ok with > that even though it's not done elsewhere? Namhyung? I tend to agree with James. - Arnaldo