Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp15218548rwb; Mon, 28 Nov 2022 09:08:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf41jXx0mE5gZQag3yH64iGbtZlJxpzgFpQVMQ97POhhfw09qoY7mzLoCj/VUqj9XiidmOe1 X-Received: by 2002:a17:906:79d3:b0:78d:b6f7:53c0 with SMTP id m19-20020a17090679d300b0078db6f753c0mr30303696ejo.527.1669655328481; Mon, 28 Nov 2022 09:08:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669655328; cv=none; d=google.com; s=arc-20160816; b=gP/Ci1DRaJuEplTaxxMONwk+Tb3TrJSkw3rZu+I1NeKuJnR+P5cckDP/cFhdcbh7r6 yjWguoGeVMBc35KlmdLm1KjsUlQBpJLaLIQwmeq6bxJYiL7U9AG/hwFYvynOALeywlpT ISNk0svnNwjW27PUBrsD5l/6d5TBj15XCnvrLVnn15+9vLAhsUKShcG3iR9vQEXaI18x sm97znP08N5g8Uj4NNPL0kk8AGe9JUBIwjPpSslHX2ESFTZJnQjlVtrKd7gbJ4+QmoVv O6FFDNWVfPtvuqt1FZ4RnIjFKwTTLastElkx9qXaqlTajVvl01XsfgVO3SLg1VDix5Cz Xe7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=5tIo75I3qn/b657QuzCzioKIRtk5YjNUbr/yow23Luk=; b=ykl7NPskuouXZgASFTix8mCHZd5g/dOPfvKijItSg/hGsIuI/sQvI3yLd6p8lgq08V /RjdFn3p+mZCywXml6k8Qd0nYn/aIHQ5F64b0Vn24ohDciEcLEhd2sr/xra10gJ4SME/ aObJTOIKS42+C8pVyPjfrznfmJzPyzPd06lK+qZBXDn2RijyDXuc9VNc40WfNHAwWi/8 jlcbNBH0cfZeXSboltoVcfuvyakU1wiXQJhB7R/l9G9VHcMebZ7FTdRMg4umWf1oNwwP uW62mdWRvA2jajVXXJ41i9RjBBtp2VvBA9UaeV7vc0wSMli74p+H9e8KDLKW58kOPx46 bjSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mWN9X+RI; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ho34-20020a1709070ea200b007ae03f7b641si11148360ejc.782.2022.11.28.09.08.17; Mon, 28 Nov 2022 09:08:48 -0800 (PST) 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=@intel.com header.s=Intel header.b=mWN9X+RI; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232725AbiK1QgC (ORCPT + 84 others); Mon, 28 Nov 2022 11:36:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232336AbiK1QgA (ORCPT ); Mon, 28 Nov 2022 11:36:00 -0500 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DBE520F6B; Mon, 28 Nov 2022 08:35:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669653359; x=1701189359; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version; bh=bpv9EcCzKKYgtgd8XPPXyhjlOvzzWCv3x/6Nbovu2o0=; b=mWN9X+RINOieKi3WCpncPRBOniC7dM/Lq4jrGpdlzpcd/vw5cVjbuMOV OAQnk5zzUzXJlYaohd1H3MzNKP71Eut58Zg41L+MiYPFZ0l/41Igm2acM 2uS4sCwSEp5PeWAYTvHvD/MftvSkPy89uyCj52xUM0KIKc6tSIkOZpgEQ jKRsXY1XmqPMIpHTTOrBlWLCFaTb+/FUJQe9sj/YAB8UQeK72uiAu99Xq Gs/35iukN91dU/mIIGdly/bGQE8ofS6h3yKG1ynDqkTvO3XlCxgDwcll7 edy2yujxvaRTNehy4jigH+vpJuAo3/6MLtfSWJRmPOrgTa8mNY+svTT2n g==; X-IronPort-AV: E=McAfee;i="6500,9779,10545"; a="341794100" X-IronPort-AV: E=Sophos;i="5.96,200,1665471600"; d="scan'208";a="341794100" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Nov 2022 08:35:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10545"; a="674280975" X-IronPort-AV: E=Sophos;i="5.96,200,1665471600"; d="scan'208";a="674280975" Received: from ubik.fi.intel.com (HELO localhost) ([10.237.72.184]) by orsmga008.jf.intel.com with ESMTP; 28 Nov 2022 08:35:53 -0800 From: Alexander Shishkin To: Rob Herring , Will Deacon , Peter Zijlstra , Arnaldo Carvalho de Melo , Ingo Molnar Cc: Namhyung Kim , Jiri Olsa , Mark Rutland , Catalin Marinas , Marc Zyngier , Oliver Upton , Suzuki K Poulose , James Morse , Alexandru Elisei , kvmarm@lists.linux.dev, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, James Clark , Mark Brown , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, alexander.shishkin@linux.intel.com Subject: Re: [PATCH v3 7/8] perf: Add perf_event_attr::config3 In-Reply-To: References: <20220825-arm-spe-v8-7-v3-0-87682f78caac@kernel.org> <20220825-arm-spe-v8-7-v3-7-87682f78caac@kernel.org> <20221118164943.GA4872@willie-the-truck> Date: Mon, 28 Nov 2022 18:35:52 +0200 Message-ID: <877czfujdj.fsf@ubik.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 Rob Herring writes: > On Fri, Nov 18, 2022 at 10:49 AM Will Deacon wrote: >> >> On Fri, Nov 04, 2022 at 10:55:07AM -0500, Rob Herring wrote: >> > @@ -515,6 +516,8 @@ struct perf_event_attr { >> > * truncated accordingly on 32 bit architectures. >> > */ >> > __u64 sig_data; >> > + >> > + __u64 config3; /* extension of config2 */ >> >> I need an ack from the perf core maintainers before I can take this. > > Peter, Arnaldo, Ingo, > > Can I get an ack on this please. It appears that PMUs that don't use config{1,2} and now config3 allow them to be whatever without any validation, whereas in reality we should probably -EINVAL in those cases. Should something be done about that? Regards, -- Alex