Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2911644rdb; Tue, 12 Sep 2023 16:46:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGBVLJ1AQ7uUfgYlXn116gcRTEgWKO30tOoyTKO3fiiX78eOqKbzeZS9CVOxCijtM/erbtH X-Received: by 2002:a05:6a20:7d87:b0:137:3eba:b808 with SMTP id v7-20020a056a207d8700b001373ebab808mr1101162pzj.5.1694562375011; Tue, 12 Sep 2023 16:46:15 -0700 (PDT) Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id fr7-20020a17090ae2c700b0025c0d113469si318769pjb.58.2023.09.12.16.46.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 16:46:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gk8kPDOQ; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 8EF55826DBF9; Mon, 11 Sep 2023 23:34:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.8 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230047AbjILGer (ORCPT + 99 others); Tue, 12 Sep 2023 02:34:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229994AbjILGep (ORCPT ); Tue, 12 Sep 2023 02:34:45 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0179CAF; Mon, 11 Sep 2023 23:34:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694500482; x=1726036482; h=date:from:to:cc:subject:message-id:references: content-transfer-encoding:in-reply-to:mime-version; bh=7E0H9ixOKV6DqCMSKJwANw3YhruT4j+FU2cfqV1zMW0=; b=gk8kPDOQT1hTCHInVTjJsQwWHbZ6Npca9ze0YZTpF5xxke611g19/Fjr DaQ5/1NcpSt/dTZopj2Db2FIZmRUNRa0ETBynIfFSxSLCp3KTRfWkIYQ5 IXW6Fzr0akUiblDl1QNszFPZOc6bt+MYX8xuv95pUUJZpxTenc7ZSqeYn dX/NFZhTiWjOGJANsLthdcuM35+c6Yl1CnL//GYmTMEMJq6ESZaPrTxmJ UdSeHgdko6fNORGB1ju/VY2BZ2SSSUcrjipAdcOZK7S0wA5Pq/y656vaS oFGEPCzP39oxNfLjvtwkZe0FWIV35Ef8A3asr1/uaW9R7HNQ1NSlKBRvl Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10830"; a="375619884" X-IronPort-AV: E=Sophos;i="6.02,245,1688454000"; d="scan'208";a="375619884" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Sep 2023 23:34:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10830"; a="693381754" X-IronPort-AV: E=Sophos;i="6.02,245,1688454000"; d="scan'208";a="693381754" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by orsmga003.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 11 Sep 2023 23:34:34 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Mon, 11 Sep 2023 23:34:34 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32 via Frontend Transport; Mon, 11 Sep 2023 23:34:34 -0700 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (104.47.56.47) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.32; Mon, 11 Sep 2023 23:34:34 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mfrh37eMkPwpUAR2bZ9ZZDSXHNk3JfK77rZPLSxP1sxt2OukwwEoPKHYVeAeodTcfOflW3Bi0A8ASKhxBw/chhkSR0+0KEAwGbhlN+dOCrW+k4p4mTR71it4m7iNR/tAzA+6uvjpcSe61cdUUyJB1cluhoQWLN7xGHpiTc+Y8WyDav0ybPEf2gGjq4rOAaA/8Ntk4qXRr+zaWGdYnHqpF6b6a82OPXeRoHO5NgHbvy9oRP2KOAA9s7mhr0bReAEnoJcq8dt7VN0zPLD7uaxVa8cxA3Ru+hOKjUHZFKdGvz5IE4z5pFNwrwxyLH8JXWfGXuPw+z3rM2hbQJMfy7lyJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=0811dn8HyBlGyFRNy+doyvnGXVOx2dvmbDmq2+ETfQs=; b=YnKDNxTuKgWS5t9pPiwiz1yyffFzQ9VqcnxRh8WYW2Y8lJeRMhMeM9sKHrPVpCFjINApeYlJulgZUx1RF3MXz4gQtOCsAC/S1R2gVRnN4fz6SAMjaerfdIRJKhVH6ggK8Lu08rxIRit6sbnd6FGzu0ZwiJiZuEeG1ewvDZQfUvxXY9jDaR/jG21B/S9+DD3u4RSC0TtUUKQVgoEjbk4qckrkuUTzwz7IaqQMkrr8gffLz79bNPt5n0mgawjS+6FNuXWytkcrOB6ClCTPoEGxOTtX2BmUbGWI3tlkqqOKlp5ZUysRueHZvVZxCrE+h43tkiBs5k0I3fVKV8ZTJRLoDg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from MN0PR11MB6231.namprd11.prod.outlook.com (2603:10b6:208:3c4::15) by DS0PR11MB7802.namprd11.prod.outlook.com (2603:10b6:8:de::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6768.37; Tue, 12 Sep 2023 06:34:32 +0000 Received: from MN0PR11MB6231.namprd11.prod.outlook.com ([fe80::8824:ea30:b0ab:f107]) by MN0PR11MB6231.namprd11.prod.outlook.com ([fe80::8824:ea30:b0ab:f107%4]) with mapi id 15.20.6745.034; Tue, 12 Sep 2023 06:34:32 +0000 Date: Tue, 12 Sep 2023 08:34:21 +0200 From: Maciej =?utf-8?Q?Wiecz=C3=B3r-Retman?= To: Reinette Chatre CC: Fenghua Yu , Shuah Khan , , , Subject: Re: [PATCH RESEND v3 2/2] selftests/resctrl: Move run_benchmark() to a more fitting file Message-ID: References: <7026d06ce116c4c5b5454c814cda69387c54e2a0.1693575451.git.maciej.wieczor-retman@intel.com> Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-ClientProxiedBy: BE1P281CA0428.DEUP281.PROD.OUTLOOK.COM (2603:10a6:b10:81::20) To MN0PR11MB6231.namprd11.prod.outlook.com (2603:10b6:208:3c4::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN0PR11MB6231:EE_|DS0PR11MB7802:EE_ X-MS-Office365-Filtering-Correlation-Id: b644a9f5-b27d-4a8b-4fe8-08dbb35a5324 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: s7/iZranWPfanlv/EpseyPLYqBprzUD+xCJvcntxmsO/A8I3usZyA3IZdxK3P1uOUIgnbaZjW1irM7zmWGZkL5SYnyw0+PUlkaFCPnNx0En9o5SJZMPok8cW1QfTwQt7dg158EIL45dYev2CXx/aRyug9BdoOPita7uq9sRyO2WZIoLT2Z9mN4QJyoYvZpTiJH9rXz2DKHN3GVnP/2wgFCFWU/l0KZe6c8j2enmSWAy/3/u4UAwBT6zS9+N+t1ZfLdTU5eSb0uCScau4dcH/l724nxXGDz/j8XhuDf8S0HAz0C6AayK+adb+wvqlTkZPx9LIQypI9Q14qCAL8ydFsicNh8bJvzccZgV/eZ7YU+r7NyDYCbObJj9C22iKhF2IXn2kbaSNrXRHfhq5RKxJrqmBDBAXVKhtuXsfnHTduG3KNPITanSKtrGaPErdCogoUBsU1oVaLMepmyhZRufb5FIn1C2h5F6MXEPT4xUlviZ7tuigAVYwGfpASkJgtxBgKO3DFvyvm8i/p+kG74+NTM6MW5WmX8SwVYH+rKltuvAdgtaR+mk2foOMVO3GtMN0Ur4wgc7G2g1LyndimAa1RwkkIlV9PBJvSaTpyoBZFQ+ZlUCeGw8rj8u4QlKNs2St X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN0PR11MB6231.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(7916004)(39860400002)(346002)(376002)(136003)(396003)(366004)(451199024)(1800799009)(186009)(66946007)(6506007)(6666004)(66556008)(54906003)(66476007)(6636002)(53546011)(6486002)(6512007)(9686003)(316002)(41300700001)(478600001)(8936002)(8676002)(4326008)(6862004)(66899024)(26005)(5660300002)(82960400001)(38100700002)(2906002)(33716001)(86362001)(27256005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?iso-8859-1?Q?YtWFAVrY9OjB5B1fX6M+frCYAwf2joUI6WwpcLhGZ9rN9yR71agBCK2mb0?= =?iso-8859-1?Q?OEJdBcuXNXYx8RENRvd0wgkUWAoCpYYS8QGwxBgSmRLEsFF506Ie7O9Rud?= =?iso-8859-1?Q?FjzdVVKadC53DGFDDQgaWG4sp1OQGAVekkEGTcGd6sYtx0/MReyKl7YIDw?= =?iso-8859-1?Q?8d3JvZRCPtZNygMYYIs6MroETtD2bG1sMBABTPZY9heZsihqqNvVsyEpI5?= =?iso-8859-1?Q?ANRQqKb8fdBwvA71DBVSG0xuugo7oaN9LbtkavFYcaGMaSxSXHyj79bI11?= =?iso-8859-1?Q?1RvFKve68oDcHfQEaW+zNLyHj7s5dYlQcXCayVFmzqrbfU80xeLMXXaMjY?= =?iso-8859-1?Q?/oO4EipaDgPlAj1ERoQUVJB+jfgL9aguQl5gQf4vOMRb8X/DehhRBjMIXb?= =?iso-8859-1?Q?7C9ffGqWXe2qDQisDxrrb/tXjxCwO/aZjcrMMFCtzarOw6vxH439Tx/nn7?= =?iso-8859-1?Q?RTCxYfvjarW9jNDi6sv21+tjBAsZ2kCllzvA0hUMHyfcnJL5KFkNKSH8tZ?= =?iso-8859-1?Q?K2ofvxcJeOyS/Q7YIcDTPau8c19fFP06BlYFGoeFnxD2r3L6C966Q7WIme?= =?iso-8859-1?Q?UDWbQryGqA2BXr4Vb/aYmF3eiLi45aEvMIDxCEuw+6W2AVSwB7mZa5fwXC?= =?iso-8859-1?Q?SW8ZWeaFcEWQedwYhI1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=?iso-8859-1?Q?Dzucsuo8TJvlvydOu6kawaZWLSIx0dCcRVb2GBaSUrvlJZqoEeeeqCqFqW?= =?iso-8859-1?Q?t+PaQTlARBGOhbdDDdERO/vFmfRwALcB8RbF3DZ+29lizJuctt09leyKBI?= =?iso-8859-1?Q?ogQxuvTkCSfQI0ojplk=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: b644a9f5-b27d-4a8b-4fe8-08dbb35a5324 X-MS-Exchange-CrossTenant-AuthSource: MN0PR11MB6231.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2023 06:34:32.7248 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: NN55S6kumbCz1ZgAkzfBNMaRmX52uc7nKEC3iTm3z4gOQGI74VCb4vCXxdRNWGMHCrlmkuMKLCTcRV/54+hrH35Dgdl5LmDfQxGkeaiy7yU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR11MB7802 X-OriginatorOrg: intel.com 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 (snail.vger.email [0.0.0.0]); Mon, 11 Sep 2023 23:34:48 -0700 (PDT) Hi, On 2023-09-11 at 09:59:31 -0700, Reinette Chatre wrote: >Hi Maciej, > >On 9/1/2023 6:42 AM, Wieczor-Retman Maciej wrote: >> resctrlfs.c file contains mostly functions that interact in some way > >This can just be "resctrlfs.c contains ..." (no need for "file") Right, sorry, I'll correct this and the one below. >> with resctrl FS entries while functions inside resctrl_val.c deal with >> measurements and benchmarking. >> >> run_benchmark() is located in resctrlfs.c file even though it's > >same here > >> purpose is not interacting with the resctrl FS but to execute cache >> checking logic. >> >> Move run_benchmark() to resctrl_val.c just before resctrl_val() that >> makes use of run_benchmark(). Make run_benchmark() static since it's >> not used between multiple files anymore. >> >> Remove return comment from kernel-doc since the function is type void. >> >> Signed-off-by: Wieczor-Retman Maciej >> Reviewed-by: Ilpo J?rvinen > >Reviewed-by: Reinette Chatre > >Reinette Thank you for the review! -- Kind regards Maciej Wiecz?r-Retman