Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp865761lqd; Wed, 24 Apr 2024 21:38:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU5v3Zbws0+9GAYHh4/xJKkdNTz5q+UYD90LsCuWIqJ/npKZnfRhWU3QqmvXJgTMk7HXHNXsAjIqyaZ3vkHxb9FFlP8Q2kcx/6rXDGeEg== X-Google-Smtp-Source: AGHT+IEsak8Cqwv/7lrL4ZTLlikkdlCGpaPHYXxc3zvbPp5XHyZOtLhrNgGhpIpOf0SdMzGWcTjc X-Received: by 2002:a05:690c:74c4:b0:61b:33c8:774c with SMTP id jw4-20020a05690c74c400b0061b33c8774cmr4867267ywb.33.1714019890823; Wed, 24 Apr 2024 21:38:10 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d19-20020a630e13000000b005dc491389a5si12843186pgl.812.2024.04.24.21.38.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 21:38:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157997-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Y4N4mf5E; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-157997-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157997-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id CEC96284E2E for ; Thu, 25 Apr 2024 04:37:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A790839AF0; Thu, 25 Apr 2024 04:37:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Y4N4mf5E" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.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 E2329374C4; Thu, 25 Apr 2024 04:37:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=192.198.163.10 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714019859; cv=fail; b=CAYDXcRsjXipVLSa1DmWHs3vg9Rjz8znOsIZorhTPUPLwfyskdzwkD3aTw0lna9+b1XVNZxxJpjPT2JvAX9fw68kTL6m2eLxyM/GFcsR2ziOwwkbhkqtpzhPLAt+NGD4Dli1hTPI+xk1Ff9UdOaOv7jwMomN50/Wm6SWpZIKTNQ= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714019859; c=relaxed/simple; bh=dtx1mevYPHK9kKZAq5oqvVuhVFuKlCpBL00hQLIZlWo=; h=Message-ID:Date:Subject:To:CC:References:From:In-Reply-To: Content-Type:MIME-Version; b=KGcjyEg4XfZ2EQVuXHpNRa6n5GYzr5HWiA09YNWbd1L6l/r2jnTktN6uKs7ARba8HseWnVukQygIs6JBnGK6Z4dtsUTqVZ+jxSZpkUStFedwPY+M0cMY3T78fcUY7+i1or8S0tI/WtZs9ou6IEGCp7MpbO0JqR75VngWrxtCNF8= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Y4N4mf5E; arc=fail smtp.client-ip=192.198.163.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714019858; x=1745555858; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=dtx1mevYPHK9kKZAq5oqvVuhVFuKlCpBL00hQLIZlWo=; b=Y4N4mf5E6OJk8tZp50fVxUsS3kQbu8eQ04EiQRmQlj9DOz3mPG2NUDWq ZXrgEuGI4GTLSTggWQAU6cQSQJlR0r5ywHwq93A+eoP7IuCbDyeVpoCO7 6ULC1A5ACopoZo1f4rQikPNO1KmcuiLegovfgFRPH6RHOxWNZ7/KnMl2Z oSDDUhMzwoZoGU6KRyuaKy1ZGnwltOFqMpo6NStYi00GJqAZ9SvbgMqB9 xsvluMSPULBJsp3vIaI4HhfDwqhsC3De1ddKc981psDwlQJegY0L0vid1 V9DoQcYjsJfCLabmf3qEVOvX5QUWQgd6ECKCbxGN93kfJL8Xxo1MPb8h+ g==; X-CSE-ConnectionGUID: STd12iUbSEGvSKyZYNtgqA== X-CSE-MsgGUID: GJyrBPPvQfezBBCuqx6CzA== X-IronPort-AV: E=McAfee;i="6600,9927,11054"; a="21094304" X-IronPort-AV: E=Sophos;i="6.07,228,1708416000"; d="scan'208";a="21094304" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2024 21:37:37 -0700 X-CSE-ConnectionGUID: FKWPzn/zSHiM63wJsLCtYQ== X-CSE-MsgGUID: q5fq4pgfS2qUX2rIyURUfQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,228,1708416000"; d="scan'208";a="25366516" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orviesa006.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 24 Apr 2024 21:37:37 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 24 Apr 2024 21:37:36 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) 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.35 via Frontend Transport; Wed, 24 Apr 2024 21:37:36 -0700 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (104.47.51.41) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Wed, 24 Apr 2024 21:37:35 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dsTOEJ1JxnZZ0PyrDlapT3ViHAYrH7G64OKb4POcsoROm5alyTMkU5qw2uCFflZBRiMsaMeGgFBcKLgzGX3owS+J5EUtHpXBrnTp/5TtKJFhlxD0i2YUqmzeG0F+BxPBR/RSz/rsCth4ldF26V+oe2krIE3K1uchjS6xbsKls+Ok2DwqOPs7kioWTLoOKZakQZr3nBn1jNWjALQsSZPPD2nzqk8jOtTvH9qC6D0KgCkXNKXuVSSjJORWWhBVIjqcyj8B7MVeWH0nZf7pmRJiDAgM756VaRTw8vVelsqST/XzwRY01shGxvQFD67GvS5WZCiZaKvpXqdT15qD4jwfHg== 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=1Hubukcjm+9sNQfXqaHTZ9+vjHIXWc4s3FiyHcliAnE=; b=CXmwnVNJ64P708iGeKInZy+wKnA/pIMEW+0GwgEVKHuM5Mi/LU6G4qjUk2CTWnMd3XiK6IX/PI0LuxKaDU14sP83IGJnPg9WHFLsvgIn4q4w7hvZaJmVRtnyxZvfrx8+1SSxTOhURZ50nJ1nFG/3hfi8TzYZiidJhkkeStJuSKdQhoAtbYHj6LO5FLpPjIvmZuFRDfC9AdMDVG/PvUcpIZnzYT4yhQsIsrtyvK+JT+2GMHmyWP9gOGUbmR/DI+BokbhjVIjKrVKyGVxDNiqwBm67nCqcAlMvEqstgZNVyHpyQTQERjBeUXhDCMosFjxphHYrOiVoGnR0pMslranNaw== 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 SJ2PR11MB7573.namprd11.prod.outlook.com (2603:10b6:a03:4d2::10) by IA0PR11MB7330.namprd11.prod.outlook.com (2603:10b6:208:436::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.49; Thu, 25 Apr 2024 04:37:28 +0000 Received: from SJ2PR11MB7573.namprd11.prod.outlook.com ([fe80::d610:9c43:6085:9e68]) by SJ2PR11MB7573.namprd11.prod.outlook.com ([fe80::d610:9c43:6085:9e68%7]) with mapi id 15.20.7519.023; Thu, 25 Apr 2024 04:37:28 +0000 Message-ID: <3135e3c2-9d29-427b-8e6b-c0b627c7890f@intel.com> Date: Wed, 24 Apr 2024 21:37:26 -0700 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 07/16] selftests/resctrl: Cleanup bm_pid and ppid usage & limit scope To: =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , , Shuah Khan , Babu Moger , =?UTF-8?Q?Maciej_Wiecz=C3=B3r-Retman?= CC: Fenghua Yu , References: <20240408163247.3224-1-ilpo.jarvinen@linux.intel.com> <20240408163247.3224-8-ilpo.jarvinen@linux.intel.com> Content-Language: en-US From: Reinette Chatre In-Reply-To: <20240408163247.3224-8-ilpo.jarvinen@linux.intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-ClientProxiedBy: MW4PR03CA0272.namprd03.prod.outlook.com (2603:10b6:303:b5::7) To SJ2PR11MB7573.namprd11.prod.outlook.com (2603:10b6:a03:4d2::10) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ2PR11MB7573:EE_|IA0PR11MB7330:EE_ X-MS-Office365-Filtering-Correlation-Id: fd07ff16-58d7-4a43-f9bb-08dc64e169cd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?utf-8?B?dXJNWVJMMGlRRkFVUDYrUHhQbzArcHpOZHdpRnBhTzR0b3M1N2pQVzJFQ2J1?= =?utf-8?B?NEFrSHBXL0t6UzI3bC9hS2lRcUlIS3B1eFdDNk5BMXNCUTRkay9sUXdKYXFa?= =?utf-8?B?QWhNS3U5T3R4N1ZHekNxOUlVYlJJNC9jSXk4WjB3VDNTb2xWWnh2aGF2V25r?= =?utf-8?B?Y3dnMitwN1NRVllZbm1NNmQ0Z0FVVEZjWUZDMXpEYjF1b1JsU29lSDZQTDZt?= =?utf-8?B?OTNmUlJzM0d0N3lRQlQyOEthaVRROUczY1QxWWp1S0piaG91QTJ4STQxbE03?= =?utf-8?B?S1RaVitQZTI3d2VyNzZlQmJLdFpidEpLV0wvUU9XdHJ2QXZoMktwNUUrcHRk?= =?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ZFp1bDNQ?= =?utf-8?B?a1g3YVU1S05MemcxbWkrVnV3ZXdXU2RjcWtIVzdiNFd5TThESXo4U2ZPeTZa?= =?utf-8?B?V3BFb2ZjQXdrVnpoVFYxeS9ubUZNMFZDZkZES3VWZGlxY0kzbzNqa2FCNzhG?= =?utf-8?B?UjJKVXBSZDhoUGJ4dVRTUUlrNGJRenJnRHZKcmp4a09Lc1Jwc2dXUEdqazd1?= =?utf-8?B?NVg4OE9vcXlJMTZ2UzR2SHJzMWNVUUkvS25GK1lBS1JsVnVOb2dLbGtPMUhL?= =?utf-8?B?Z2VJNTdrVFVpSGIzVTVycnJVNlF0M2NwQTJTNVlwbGlZU0hxU1pVM1FNWW1J?= =?utf-8?B?c2NyVXFPbFlhdDZhOGpYUjJwdnNSd0ZYNlA2RWNTM2xYZy92ZmZOTkFjaTB3?= =?utf-8?B?QlJLNE1iSGpEWndINitIeE9CVXI2YkUrQVJZbkNnRHFaM1daMnh6NWdXRWdG?= =?utf-8?B?V2d5aHZFQXh5RGEwK045ZGhWMGRheTdYWDZEU0J6MnE2SHBsM1l6dERRPT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ2PR11MB7573.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(376005)(1800799015);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?ckc5Si8xR0R0VlVyek9GN0xUbmwxSHg4eWJZTlJxQncxTEorQ0NqeCtnTEJC?= =?utf-8?B?dG5NVmljMU05VWk1UkEvcU1neXdSQWNzejB5VDlHMUs2WUcrNXcweDhUS2d4?= =?utf-8?B?WCtUTHAzN1N0Wm1sZXRFWUcyemN4RHk4blRjZzNsK3cvdVc1RVBqN0ltdUk1?= =?utf-8?B?UjZJRmszdEljUjBrZ0syNG51R2Y1bXdBM0JUSjR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F0TDA1WWxKdG5iZU1SN2NNY2tlYUdrYkd3VGFNL1hjUURTWEFtZ2pZZmpz?= =?utf-8?B?ZXRzVHhwdTY5T1BPRXAvbUdVRjJtWEVKa2V5MWtGUzJEVDAxOHV5a3J4Mkl2?= =?utf-8?B?U2M5ZjIxY1IyaSsxVXJ1ZWFPYnhhZzBVUm1RR0htbWNNaVByT0VhQ3FOVGRs?= =?utf-8?B?WlE9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: fd07ff16-58d7-4a43-f9bb-08dc64e169cd X-MS-Exchange-CrossTenant-AuthSource: SJ2PR11MB7573.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2024 04:37:28.6639 (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: snGJAlF7bKHjmcTq/PKzvzE86LFOl3kCLd8Zl6ZR2S0xBnEEI1Q2Cq32IJrjCAs5t/YMrEoja0esHL36LTyRkA62Qgzp2BILoBuFTG+a2kg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR11MB7330 X-OriginatorOrg: intel.com Hi Ilpo, On 4/8/2024 9:32 AM, Ilpo Järvinen wrote: > 'bm_pid' and 'ppid' are global variables. As they are used by different > processes and in signal handler, they cannot be entirely converted into > local variables. > > The scope of those variables can still be reduced into resctrl_val.c > only. As PARENT_EXIT() macro is using 'ppid', make it a function in > resctrl_val.c and pass ppid to it as an argument because it is easier > to understand than using the global variable directly. > > Pass 'bm_pid' into measure_val() instead of relying on the global > variable which helps to make the call signatures of measure_val() and > measure_llc_resctrl() more similar to each other. nitpick: measure_val() -> measure_vals() (two instances above and also in the changelog of next patch) > > Signed-off-by: Ilpo Järvinen > --- Reinette