Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1863002lqa; Tue, 30 Apr 2024 01:06:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUc5+Gz7dCzEtI+6l4W9WLqLsyrOMEjC+LBO+yPUe+/qt/pt3KcffAgqiiTu5DtlBYfx5Fb1cokh1LBnmimx2Z3zT4W59MKkYXdJnVRCw== X-Google-Smtp-Source: AGHT+IF5PEcEZwh72wZLRuosRZ1ULdIJiayFGkuD1uGAhBOHjm83WfeJV5cKdt6E1TS0csU4+/uJ X-Received: by 2002:a05:6218:2885:b0:183:fb11:adeb with SMTP id vw5-20020a056218288500b00183fb11adebmr17030006rwc.21.1714464399052; Tue, 30 Apr 2024 01:06:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714464399; cv=pass; d=google.com; s=arc-20160816; b=mQMXw0X8eR4AbEQIoEhtSaa+3ikAC1lYs0HF0e5FPsr5sB9qwgd1P1+VnuYTOeLKe9 SS7YSaxnjh3O5wZ+JUp+h4COdm27yj0KVfA6sg+KaMhjhadiOZoknpQQAptw3DVL2Dxw sNZHCA7QyZWcFkN1Uxph4bLyMS+/YfmB1XEw5FoMDe/3f9Nj9BfITjxR1Ae5L9jtpPXb qbqlRrcfbCi+xa2/2eAhWY9DQV+bZzCg0JQttLniTz7ypa75E2qEWqj6INnGxE5jK8Ez 2w6SRbYV+zXfp2M3cZcR0MfF/J46T0qtjRJmCXZ7bjbOYiprpdibXEt3aUOfXzu8Gy6G EATA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=mKrYZhMiFvyWO2hF4RCOIBdkW/6sxzk6hVYokhdGx0M=; fh=kU6fkMKqCNLcRM+GhXY552J3Mj4bfqw4poik2GcADNE=; b=TnB791wP3NzIYm9aGQVTe2OfGEt6Cv/7lMqjeA5SUcpbPZf+I3pN75lDUX5u3HCfXE SocKQheawLcyIpKWM63ghifsWeCxIzsYbHITo2Fu2wcb3ctGUk1ylBa1VaxyFmD3Qbrp urc/bz/OWSilxLuCMwLAyg7I47ZPN0mkSCBSTAc8Db6uDfA52iH5pkipO38jLvQeq1zd L55Xuy/Cdhhcd+UOZbG/MDoxo28YSLlNsDYDC7yrgqE0AjO3EEi+GQI7kQ9ZCCuQD6ea Wg+niMM8+P4HePEcQtXPeSA0BJ68qJAvG81FzQOXQmWyRpbs3WrBoDfdbfCY0MthaAGi uOdQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lWob3ub1; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-163312-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163312-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id x128-20020a636386000000b0060a092f81c5si9320334pgb.669.2024.04.30.01.06.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 01:06:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163312-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lWob3ub1; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-163312-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163312-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 31768B2172D for ; Tue, 30 Apr 2024 03:50:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C210B14286; Tue, 30 Apr 2024 03:50:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="lWob3ub1" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A516D111A2 for ; Tue, 30 Apr 2024 03:50:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.21 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714449004; cv=none; b=Tm6Op1du8IbMkCPdpaF9KwxK4Y0awiPQkWq1suam3+FKQcipSwxpLd+ppY/Ek78MqWgiXU0mJNen3RA017J5IVMg5PrukcvhrVvZHtvdrrnjVNDsoOzZIifa5pIQefNGsdfxdHbElV9hGaCVmExlTosug1b7PoEK1eF2N1VW43Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714449004; c=relaxed/simple; bh=lbQXn7D7ScIp1g+K/hG2vtwI2GfvPeSRqLJWXHjYsYg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=UgiWB61f3buUXbxOq1VSrgDg1NDzxY2AGeBlXeHTbBWAds9qytshG0o/O6u9Eorl7FHpiLeVvl8oH12WYgzQ62knD6w8mMkJQGXKNhSuUyBS15yXh1rNHgoy/HSGlpROquvIbWobufOiJgtwBSud19yEi5VgyoFM476LCrK/2J4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=lWob3ub1; arc=none smtp.client-ip=198.175.65.21 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714449003; x=1745985003; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=lbQXn7D7ScIp1g+K/hG2vtwI2GfvPeSRqLJWXHjYsYg=; b=lWob3ub1r8uaYei5mL7tUf5SwQJcgT9kjc+bl/egxP6uyevSd0087gSY GAE4PzG14EnO7qCpajPThUqEYjzR9esF/l6kgY972xTwR8lRJoTG9HUs6 7U/mMPp4MWwoPSrPEFh8IeHqEEEJI/dk9STmT0Be3zQ7JPGSlM8g0ptUo DVW647U3ho+nk5epfC2skVX1TIOTJjUFdvEHZl6pjKPjcj0u+FbePEio4 8F8N/xiD42Oge/b61yeRCGGzRdEMbfAf599h3mMeHhtgNzJycG/YrYg2h AJFxiTvviYrnG4nquXTpfU95s4LeEnZo+BkqiJf7mDPWyXwLL30OemzYV g==; X-CSE-ConnectionGUID: sTY3cswuQ36e9WI9YkTvrA== X-CSE-MsgGUID: YgCjI8XDS3qsEc1XXiMdNQ== X-IronPort-AV: E=McAfee;i="6600,9927,11059"; a="10059048" X-IronPort-AV: E=Sophos;i="6.07,241,1708416000"; d="scan'208";a="10059048" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2024 20:50:03 -0700 X-CSE-ConnectionGUID: 8t7DsIjZSHWbSshFW7Ic3Q== X-CSE-MsgGUID: sB4mA3UgRRSnAYna6GuBEg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,241,1708416000"; d="scan'208";a="26184564" Received: from unknown (HELO dmi-pnp-i7.sh.intel.com) ([10.239.159.155]) by orviesa010.jf.intel.com with ESMTP; 29 Apr 2024 20:50:00 -0700 From: Dapeng Mi To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Ian Rogers , Adrian Hunter , Alexander Shishkin , Kan Liang Cc: linux-kernel@vger.kernel.org, Dapeng Mi , Dapeng Mi Subject: [PATCH 2/2] perf/x86: Typos and invalid indents fix Date: Tue, 30 Apr 2024 11:56:53 +0800 Message-Id: <20240430035653.19457-2-dapeng1.mi@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240430035653.19457-1-dapeng1.mi@linux.intel.com> References: <20240430035653.19457-1-dapeng1.mi@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Fix several typos and invalid indents. Signed-off-by: Dapeng Mi --- arch/x86/events/intel/core.c | 2 +- arch/x86/include/asm/perf_event.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/events/intel/core.c b/arch/x86/events/intel/core.c index 768d1414897f..88c48cd0b625 100644 --- a/arch/x86/events/intel/core.c +++ b/arch/x86/events/intel/core.c @@ -3697,7 +3697,7 @@ static void intel_put_event_constraints(struct cpu_hw_events *cpuc, intel_put_shared_regs_event_constraints(cpuc, event); /* - * is PMU has exclusive counter restrictions, then + * If PMU has exclusive counter restrictions, then * all events are subject to and must call the * put_excl_constraints() routine */ diff --git a/arch/x86/include/asm/perf_event.h b/arch/x86/include/asm/perf_event.h index 3736b8a46c04..9f35ba5216b3 100644 --- a/arch/x86/include/asm/perf_event.h +++ b/arch/x86/include/asm/perf_event.h @@ -399,15 +399,15 @@ static inline bool is_topdown_idx(int idx) * * With this fake counter assigned, the guest LBR event user (such as KVM), * can program the LBR registers on its own, and we don't actually do anything - * with then in the host context. + * with them in the host context. */ -#define INTEL_PMC_IDX_FIXED_VLBR (GLOBAL_STATUS_LBRS_FROZEN_BIT) +#define INTEL_PMC_IDX_FIXED_VLBR (GLOBAL_STATUS_LBRS_FROZEN_BIT) /* * Pseudo-encoding the guest LBR event as event=0x00,umask=0x1b, * since it would claim bit 58 which is effectively Fixed26. */ -#define INTEL_FIXED_VLBR_EVENT 0x1b00 +#define INTEL_FIXED_VLBR_EVENT 0x1b00 /* * Adaptive PEBS v4 -- 2.40.1