Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp251026rdg; Thu, 12 Oct 2023 04:55:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH6t02PqAv0Gsc9R/rzWl3yl1vQnRQ66BIRuBE8q9uvbnOq8vblrZSgD7f6QN6L/SG6HCys X-Received: by 2002:a05:6870:1b0d:b0:1e9:a8ff:67e8 with SMTP id hl13-20020a0568701b0d00b001e9a8ff67e8mr3311845oab.50.1697111738361; Thu, 12 Oct 2023 04:55:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697111738; cv=none; d=google.com; s=arc-20160816; b=se4/TpD4VPYDNzRxcsVrE7FvjZ9UGaSt6S0BVCNu/QpHzPSfPYi4BABa6nKy2lDq7o OdofYaiadJK1br4/x0mp57AgVrno8rU68HpVi8lh/Thj03UpcYyytJW+kyrUiuiQ+JL0 lEy4+ivaTQZ1JXmfodix3Z8Bk/huhppdatVfVFdSrnoQr3iYn9BlR4GHgzlSdjbwNQE9 MhRLKUFH9Nm36OuGVXE9TB7HDCRrMSdw37TjJI+rt8spkZkxM8rn/j5GusboK8wrpTzr 9cymF8CnNoydX2QQmOAl1OP66ubDt39LX1iwtc75yi4Jser4YKCpYEjJumMYmCKjYTLr 6ooQ== 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 :organization:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=lcQDjNbBKCMEos+fGVQ7rJi2WpJwzlwv6/cccBDlzwY=; fh=W3U2V5NWgOp/qb3+mq+iAX2Phz2PcGd1A8pr7VsL1jc=; b=ClR5DB4ADeKTVTPCzlet86ZQPj5YYvrz4AQyy9J/0br6U11JnGLMtercMX1rI52QfH 4qmxB780uZp27aDYn1zyI9m3JACLTEJZgHQCGUJAC6qn6h6yKCrzgyvoVHPsyLbQhYaN PSTdfVfKPzsGJyoHe3aKoVSdo03B9yE5vhdbjmB/gyJ3Egkrf841Zr/tzJvDF9DhDT7C B7WKxn/iUP9wj4rt2UKeBBUexKBbz8J5bDKECsUSRmra1cZCYrD2W6sReEoQr4uUOOqV XDOJ8iyd/7MIywkK8xXyABWpSgMh5QVoj14HrkrrxRWvs0/Vc3RbFukum1/va1zWiy9q L0jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JqeEw8e1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id b6-20020a633406000000b0059ba6e7a065si2168258pga.621.2023.10.12.04.55.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 04:55:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JqeEw8e1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 6724D80981A4; Thu, 12 Oct 2023 04:55:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378795AbjJLLz2 (ORCPT + 99 others); Thu, 12 Oct 2023 07:55:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442949AbjJLLzF (ORCPT ); Thu, 12 Oct 2023 07:55:05 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE5E0658C; Thu, 12 Oct 2023 04:53:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697111603; x=1728647603; h=message-id:date:mime-version:subject:to:references:from: in-reply-to:content-transfer-encoding; bh=QAxAyetg73HHGlwaNyN3/g6f3UuJ6ZNcnJXJPuO59jE=; b=JqeEw8e1lPrLIr4OT1lSPdhtaMAV/WFgiqH5IS/sT/kmDGnQNieOnp0C iXdtsWFBPHuYtmVDLUTx6jIRhshfrUx+bE7FaJ8G6RtK+L9R0+EdSjl9H z9ZYQWtAqZBfN5mzfzdL097lb4MrYr+KNL64l7/5ntX7I5Vp1xXbWt1dt U2FFKzC7gEFv9ciKgCAp7xJmCbqWAnUWLQd0Upvlj1rKDH9kOdxB6S/Qe aeBA5lcIgxlbsD4u0ENcSC50dvw110BeS/ICqZRMfNYFkxCv5HHVDKQRJ f0DAIxpc9HTXv+2LV6ohzlFMBeApMoSP0R4auDpZEr3vLaDGdPsu01ZUq g==; X-IronPort-AV: E=McAfee;i="6600,9927,10860"; a="415949459" X-IronPort-AV: E=Sophos;i="6.03,218,1694761200"; d="scan'208";a="415949459" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Oct 2023 04:52:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10860"; a="870545554" X-IronPort-AV: E=Sophos;i="6.03,218,1694761200"; d="scan'208";a="870545554" Received: from ahunter6-mobl1.ger.corp.intel.com (HELO [10.0.2.15]) ([10.252.41.84]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Oct 2023 04:52:22 -0700 Message-ID: <18273cd4-a720-4eab-a14d-f24c5f3299bb@intel.com> Date: Thu, 12 Oct 2023 14:52:20 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 2/7] perf intel-pt: Move PMU initialization from default config code Content-Language: en-US To: Ian Rogers , Suzuki K Poulose , Mike Leach , James Clark , Leo Yan , John Garry , Will Deacon , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Thomas Richter , Ravi Bangoria , Kajol Jain , Jing Zhang , Kan Liang , Yang Jihong , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org References: <20231007021326.4156714-1-irogers@google.com> <20231007021326.4156714-3-irogers@google.com> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki In-Reply-To: <20231007021326.4156714-3-irogers@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 12 Oct 2023 04:55:37 -0700 (PDT) On 7/10/23 05:13, Ian Rogers wrote: > Avoid setting PMU values in intel_pt_pmu_default_config, move to > perf_pmu__arch_init. > > Signed-off-by: Ian Rogers Reviewed-by: Adrian Hunter > --- > tools/perf/arch/x86/util/intel-pt.c | 2 -- > tools/perf/arch/x86/util/pmu.c | 1 + > 2 files changed, 1 insertion(+), 2 deletions(-) > > diff --git a/tools/perf/arch/x86/util/intel-pt.c b/tools/perf/arch/x86/util/intel-pt.c > index b923bca939d9..6d6cd8f9133c 100644 > --- a/tools/perf/arch/x86/util/intel-pt.c > +++ b/tools/perf/arch/x86/util/intel-pt.c > @@ -267,8 +267,6 @@ intel_pt_pmu_default_config(struct perf_pmu *intel_pt_pmu) > > attr->config = intel_pt_default_config(intel_pt_pmu); > > - intel_pt_pmu->selectable = true; > - > return attr; > } > > diff --git a/tools/perf/arch/x86/util/pmu.c b/tools/perf/arch/x86/util/pmu.c > index 811e2377d2d5..949b3e2c67bd 100644 > --- a/tools/perf/arch/x86/util/pmu.c > +++ b/tools/perf/arch/x86/util/pmu.c > @@ -22,6 +22,7 @@ void perf_pmu__arch_init(struct perf_pmu *pmu __maybe_unused) > #ifdef HAVE_AUXTRACE_SUPPORT > if (!strcmp(pmu->name, INTEL_PT_PMU_NAME)) { > pmu->auxtrace = true; > + pmu->selectable = true; > pmu->default_config = intel_pt_pmu_default_config(pmu); > } > if (!strcmp(pmu->name, INTEL_BTS_PMU_NAME)) {