Message ID | 20240103031409.2504051-7-dapeng1.mi@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-15121-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp4806432dyb; Tue, 2 Jan 2024 19:12:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IEKb3nm5rU5WwIhyz+L+F9/nPog8CfvR2JUqrvNu7Ss/mJ5wnzz+e2LPx8996EbZzSA7cqu X-Received: by 2002:aa7:d6d0:0:b0:556:528d:7739 with SMTP id x16-20020aa7d6d0000000b00556528d7739mr364645edr.15.1704251542160; Tue, 02 Jan 2024 19:12:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704251542; cv=none; d=google.com; s=arc-20160816; b=ORwGTYnTPAjX1Z5ni+lBGFse/65SXszECk6+tQysXwTXGr1URSuU9gEsu6CqSqJY2B MAl9oj9pyxciWREQi7EhJ4Mf3BFqlIsLVD9RzsTbgbU9fA5yvwiuTXqISesOkcLbYX61 hPED+SELIfpcaItxFJDliZHMb99gLt28hEyqjVq4nRfuclK6VQW005gIVCXDMTAyWj1x RzAygTBpWR8btPmfYw+7iJaABlSAI0ZfGmAvz4duTCmeks/ipCwNzjKPjll0UguzVoR/ CgHDW9k07/FeeazKrrBM0EbWHFyDRFtUuDLgkVC2d/X9rl0fhU0ItwD/7C46SnO58bMw RAPw== ARC-Message-Signature: i=1; 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=OXewUFkc0t88ozLFC25+VW2dnt6DGBV/hBW3v/xF3/g=; fh=YsfTl7qN5yLiZ/GhYjuBdDgWBv8FNcMbD5266uBeHkY=; b=B6oRkfQyKZkBxU8LAehjWQVGnbXT/icN/rsZBf1FlkguOUPmILlH62kr20GrBLTB+d 0eN0qyv2qvlzIXU5+1BHADpA+Ca7WOc14S0PI1puV3trlHx5CzbQKvpLtx/tAJNv4eZI 1GWy/yZpLfedjU+f+5RY/9ZYLSFYG5ueV5l1s8Q0DLJJmdq7Zi5mfELaELF4Gw699uw+ 5KQ5hag75cFvPv/XdEVxdx2N3mFR7TDaF81P+w+mTSabcgq7m/Mn8yJzcpy/OOfwmRdu l+AhhJZrMVtMowXnbbzK6o7WrO/alhyqhg3qPnV8DyVkM9Su1eNljzhhf/17BYYRrA0h Te6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ID6m0ohx; spf=pass (google.com: domain of linux-kernel+bounces-15121-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15121-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id f18-20020a50a6d2000000b00553db3db65asi11319809edc.227.2024.01.02.19.12.21 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 19:12:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15121-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ID6m0ohx; spf=pass (google.com: domain of linux-kernel+bounces-15121-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15121-ouuuleilei=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 am.mirrors.kernel.org (Postfix) with ESMTPS id AAF2B1F23912 for <ouuuleilei@gmail.com>; Wed, 3 Jan 2024 03:12:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 56CC618E3C; Wed, 3 Jan 2024 03:09:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ID6m0ohx" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (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 8C7DD18E00; Wed, 3 Jan 2024 03:09:50 +0000 (UTC) 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=1704251391; x=1735787391; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=lWYg4zV2NcJ4nxhSpA6Fg/s1u8gQGW0XjbSleu1w/Jo=; b=ID6m0ohxfEQNdo11ngGMnYKGDk++nSIzSxrOHOJm9WZSZNC1ZgI3+KjH 0iEJnBRVRpapdvZ2AYnqQ/R3RuWK5kg6tyEDBIGMZDLotVGLkPjH551A6 FacB5ciBdIEYCOpR5nIxeTi09vug/iat+ozGSPr+XYfa9b8RD7t112dfX VsLW4sWRrZ+cV1GJXJdPD09naavbJDVq4Nkea8SGyYcAZFsE6kFCAO3m8 Z6VLft4ZEHSAAXP978vuIrYwnW5kDoiBobS0jlfZAb9uCBHw4N0kiZj7v JAarTI3Fn8KKRuYppgExAjwWkhnBseC/UhtZ8YpipO/6XzldT9ZsTaR0R g==; X-IronPort-AV: E=McAfee;i="6600,9927,10941"; a="10343149" X-IronPort-AV: E=Sophos;i="6.04,326,1695711600"; d="scan'208";a="10343149" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jan 2024 19:09:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10941"; a="729665948" X-IronPort-AV: E=Sophos;i="6.04,326,1695711600"; d="scan'208";a="729665948" Received: from dmi-pnp-i7.sh.intel.com ([10.239.159.155]) by orsmga003.jf.intel.com with ESMTP; 02 Jan 2024 19:09:47 -0800 From: Dapeng Mi <dapeng1.mi@linux.intel.com> To: Sean Christopherson <seanjc@google.com>, Paolo Bonzini <pbonzini@redhat.com>, Jim Mattson <jmattson@google.com> Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Zhenyu Wang <zhenyuw@linux.intel.com>, Zhang Xiong <xiong.y.zhang@intel.com>, Mingwei Zhang <mizhang@google.com>, Like Xu <like.xu.linux@gmail.com>, Jinrong Liang <cloudliang@tencent.com>, Dapeng Mi <dapeng1.mi@intel.com>, Dapeng Mi <dapeng1.mi@linux.intel.com> Subject: [kvm-unit-tests Patch v3 06/11] x86: pmu: Remove blank line and redundant space Date: Wed, 3 Jan 2024 11:14:04 +0800 Message-Id: <20240103031409.2504051-7-dapeng1.mi@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240103031409.2504051-1-dapeng1.mi@linux.intel.com> References: <20240103031409.2504051-1-dapeng1.mi@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787037265126488875 X-GMAIL-MSGID: 1787037265126488875 |
Series |
pmu test bugs fix and improvements
|
|
Commit Message
Mi, Dapeng
Jan. 3, 2024, 3:14 a.m. UTC
code style changes.
Signed-off-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
---
x86/pmu.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/x86/pmu.c b/x86/pmu.c index a2c64a1ce95b..46bed66c5c9f 100644 --- a/x86/pmu.c +++ b/x86/pmu.c @@ -207,8 +207,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)