Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1112633rdh; Fri, 27 Oct 2023 05:18:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGYXKmGz6yP1+tU4mbEMYfGifeLUC2Gp825qZiTjPvW13T4jhIdTFo2cyI1jva3CMePqz4b X-Received: by 2002:a25:3201:0:b0:d9b:172:eb96 with SMTP id y1-20020a253201000000b00d9b0172eb96mr11145260yby.1.1698409112419; Fri, 27 Oct 2023 05:18:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698409112; cv=none; d=google.com; s=arc-20160816; b=gmjN7MeLqMqw+Xf9agSeE9opPKtgyf75OfDnTUyB6Mx4rP+vJ+dDpGmVX4LUxCBfka TBVObzYkssBrpzEq8Et3YU7FNlfnsHCraxGSDagzY0Xc6N1rXllqBszial91bzz/XsiS e1OcHfhUNB8IYE1u8qecbttY4CfaKGzCDPcUAa4jPN2SKhcduwWlzGcHjPdcENme6OZG VmVHBPNUwnx9ON/A2ngn2VckpxfWkBtSm8fNnMRCaRgkv8hyCohVqNKymigVlzxsU+fS uAx5RTK/6/PwWCgfAXytj9lpleA+B76SiWGshZIZBGzykz2V3Lq2H2pF3s0Ga+Bu8Lym 3irQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=H5vokP8cqff2tLy1I1uYDem7z1zmZknrkP6THMCTEZc=; fh=9HYKVq73O00vH9XuUmlKVBmz82Gyb20rCUblPM5xHHw=; b=Rs45EKQ/TNF7z5aNTeaQbFnbYBwzD9toI/5S/tSuoHbB5iSUQRCOpFKGdxuoZpViQZ WU/3t53J16T1RfaB69MOgNL9nyZJFoq5/mdEToquYkXJrGCJnbz5rn1V6J3uBXYddlnZ Bn/JdYMc+brN8E4h07YfFlKvvvtq/OzRrttIarPV/xci7W0LujgdQ+Q8HaH2lbfW770g kEiS5m3Y74YyRfHWOakjKaQ7Z1GYiJAdbPhDURyfM9Hgg49PjiOPQqYXNa5TIqJ9OmLP W6KFzoAfILKCPvzz/nhG2mhOS75fYNMP38O7vPieB/RSLi1tgQD9Tv+5cRYF0je+tvgL Ptjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=oKzb+qqU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id m140-20020a252692000000b00da077c958e3si2414749ybm.299.2023.10.27.05.18.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 05:18:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=oKzb+qqU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id 47F4E80FDCFF; Fri, 27 Oct 2023 05:18:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345599AbjJ0MSQ (ORCPT + 99 others); Fri, 27 Oct 2023 08:18:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345689AbjJ0MSP (ORCPT ); Fri, 27 Oct 2023 08:18:15 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B47A121; Fri, 27 Oct 2023 05:18:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698409093; x=1729945093; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=6l46F4HRC2paRPeWRlB0FMlwAAK+TWqvJ+qzgL9f2nU=; b=oKzb+qqUfAP1ttmkzOkYN32QZuk1A+qM3+Wsfi6fRLgf8J3DEUZsLvO0 K7zcPiFtzMls+qoVZj3Cv8C5QBAqnV7iYHMySUFRNuztWYeaeJ8mT1eyc JtpUTPpgTfyk7PxXLCt2+r0peGBu8FALzvKDbMtahwPQ8I/wDPV+KuB0g G+6+fux4rQiCyeS/E7/joqjv6+CEWuzLNH8SEkCMrtc5XlA9dLWyhOBFx vXwVqGaNgTdVxcwPb13XkiKmQBHpvwLLo/SmJCb1AmZW+/JQOj45smkRX BAjRpm3ucuS7NoU2yeOVZ7OoEaP27doe/I3koerRJldBHgs8u1LKmL3cJ w==; X-IronPort-AV: E=McAfee;i="6600,9927,10875"; a="384972813" X-IronPort-AV: E=Sophos;i="6.03,256,1694761200"; d="scan'208";a="384972813" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Oct 2023 05:18:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10875"; a="759577201" X-IronPort-AV: E=Sophos;i="6.03,256,1694761200"; d="scan'208";a="759577201" Received: from scoltan-mobl.ger.corp.intel.com ([10.252.33.159]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Oct 2023 05:18:10 -0700 Date: Fri, 27 Oct 2023 15:18:08 +0300 (EEST) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: =?ISO-8859-15?Q?Maciej_Wiecz=F3r-Retman?= cc: linux-kselftest@vger.kernel.org, Reinette Chatre , Shuah Khan , Shaopeng Tan , Fenghua Yu , LKML Subject: Re: [PATCH 14/24] selftests/resctrl: Move cat_val() to cat_test.c and rename to cat_test() In-Reply-To: <5x3wlnejagee5hbigjo6dpvbc5453gnaab4ue6doplneumfgzd@q7yo3j3prh2h> Message-ID: <84d4d30-72f6-f09d-95bc-8861b6686a81@linux.intel.com> References: <20231024092634.7122-1-ilpo.jarvinen@linux.intel.com> <20231024092634.7122-15-ilpo.jarvinen@linux.intel.com> <5x3wlnejagee5hbigjo6dpvbc5453gnaab4ue6doplneumfgzd@q7yo3j3prh2h> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-1936397613-1698409092=:2740" X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email 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 (pete.vger.email [0.0.0.0]); Fri, 27 Oct 2023 05:18:29 -0700 (PDT) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-1936397613-1698409092=:2740 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT On Fri, 27 Oct 2023, Maciej Wiecz?r-Retman wrote: > On 2023-10-24 at 12:26:24 +0300, Ilpo J?rvinen wrote: > >diff --git a/tools/testing/selftests/resctrl/cat_test.c b/tools/testing/selftests/resctrl/cat_test.c > >index 2106cc3601d9..e71690a9bbb3 100644 > >--- a/tools/testing/selftests/resctrl/cat_test.c > >+++ b/tools/testing/selftests/resctrl/cat_test.c > >@@ -111,6 +111,77 @@ void cat_test_cleanup(void) > > remove(RESULT_FILE_NAME2); > > } > > > >+/* > >+ * cat_test: execute CAT benchmark and measure LLC cache misses > >+ * @param: parameters passed to cat_test() > >+ * @span: buffer size for the benchmark > >+ * > >+ * Return: 0 on success. non-zero on failure. > >+ */ > >+static int cat_test(struct resctrl_val_param *param, size_t span) > >+{ > >+ int memflush = 1, operation = 0, ret = 0; > >+ char *resctrl_val = param->resctrl_val; > >+ static struct perf_event_read pe_read; > > Is there a reason why this struct is declared as static? Good catch. I'll change the earlier patch which made the global -> local var move and failed to remove the static keyword. -- i. --8323329-1936397613-1698409092=:2740--