Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp515700lqt; Fri, 19 Apr 2024 02:41:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXt6omUKfDv6o7rJoN2lbkw7alAOlqOk4ngnj9U7+baYD8dGGzswv3Y+ilUjYbpPD1Bpq8f+f44vHD8XD9oh8X1L4cyl1vjK8lu11n1cA== X-Google-Smtp-Source: AGHT+IGbb9nY4t4N9zp4jMehLsMgNusM5f81SdECcz3Lv7lRMVC8R5D9c9igWf6ALBYc9WBRtzZA X-Received: by 2002:a05:6808:1523:b0:3c6:974:f1f2 with SMTP id u35-20020a056808152300b003c60974f1f2mr1869897oiw.38.1713519715992; Fri, 19 Apr 2024 02:41:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713519715; cv=pass; d=google.com; s=arc-20160816; b=vGu0R35D5Wqv2ylIdVLCJoks7S6aaaEy/RxeZRkLVl6YbAPesybPtU50Nkp9q51Ble ROCdLLq66tBtH5LeR3ToIEl69tYH5+j5/sFe2nBx3/Fa2WMz0wNLowDkh53HdhYTEoIa CvC/dkm8k4WWXIsBpyDkRcTSmsOANtmps+vh0JOT5noLfNJ2gda4O51yPIEhEkOWplNh 0/f+lrcTmSyNCySHqR0X1RhhI9KyoZNZuURvmFSGgxbAEeh0EK2WQfHtO3fVJyIDQPoy JmiPY2d8ZajxUpWy8QlsvYR7wfrjtP4slCvMmqN8GYstkcPAgYT9WgEamfPDUBfLL2G9 HB+A== 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=Ya3IRS2hpBT6M4acLxjle7Awoxf9qdl6oF9V1Kn54zQ=; fh=3qX1+dlN8PYECDPP2iJ6RyaKnRhI0MQxvVbehX3gfaw=; b=befupiHMQHqh/JD5NNs1DhDusuNB5m9AXJO9lRYdDgMaDYxmHTQNP6Fm0oZfqqV9pg 7BXtYQKAWx6CHj/8NDT+hsGMpnrmdyhtYS/e1KlSn5TFcMeToriko3CtMmJgMC82zJEN L35ZPump5qBe41BPFRHNmmiywEEOaA3d4wdBlAiktpE5J2MbhAS4xrXfzpBbjdhSyFWb OowJ2LAcyJGcxNV34ndKIRSPyk1NwQPtmO0jbOoFJiSy02mcPpjlc/GupwCRE4PnNwsV vMx0ccAgG8h7oDYQpgSbhit6KXyH0fdywC1n8IDvueoMrb3LozHBKieWPv2kdmpk3igt a+XA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RVL+eOL9; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-150978-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150978-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id j9-20020a37ef09000000b0078d6d72384fsi3199923qkk.644.2024.04.19.02.41.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 02:41:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-150978-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RVL+eOL9; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-150978-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150978-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 35B571C2202D for ; Fri, 19 Apr 2024 03:46:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5B76F10A2C; Fri, 19 Apr 2024 03:45:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="RVL+eOL9" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 513A9DDD9; Fri, 19 Apr 2024 03:45:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713498341; cv=none; b=T8e9XPIRZo6dgxOjwvgT+peIBUiayXQAnq419lp2mCZnCpe7Ebh8pHi0EddCW6ZzfCJztcHgdLBEMg2hVAo1L4M2fZswCo4DsxmDVrWE3fxMEs4e4FKLKUIwpT5usbtEV6tvAaTD6OcqGqayO+pc3Yi36KqPzLw7jzQhb7jxsQE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713498341; c=relaxed/simple; bh=LxFSjPHK2sa2aihQ51xpIpnx2+ypI2jC3yBIVvG0fmI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=aW4XgJnS7cfOFozrheML1dAkOKTmuio3yqvmp4Epi4vCkVC4bBbDcm9AsWGMq+hOEzhA0Hz9DsN6hVokIRY/y/Omqvu9T4CwBG3B8SoZI+TM3xoaIQjE58mlCdG/+f5fMHZJbqkQEWmvHWqdBcQwVY7G39Q8eWD3UdDtTPok8Kg= 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=RVL+eOL9; arc=none smtp.client-ip=198.175.65.9 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=1713498340; x=1745034340; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=LxFSjPHK2sa2aihQ51xpIpnx2+ypI2jC3yBIVvG0fmI=; b=RVL+eOL9Xs8tis0BQU5msN6ChDcpLSWWJ8gkY4qQnTHjlsSvEWDmbx8A 2AUKCvafcUK1smlIbiAnhFIN7Arwx5ke8u/LRib7tP1zyF+nqmQ8R2Rv1 E2aHK4YiarCgV/oW+WPH/wLKr9tAS+lO4LYl55hq9ZGc8Tjv/e30nXAVj TSXucDcmY1DnFmL/qmAa1RiSnPWAmwEYuXzYLoaCyTPZu6ktR0ZYzZ3LJ YaIMM7g4e2VKYjY+UiHbkNbgYpwBa8s/UVhNmrr4thmugtWvlZFIZ3xYc 6ZKRg6AKHEbPJIak8ul4dSnLRl8KgSvey9IkRZkT85mA1zlRREK4IWR9H w==; X-CSE-ConnectionGUID: 0+LRJzFsSIKmhLOGHqW+XQ== X-CSE-MsgGUID: 9ca9CsGWRf2xJQM+/Bc8rA== X-IronPort-AV: E=McAfee;i="6600,9927,11047"; a="31565404" X-IronPort-AV: E=Sophos;i="6.07,213,1708416000"; d="scan'208";a="31565404" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Apr 2024 20:45:40 -0700 X-CSE-ConnectionGUID: +1gYnQlRSTKa25/eYYd33g== X-CSE-MsgGUID: zl6nGItwS+mIbwFsyK0fkg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,213,1708416000"; d="scan'208";a="54410114" Received: from unknown (HELO dmi-pnp-i7.sh.intel.com) ([10.239.159.155]) by fmviesa001.fm.intel.com with ESMTP; 18 Apr 2024 20:45:37 -0700 From: Dapeng Mi To: Sean Christopherson , Paolo Bonzini , Jim Mattson , Mingwei Zhang Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Xiong Zhang , Zhenyu Wang , Like Xu , Jinrong Liang , Dapeng Mi , Dapeng Mi Subject: [kvm-unit-tests Patch v4 02/17] x86: pmu: Remove blank line and redundant space Date: Fri, 19 Apr 2024 11:52:18 +0800 Message-Id: <20240419035233.3837621-3-dapeng1.mi@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240419035233.3837621-1-dapeng1.mi@linux.intel.com> References: <20240419035233.3837621-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 code style changes. Reviewed-by: Mingwei Zhang Signed-off-by: Dapeng Mi --- x86/pmu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/x86/pmu.c b/x86/pmu.c index 47a1a602ade2..4847a424f572 100644 --- a/x86/pmu.c +++ b/x86/pmu.c @@ -203,8 +203,7 @@ static noinline void __measure(pmu_counter_t *evt, uint64_t count) static bool verify_event(uint64_t count, struct pmu_event *e) { // printf("%d <= %ld <= %d\n", e->min, count, e->max); - return count >= e->min && count <= e->max; - + return count >= e->min && count <= e->max; } static bool verify_counter(pmu_counter_t *cnt) -- 2.34.1