Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1695265rdb; Sun, 8 Oct 2023 22:24:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGSOAx7qayEWloyi/RC66ss0xFYgrGnPk4ON5v9kqujHthLqYEWV87Zwrpu2iZUNsBAygqw X-Received: by 2002:a17:902:a411:b0:1bc:4415:3c1 with SMTP id p17-20020a170902a41100b001bc441503c1mr12962860plq.7.1696829098668; Sun, 08 Oct 2023 22:24:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696829098; cv=none; d=google.com; s=arc-20160816; b=cQ/bXkr0ScKltWHRaPbZZI7VChJS8cduxd84RV2PZIvozllGxlQmjqN0aqPfAPH9Qh 5I9nNw2njPDx9xEIn/6Z/1eCGm+qzl+O/jL83L5ZJukb7uft44/deUoKzlUhBqnvzU9Z aFe8ZbdCKZBwoHRr/LR4Pz74lyELlPiNbADa+EtzTINMd2fheGY6TwN8wuSrh3u8LNQZ /6HWo4BWhLMQ7DY/ygtVwrSoer4xQcaGEzGTi8L17Fz7mMRGdeDXznRoblLXhej7LNws HcKHLd6DEXJzkJwUGkAguSOhNwMDgCTlqvr96UUmoBuOobOf+n0xuPIZC7kf+OkqEViD NMKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=2auofwX5eyaiaZG3VrSNmvdw94BTXJ2UcVXvikn6+ug=; fh=newNMRy7keZ0y5w0/Wd6Bbu+mKaa9TfuMVeTvbgjwiY=; b=BWeIXlqEA9SkfBEYBa8HrHNd7Ism2Y/vTPAvQaIHRIVPi/+6VWN2MncAVQaAz2dBzK 2fCet1YgUsOGn6xi7IbsK7rSw5kddoq8tp8VFrN5Ae+dA7B0+igzhPaF5BT7/x8Bt/hq dk9J6SKwYCkVFt/gvx8OsBX3plt7ng+nXpNSu8i1ZgZ+S49Fl5dEa6BGMbMDZ8omP2Ns s35208iLQadDpY4n80qmytFm5dmLEN01VHj/d1lYebqgnvi9Dd4aSZiw0zWJqT1BiH5W LUFy+XPOec0KqWn4AvnbyDkL4xvOT1wXLSBzOmyMJm47xZpTQBAY3yxVr0CXOOXbd1dC TTkw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id j3-20020a170902f24300b001c61af1e683si8310688plc.641.2023.10.08.22.24.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Oct 2023 22:24:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 83A5D8054B6D; Sun, 8 Oct 2023 22:24:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345095AbjJIFYm convert rfc822-to-8bit (ORCPT + 99 others); Mon, 9 Oct 2023 01:24:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345049AbjJIFYl (ORCPT ); Mon, 9 Oct 2023 01:24:41 -0400 Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C59B9E; Sun, 8 Oct 2023 22:24:40 -0700 (PDT) Received: by mail-pj1-f41.google.com with SMTP id 98e67ed59e1d1-277504a23a1so2989498a91.0; Sun, 08 Oct 2023 22:24:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696829080; x=1697433880; h=content-transfer-encoding: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=Xpof+8MbEOLDax78hKDLCrUVP8odJ1HYCOuSnwvkb5I=; b=Es+LJpJkTC+2aHljVWmVOsCHsrWiX7jF+9fqTzpvtBZyPUVOtz4FHRtKCpAt+5zAN2 GIpTUbfiIaZJZtxCU9x5YYMi71cT+3uJkP6AfrBCEEqqKEVEMwtEi4tTAx4azj/fMHpX J1ZSHG++9JOUlN77tHSWkAqX9yV8uAV3Ds7P1YXldvTYkyJLsJQaDARe3P4UqJnP3o/k 0hDyohZ+yoL+UWGvLh2ARDquOtxDWPiXn5DeYMt6Z/dA0JG3InO4b6amy+XLkwfvtnRF cty3F3HzMoc8fTi5Yasdg5KJt1C6ztJ+H2b75DrVy28PwPbm+sGVhlXGdKV69OQqSaCx /SQg== X-Gm-Message-State: AOJu0YylijT0CDCWG502i0+iQZJco7q3NxZokdtNeom36Bift7rxtY1P YGLS2IXNGVTXGE9izvouikuo95SMw6NEd4mLI0Q= X-Received: by 2002:a17:90a:5415:b0:279:5a3:d5f with SMTP id z21-20020a17090a541500b0027905a30d5fmr18561685pjh.9.1696829079975; Sun, 08 Oct 2023 22:24:39 -0700 (PDT) MIME-Version: 1.0 References: <20230930060206.2353141-1-irogers@google.com> In-Reply-To: From: Namhyung Kim Date: Sun, 8 Oct 2023 22:24:29 -0700 Message-ID: Subject: Re: [PATCH v1] perf test: Avoid system wide when not privileged To: Ian Rogers Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=2.6 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,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 agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sun, 08 Oct 2023 22:24:56 -0700 (PDT) X-Spam-Level: ** On Mon, Oct 2, 2023 at 10:10 PM Ian Rogers wrote: > > On Mon, Oct 2, 2023 at 9:47 PM Namhyung Kim wrote: > > > > Hi Ian, > > > > On Fri, Sep 29, 2023 at 11:02 PM Ian Rogers wrote: > > > > > > Switch the test program to sleep that makes more sense for system wide > > > events. Only enable system wide when root or not paranoid. This avoids > > > failures under some testing conditions like ARM cloud. > > > > > > Signed-off-by: Ian Rogers > > > > While I'm ok with the change, I wonder why it doesn't have the same > > code structure as in the stat_all_metrics.sh which checks the actual result. > > > > Acked-by: Namhyung Kim > > The metric group isn't printed when we print the metrics within it. > This could be changed. Ok, we can change it later. Applied to perf-tools-next, thanks!