Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1893081rbb; Tue, 27 Feb 2024 04:49:44 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUWFd90mhTtSSSTwFdlzuMl3QZJgGpbuWBuvD3dOpyeVzN7vW64/Di/A8mxXet+Gu5MnE9pyukypTAWIij3NgAze4pvFZs5/cCnDna88Q== X-Google-Smtp-Source: AGHT+IFgw3jwxmULRXPvqcOUnv9Oa+VUOY04aZnHnvDGZ2J9frtSxyFt0lrYrIcQVHPM9/U+0swN X-Received: by 2002:a05:6214:242f:b0:690:4d7:f91c with SMTP id gy15-20020a056214242f00b0069004d7f91cmr2524231qvb.26.1709038184354; Tue, 27 Feb 2024 04:49:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709038184; cv=pass; d=google.com; s=arc-20160816; b=Nx4cOlgJtYBtFupLc68SFTJ8Tu4Py8/G08QudaD7bGtRVkipYTjS4kAr30QjZq6+6D qvadTusvGoslkF6Dp8Xx+eKT+7DSfUFopDIZlvu6J7I15jAbMUMDUcki5qfCR1j3T3xy ndFLVGOTEbO1O87ZurX7Acz9s6LnOQxoKdCtdpFtSN3or/gkyT5tRDftmCnz94q9p6BA wkRxog+zti6JutkTdn0jke0uYZEiM4HmInasJTpLGo2NMYfv4qXT8y+igaVXALR7nU6m w3opW2BIktbR7qcLGzIGqGXfiWHe/nWJsPtoEJjmTW5gLRuMa+MbCsdIvChfiy0Yi1Jv M6iQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:in-reply-to:subject:cc:to:date:from :dkim-signature; bh=Ex6UDqKupucOeT2WDpueBV4NChgAaYw7apd0VzZu6H8=; fh=u3XAMDzTI/q2sVmy81qzRRN1Zwk4ibcluF19xP2ON9U=; b=r3skte/tM54XTU1+c+7+dhDHWssL3SfLpmzDUxm2HmPh0nAZYUdvIosyxGfIbClHjt wGRU9t2/BGvZ5A9wKZp+WYYHjhJr+1XxgeLaAFmgWyNTXvzb+oJjpF2MB257wZTlziY/ xHh3q6dPj3gPPyP55Z/2ZkGdcCaSiTt9dAGmeZt3h3++H37SnGXcDrlzvt9XrvxBBOLB 5rs1V3NTSZgfFYFZvBtXUxVGclOBNbv8meGuIbSphy3h//JFG3essT5nHmAIzxrpKkDI PKrzs67JApEf5wqIIr+BNWcxx2lJFLPK2jGgshSfjR63h/wM75rz0r6s1d4wAmWdx9x8 l21g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WVin+zwF; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-83257-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83257-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6-20020a056214202600b0068f6008e456si7571349qvf.50.2024.02.27.04.49.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 04:49:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83257-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WVin+zwF; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-83257-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83257-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 207001C25A56 for ; Tue, 27 Feb 2024 12:49:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0442113A898; Tue, 27 Feb 2024 12:49:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="WVin+zwF" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) (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 885291EB25; Tue, 27 Feb 2024 12:49:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709038158; cv=none; b=kmeIERU9l5nZdSAIKoJnbZJYt6oVBPJX53dwq6T5H9tT2H4JT3pEhIXZRFNNMW9vuTWvhQVf05e/53fe/fBQW0ibFMltgBGcUyV1zfmkw9Dm61wKQchZqHMCioLS9Aj5Sd0SZujR6TSgGKAKMVwEwSXMS7szCEkEVOcsBm0aZA8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709038158; c=relaxed/simple; bh=oTWwoTX0hrUSfcNocfpLt3JaDWHEII50tRTkLPscP7Y=; h=From:Date:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=SBnLfI/VhHoBkwdVtSWzsX93hEf5Pjkr8fEkIR0Hnq/5UP9lB3RoWJDe2hEftAwQHFCKNc6csQBofkYiwyQu46rfV2LbO3T3NHzdpmiAVUvEG3APErc1dJvDjwTb4vmlYXTJZ870JShyQDs1FfNXuyJMulw8IDD8518BolP8J7k= 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=WVin+zwF; arc=none smtp.client-ip=198.175.65.12 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=1709038156; x=1740574156; h=from:date:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=oTWwoTX0hrUSfcNocfpLt3JaDWHEII50tRTkLPscP7Y=; b=WVin+zwFzNlFnApqpIDrX73fxjFNTPcP5Ctj84APDBtHFRV76tc3Kc9Y nJsTUcWyfOFXp/I6PLxa+OkaNbXIfuwFx/CIX9/uHw7CtE3DwGcluLMQu Z1iE0gYKoI1Oa+7yYGntM7g5Z9fEfryN/VRXdnBq+ISwGdqLf2hG6H/IP a2VW/ENP6R67yQ4++5B3mY7jUOksw7hDZ/rFNy6fU4c6iwWu8MY1DzGEp Jm70QM8AfIGT6c5HnaLazO+IiX8Rpmk9Rb3ZCF779suuK8P3HZZDX57UM HUBHO8cb4043aF5sHh9xuL4TfBWrYQtoOsAjltQlfzIM9StlVWtcVOFA8 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10996"; a="14815031" X-IronPort-AV: E=Sophos;i="6.06,187,1705392000"; d="scan'208";a="14815031" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Feb 2024 04:49:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,187,1705392000"; d="scan'208";a="7379971" Received: from ijarvine-desk1.ger.corp.intel.com (HELO localhost) ([10.246.34.61]) by orviesa007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Feb 2024 04:49:14 -0800 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Date: Tue, 27 Feb 2024 14:49:10 +0200 (EET) To: Maciej Wieczor-Retman cc: Reinette Chatre , fenghua.yu@intel.com, shuah@kernel.org, linux-kselftest@vger.kernel.org, LKML Subject: Re: [PATCH v5 0/3] selftests/resctrl: Simplify test cleanup functions In-Reply-To: Message-ID: <7b86f718-abfb-aa8f-5d4b-ebf5dd7b3e62@linux.intel.com> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323328-157701625-1709038150=:1099" This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-157701625-1709038150=:1099 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: QUOTED-PRINTABLE On Tue, 27 Feb 2024, Maciej Wieczor-Retman wrote: > Cleaning up after tests is implemented separately for individual tests > and called at the end of each test execution. Since these functions are > very similar and a more generalized test framework was introduced a > function pointer in the resctrl_test struct can be used to reduce the > amount of function calls. >=20 > These functions are also all called in the ctrl-c handler because the > handler isn't aware which test is currently running. Since the handler > is implemented with a sigaction no function parameters can be passed > there but information about what test is currently running can be passed > with a global variable. >=20 > Series applies cleanly on top of kselftests/next. Thanks. For the entire series: Reviewed-by: Ilpo J=E4rvinen --=20 i. --8323328-157701625-1709038150=:1099--