Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1207935rwi; Thu, 13 Oct 2022 10:23:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7KUqlJeMfOLVg8zDLEV0KsfzeC6KtEwWCrPKzGMlfYibKQ0A+NUtfK10SneuZPBcYUwV/c X-Received: by 2002:a05:6402:370c:b0:453:9fab:1b53 with SMTP id ek12-20020a056402370c00b004539fab1b53mr757423edb.28.1665681810019; Thu, 13 Oct 2022 10:23:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665681810; cv=none; d=google.com; s=arc-20160816; b=pvr+XIJF24raqSJ6dQM//G6YQupRHGvmrHqR5K4n+Mn/C8F10/CwD0Ke4Kd+HuiHBM 98LtmM1de0jSldfNdrksWt9QZR8k6FOho5pw1aYQi5DMlj+eGzwY82hSPFlaEnf4ZWWf 666iKYSUH6ysn82c/fBgDz3yMnQ1oY4cURvPN9K8IcwAhyXwNMNLefxjrltTCLASiKoL OL/4yiuYQk2ADeebGKnsAPrFGVrvi222kyR2d3nM2FcneJfKMRjHtibyERum52exPgYe jgvSiab6VfU+TYGGyFQoEcjG4X/EjtfeRq9/VruaQFWNLXCzt58ZWzYepBzpatX/rb0d vfvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=wp9gOD2D8Cn2++oAEo67TBNzJG0AuFo0QYkoCA4FJW0=; b=CVFObut0QAX1qrYT8ktBsK97zFE3cz77PFlOYPpoQsICa8/vezacOy5PyTealEGOvX J1EqX590NUQ3oYDOVekzyILRj57jhXut4n8+OvMmO52iGCyJ5nkLM4tVE1nsA041UCjz Q9XhmhQVgAsTFjM70L1RNcOjHUX1/P1xzSNM0tU4p6UMX/l/2yb7e7tX5MEwy37megD5 +4ThfiFxPEBDUafWtSkBgEeYUcLut2x9bmLMXjiqQZrDbnFo9MbC5Io5BDL9mqPg2/up /YUXm5GkmS9CerhjFWg4dxfrw9PjCYkopWLw9z9oJ44EQ3SUieup0XMOG9VCUwHOzh4g TQkQ== 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=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 l13-20020a170906794d00b00781d6cda765si175884ejo.913.2022.10.13.10.23.03; Thu, 13 Oct 2022 10:23:30 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229828AbiJMQ5x (ORCPT + 99 others); Thu, 13 Oct 2022 12:57:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229809AbiJMQ5w (ORCPT ); Thu, 13 Oct 2022 12:57:52 -0400 Received: from mail-oa1-f41.google.com (mail-oa1-f41.google.com [209.85.160.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C94BF4D4E3; Thu, 13 Oct 2022 09:57:50 -0700 (PDT) Received: by mail-oa1-f41.google.com with SMTP id 586e51a60fabf-1370acb6588so2970755fac.9; Thu, 13 Oct 2022 09:57:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=wp9gOD2D8Cn2++oAEo67TBNzJG0AuFo0QYkoCA4FJW0=; b=ks8AQCp+maiExyHfoGNUdQVCQLJDYUWQgClqgr7n4rROJlLWfuZ1q+/DvlnOGUYHDo lo0pqTOhoDhJDGcgDCFvYQNzpBetYQY2LNudSw9HfxLXslUhx+WNV0JX54prCbphTcoG fWu1ZaJFlRvbpv9celKGUPApWCSTmV4wEDRyNI47wdIBz6MZQImb2ISY/eg3mRcMIHrh 7KX2Tg1Dqpp0XoyNUijeVpz+ey2jU5VqHNzMFp/vw+Di83iUDvfD1C1KYYxkzUfg8GK7 SuC8xtspH5Hdyv3gvc2HmRzqe4fiuRF/wkyOt8UKLWczy8qnrHmF5gUJ5HXc4hGoKlX3 trkQ== X-Gm-Message-State: ACrzQf2EaiKdIxkj01Wn+ZQ6972rLLHkTiy2K/XvAV3vUOxn5p3+sP2/ beLt2lb2v4of3rlfmSrE23D0mfPvTmcNdb3AFf4= X-Received: by 2002:a05:6870:4184:b0:136:5e73:b40e with SMTP id y4-20020a056870418400b001365e73b40emr334466oac.209.1665680269454; Thu, 13 Oct 2022 09:57:49 -0700 (PDT) MIME-Version: 1.0 References: <20221012111025.30609-1-james.clark@arm.com> <62f485df-4f5e-64a2-1294-6e162de25556@arm.com> In-Reply-To: From: Namhyung Kim Date: Thu, 13 Oct 2022 09:57:38 -0700 Message-ID: Subject: Re: [PATCH] perf: Fix "Track with sched_switch" test by not printing warnings in quiet mode To: James Clark Cc: linux-perf-users , Arnaldo Carvalho de Melo , linux-kernel , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no 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 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. Thanks, Namhyung