Message ID | 20230215130605.31583-10-ilpo.jarvinen@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp181190wrn; Wed, 15 Feb 2023 05:10:40 -0800 (PST) X-Google-Smtp-Source: AK7set/sJZaRTba7JgYqik6pFz1ecDwv6T7cxHAsR+0rAmlN8mSf74GYfvZ58xnbkxW/Ic6suJra X-Received: by 2002:a17:903:5c4:b0:19a:703d:c1c6 with SMTP id kf4-20020a17090305c400b0019a703dc1c6mr1846582plb.26.1676466640615; Wed, 15 Feb 2023 05:10:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676466640; cv=none; d=google.com; s=arc-20160816; b=ssH+dJIJTo7TZpVqeQIcXCiOHEyK0pgDXI6xFZT3Cjv3vsiidE8siXh6qNmk6Gui2F mTrSWQKpRvjFhPeJ10S4h+q4BWAxnGOCI/ktYBBDw9cUMaTV3L2n+yR/YuN0qoYdzT8S 672NN5QtIGQqN6XkK0acVu5h+TqKuyWUHVMiMAcq71hdc2kLUEe/RUUovBjc3c/X1Oac y5nUdAT2iEXYXOBBdnE8MVmS0xfNVPa95d5amMKWSfNPnVLPIhGPcg9+QTZkaRInyXyO 7Dakzj7hyBs+QRyZoiPvIoRAFPW8BwHFhq1OeMesA72N8bT/W9VSWoz7GSXw7A2DpYcF G73A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4/IKN2Sr7/eCgHWUouMZnsg+FJLx+eY52Lz7hQC6ydg=; b=eUq1H5vUWRi//0rQQlcFxO70Rb2Ics4vXaJS1l/6UzE0VCITY3ERXzQD/uBuSDN0gK JYmAF8zOyhCSqdTC5TKyPUgy2/ee4gw0Egu4k41zSS1nDf/p8YM4/HNtwhx5MJyslDQz 4Y6yhBuP3eBwePOu9jffeDuXnUXVijNqeRiTctCOxjfHD9gpwS1Mn++XXRlyOIXkSANk LOouRP04k4O5s6Ab3i7vG9PHbFzIo6Fc4m10dGeuQSzfaDF8mZNN8PYzVpICHY1ixF3V /CTjQCYi/Euaqk4IEggG8kGWrfCah94pQo2w6g79J3ch2mQHL8Vy5emhRdxHqfBn6h+0 xyTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=A7l7IwMJ; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b10-20020a170902d50a00b00198e4bd86besi42467plg.506.2023.02.15.05.10.26; Wed, 15 Feb 2023 05:10:40 -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=A7l7IwMJ; 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 S234124AbjBONH0 (ORCPT <rfc822;tebrre53rla2o@gmail.com> + 99 others); Wed, 15 Feb 2023 08:07:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234160AbjBONHQ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 15 Feb 2023 08:07:16 -0500 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4FF838B74; Wed, 15 Feb 2023 05:06:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1676466412; x=1708002412; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=TMTPGCBFEcyXIrRfllTsJbANrKN0ke5YKs8+ZFm0YOU=; b=A7l7IwMJm5LfeHSE4k4jCw3PP/iyCp+/IygZSffoEgcWJPo/aZqvoVD8 xw6Mv+lfZi8zRWV3BgrB8rmAwWjeQaMXtsj/3ND7MOMWwkxe1GF3xbpoY Y4woRDWoU33dO6A38eCeMJLNX1uUIbnAOZbkvlY2kvDjRFzwP58JvACfA TLOjwrH2Ui3HJzwpLdls5GuL+xpvWCXGYC86jtyRUkCnSQ3J2PDoxl38p 24YAE0EVsgl83z5AAZ0VenbkKePhZFnCBNRqs0bSNTI4p+OQGThWYeVDv tOhRK9jxHwq/jobOw0/9b1zoSfLqIoCbNm0Tq/m5JnF70ttKNn9hRiJez Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10621"; a="319456365" X-IronPort-AV: E=Sophos;i="5.97,299,1669104000"; d="scan'208";a="319456365" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2023 05:06:48 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10621"; a="812436116" X-IronPort-AV: E=Sophos;i="5.97,299,1669104000"; d="scan'208";a="812436116" Received: from hshannan-mobl1.ger.corp.intel.com (HELO ijarvine-MOBL2.ger.corp.intel.com) ([10.252.49.120]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2023 05:06:46 -0800 From: =?utf-8?q?Ilpo_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com> To: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Reinette Chatre <reinette.chatre@intel.com>, Fenghua Yu <fenghua.yu@intel.com>, Shuah Khan <shuah@kernel.org> Cc: =?utf-8?q?Ilpo_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com> Subject: [PATCH v2 9/9] selftests/resctrl: Correct get_llc_perf() param in function comment Date: Wed, 15 Feb 2023 15:06:05 +0200 Message-Id: <20230215130605.31583-10-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230215130605.31583-1-ilpo.jarvinen@linux.intel.com> References: <20230215130605.31583-1-ilpo.jarvinen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757902683911559994?= X-GMAIL-MSGID: =?utf-8?q?1757902683911559994?= |
Series |
selftests/resctrl: Fixes to error handling logic and cleanups
|
|
Commit Message
Ilpo Järvinen
Feb. 15, 2023, 1:06 p.m. UTC
get_llc_perf() function comment refers to cpu_no parameter that does
not exist.
Correct get_llc_perf() the comment to document llc_perf_miss instead.
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
---
tools/testing/selftests/resctrl/cache.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Hi Ilpo, On 2/15/2023 5:06 AM, Ilpo Järvinen wrote: > get_llc_perf() function comment refers to cpu_no parameter that does > not exist. > > Correct get_llc_perf() the comment to document llc_perf_miss instead. "Correct the get_llc_perf() comment"? This is so minor and I do not think a reason to resubmit whole series. > > Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> > --- Thank you Reviewed-by: Reinette Chatre <reinette.chatre@intel.com> Reinette
On Wed, 15 Mar 2023, Reinette Chatre wrote: > Hi Ilpo, > > On 2/15/2023 5:06 AM, Ilpo Järvinen wrote: > > get_llc_perf() function comment refers to cpu_no parameter that does > > not exist. > > > > Correct get_llc_perf() the comment to document llc_perf_miss instead. > > "Correct the get_llc_perf() comment"? Yes. No matter how many times I read my own changelogs through, my mind goes to auto-correction mode and I often fail to spot obvious errors such as this. Thanks for reviewing.
diff --git a/tools/testing/selftests/resctrl/cache.c b/tools/testing/selftests/resctrl/cache.c index 585186c874dc..8a4fe8693be6 100644 --- a/tools/testing/selftests/resctrl/cache.c +++ b/tools/testing/selftests/resctrl/cache.c @@ -77,7 +77,7 @@ static int reset_enable_llc_perf(pid_t pid, int cpu_no) /* * get_llc_perf: llc cache miss through perf events - * @cpu_no: CPU number that the benchmark PID is binded to + * @llc_perf_miss: LLC miss counter that is filled on success * * Perf events like HW_CACHE_MISSES could be used to validate number of * cache lines allocated.