Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp386986rwi; Fri, 14 Oct 2022 03:33:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM42Idgw+an7OEd1DqHNBr7Kb5/OW2zhc+QIaG5gj4yrlvrC3MJCmr3JNQnogNiq32jfa9k0 X-Received: by 2002:a17:902:b092:b0:17b:833e:74f7 with SMTP id p18-20020a170902b09200b0017b833e74f7mr4335473plr.149.1665743599287; Fri, 14 Oct 2022 03:33:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665743599; cv=none; d=google.com; s=arc-20160816; b=bd00Qdz2vTw9ttmNzv54avR+UlMVRW3j5tUXSXuGA6bhxAExaxFldOXxIL6b/HUGDj EctPviN4bRwUh6ljdvF1Ja9Ki5gKLRvUPuuhPK+3GyAprJ4dB1upWUOP15twC3+8sddK bE+FfF0A3kPbwABLNaP1Ofz+vhKSaurTGPATXcp5/zxhKnv8gIqatrce2Ai/ntR72AJS oiRlHEdBiMJpRLC1QJDT+t2hhciszlynYL1rqOflZP+nKoe7ICnTSek2AT1QwK7D0AHp JMYAcS6KJuT3eTHwFDM4U4T1SLveQ/er17THfxOV23NJXAJ8iCCQTgm6jZqfmFcz5axn hcwQ== 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:content-language:subject:user-agent:mime-version :date:message-id; bh=yUwCVJoNFTtSJ66bTbj7Y0LiXozT5LhIaz/frsT6buU=; b=Rs+44MHnvWcSwEsrJ2cZn1vQJBLeRhCbCki2QnA5Lz272uLmpBEuux8n4kTPjCCm/e gFkVGD/QBXLvHgXDSCmgXeGwqeCm5vBKDu2Avf1j1QYUdEd6QTZvvIMDg98eFb6kv4x9 1ulqtLP2W3l5x4VG96bXfv+0pUd5ydzFQqY5MdkSztzYYE9qPMtPs6zwWwpSe9rhXjfw AXjFC41sja5NUH29Yn4q3mhWJL0h5m6GMQkYl8Ctj4vmvygj1tJrZ0LZbmrpJVnrVA2t H9Vz0aEsT2xNw2NnYlmcEXwyeT2lBpJMgSPinKOO/ArGv0MwLDdsLrAGIAh/wTC4TyoM bIdw== 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=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w1-20020a63a741000000b00461c7200fafsi2327303pgo.320.2022.10.14.03.33.06; Fri, 14 Oct 2022 03:33:19 -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=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229689AbiJNJrr (ORCPT + 99 others); Fri, 14 Oct 2022 05:47:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229818AbiJNJrn (ORCPT ); Fri, 14 Oct 2022 05:47:43 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1AFDF1C8411; Fri, 14 Oct 2022 02:47:37 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A04FE13D5; Fri, 14 Oct 2022 02:47:43 -0700 (PDT) Received: from [10.57.4.130] (unknown [10.57.4.130]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E03E63F67D; Fri, 14 Oct 2022 02:47:35 -0700 (PDT) Message-ID: <912a4d0a-51b3-591b-8c8f-f078216d5b35@arm.com> Date: Fri, 14 Oct 2022 10:47:34 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH] perf: Fix "Track with sched_switch" test by not printing warnings in quiet mode Content-Language: en-US To: Namhyung Kim Cc: linux-perf-users , Arnaldo Carvalho de Melo , linux-kernel , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter References: <20221012111025.30609-1-james.clark@arm.com> <62f485df-4f5e-64a2-1294-6e162de25556@arm.com> From: James Clark In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE 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 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? > Thanks, > Namhyung