Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp5566982imw; Wed, 20 Jul 2022 08:06:34 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sLTrXdRZA1f74+hVkRI+N1GbQ+ccD4Y4VGfVWEnARMTW8W3dpLzSOgbtxhu+zs8HFLzNbC X-Received: by 2002:a05:6402:5513:b0:43a:b866:b9ab with SMTP id fi19-20020a056402551300b0043ab866b9abmr52183946edb.290.1658329594586; Wed, 20 Jul 2022 08:06:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658329594; cv=none; d=google.com; s=arc-20160816; b=eQssgwA7GJ20n38IFmTiHLdLtzw35WExYEmtpnCKEA7d43nI90F3f5kckmSYIRMV5N mPaKDMq7YS5w7IcqmcDRq2pJy4zmWlWhf11Fj/cUWxVui6fOrpMyZoFLC164WgSfdamH b3i68QrNsmyN5yM90hTlU0NoNlR1a6khvkRdyoXalAgAnl/DLl4VC33lg3a6JaLiYLvU 7ttNx0rVFBBC+GT4puklOqpcACvv4bCsEXPUXhaIrISHokL6LQhLw+AhgVnVjeayJsRE 6wHvYviKO40hYVt3LRKkehIrNNywChyw/SXhgEZ3pIp6uwHJPNJfQQlwTD9GrZLUW+GH 0VtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:date:from:dkim-signature; bh=ZdJHosg5SmguSr4QYtxRtnSRmNzmgYCrlbvAvjhF6/8=; b=rni8AdObzBh20cpoT1hsAU83hKL1WPXvzBpxKREux5QfqRmXpTEuZ112VY+zgy+2Oj ZiWFiPpJH84BIPO/lAgWQyHefhaa3BY1H4gfnyomXv8/hp0KxCm74JiXoZOUZV7iuriy xd0S235dLOSU57fiHPylq0IjO+jGIRZ662/iH2hWtPdKsFwjuNuAqcuqGjGfMoT+C6Sf /kPeX4tWCgFgUXFS7brnMApZokPxey2KP8iQK9u3VRr/DNz25tCU/GQm9N2dbHsBtIiI 3UU+cTxakxNGzVKKn1BUCyHW5/d/cAAbQSdD3SpjANMGOJAZufem+/Pn66M41cWUWjhP KNtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@maine.edu header.s=google header.b=hRSjO53d; 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=maine.edu Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y17-20020a056402271100b0043a9ecde70bsi26131468edd.475.2022.07.20.08.06.10; Wed, 20 Jul 2022 08:06:34 -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=@maine.edu header.s=google header.b=hRSjO53d; 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=maine.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241058AbiGTO5h (ORCPT + 99 others); Wed, 20 Jul 2022 10:57:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231344AbiGTO5f (ORCPT ); Wed, 20 Jul 2022 10:57:35 -0400 Received: from mail-qk1-x731.google.com (mail-qk1-x731.google.com [IPv6:2607:f8b0:4864:20::731]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DC574198D for ; Wed, 20 Jul 2022 07:57:34 -0700 (PDT) Received: by mail-qk1-x731.google.com with SMTP id m16so9570292qka.12 for ; Wed, 20 Jul 2022 07:57:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maine.edu; s=google; h=from:date:to:cc:subject:in-reply-to:message-id:references :mime-version; bh=ZdJHosg5SmguSr4QYtxRtnSRmNzmgYCrlbvAvjhF6/8=; b=hRSjO53dVDoKv6d15hfNA3BC5lcv7CxBEeYh9CIxq3gcNun87ZyiKkiWkEzUicgnUz Nvnp43sKvYQKW6IRLggs4vplH/qyuwBt5crtLtbdqcs/wFExjVn6+Y5XhTIBuJdpT+2D xwRlxQAp78i6v1YboKPRL3qm1bz3hn7MRYWIQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:mime-version; bh=ZdJHosg5SmguSr4QYtxRtnSRmNzmgYCrlbvAvjhF6/8=; b=Z7D3/xCbK0mx3s9ZXkKcjF3zK0YJuzY2otYu34Lxqxt69b19LFUTD+USpxzF6cf3s+ BG4Sgo3rvQxVOJR6MwH5SF8lIjwTGVMWUsrD/oPD9e2JF79nGyRf3TfgZLJu/RD6eXeW SdDsBfb1BVPZZwc/kjy7JZW07g88rGDYXCeNbquYnrlEvoTWtTLK/9kc78S2BrAvsakt cZcsruXdn56jcOyS94Jug/phe8ZVhasRQxKbYzUk+AodZkicvcEuPAgutBjW83s7DbBw 4BKvRT6dRQDfpFvexXt6yhIlqZcgokwunCJ7srwRGCIxevOJjmXbJPRXYmWNa3ySZN8P +0bQ== X-Gm-Message-State: AJIora+4n/+zL4WEoGH4m7AUYpjmx0dHWHOeGyfMWv85pMITzvL/TYio C4eSBV0rdBmjzSrORH/1KtyKKA== X-Received: by 2002:a05:620a:942:b0:6b5:c733:eeb6 with SMTP id w2-20020a05620a094200b006b5c733eeb6mr19150846qkw.473.1658329053721; Wed, 20 Jul 2022 07:57:33 -0700 (PDT) Received: from macbook-air.local (weaver.eece.maine.edu. [130.111.218.23]) by smtp.gmail.com with ESMTPSA id h7-20020a05620a284700b0069fe1dfbeffsm17269404qkp.92.2022.07.20.07.57.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jul 2022 07:57:33 -0700 (PDT) From: Vince Weaver X-Google-Original-From: Vince Weaver Date: Wed, 20 Jul 2022 10:57:32 -0400 (EDT) To: Ian Rogers cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Kajol Jain , Andi Kleen , Adrian Hunter , Anshuman Khandual , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Rob Herring , Stephane Eranian Subject: Re: [PATCH v3 3/3] perf test: Add user space counter reading tests In-Reply-To: <20220719223946.176299-4-irogers@google.com> Message-ID: References: <20220719223946.176299-1-irogers@google.com> <20220719223946.176299-4-irogers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 On Tue, 19 Jul 2022, Ian Rogers wrote: > These tests are based on test_stat_user_read in > tools/lib/perf/tests/test-evsel.c. The tests are modified to skip if > perf_event_open fails or rdpmc isn't supported. > > Signed-off-by: Ian Rogers > + .type = PERF_TYPE_HARDWARE, > + .config = event, > +#ifdef __aarch64__ > + .config1 = 0x2, /* Request user access */ > +#endif should this value have a name rather than being a "magic constant"? Vince