Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2122808rbb; Tue, 27 Feb 2024 11:17:24 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXqxqmw8SwCfGBdi38Kkf/GduuXClgM6Jwbmvw2og+W9m9VzX4sLmyoREJbfl8Met9SsXyPPhqdo4EcLzNYdo3bUbo4IQxrvvjkNKDIhw== X-Google-Smtp-Source: AGHT+IHF4bvWq88KIZBqPyInVG/X1ZlYe4eiwkQ4+dTFZEjAyR5AIUUsL6zMUzq1zsWcRaDWo7ul X-Received: by 2002:a05:6870:1489:b0:21f:903:578d with SMTP id k9-20020a056870148900b0021f0903578dmr12680358oab.1.1709061444270; Tue, 27 Feb 2024 11:17:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709061444; cv=pass; d=google.com; s=arc-20160816; b=aogsbEgzLae/9Rih2uMjuna15PQvSVIxVeWQEOsWqNL4Ho+OUB5mDzYl9gHCGKjlNB JsMfgsRensbsKkDQ6oNZztv+UvWigA59PXLouvOewQM19Tf50vC3aYDVAFZkhlEBJ9Bl vFdE7p3blp8pK7e4NKtsc0vwEQq/9ZhB59Ux4wPTSJpM5ABB68Km5KL2/bTnNMLBLgyF wT9HpV0eA9uaNl8Kmlj06Dnt/Tdb8+xuTAM94yRC1MO2N7kL6RMO1lE7a+Re5VKvQ6h8 gCDuvZYnqbJ7r7Jymu7OiHJbBjgw9bMkozJuKuZKKDZaqFUWrsOndSujlhp58++VEGr1 yWYw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=dirYeZHnqDri3DwW7TmMf82GkeTX1C0fIGiW3gq4lyo=; fh=BjPFckzU6RantzTx1qcziF52YAR+loKK2QcHTOTC6Xs=; b=cxWKfMDNF+3HITtwVZuzUmbk+Px7aBFMCM8PJMJqVnK/9DfGxErO3JaGQbFACr0GC+ 5XEMxDZ81JxRFO9lErlmH1rhseZp0z+l5Wiuzg9rZscyq2xEzs4x9urVRUbAq5DDbc4Y QqxEIYIqBiouNUY2TQDU6uUCItqBlXMz4grU0JlP/NPmnl/ueL10eAtqe7mISTYBpcRV 4nXG5PzJSb+Vhd9B9ewnjoEy6aaFdo07kxjzC3TC+650G36m48/NAbc1H4LS1y30tM/P tBoVd4TPXAb0F5mFyimbVWcNWGyjbt6v9YoqODjjyP+TjHQoBTAXrCSqO2l5qS3r7oqn scQg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=P5WhXT9C; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-83908-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83908-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id l3-20020a05620a28c300b00787e0068f98si3106508qkp.311.2024.02.27.11.17.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 11:17:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83908-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=P5WhXT9C; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-83908-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83908-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 05BCC1C2350B for ; Tue, 27 Feb 2024 19:17:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3D31851C5C; Tue, 27 Feb 2024 19:17:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="P5WhXT9C" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5C79051009; Tue, 27 Feb 2024 19:17:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709061434; cv=none; b=QI3W3/frX94iRZgebjRIjApJ0Fgmy50bwbsIuZzWpPwUYjBBkL4+FQTKGDorjWWpfg85TNuzfagYhnx0NE8FAZq1b/7tuwzEyBSpLEATdBTBmvI3kfOVVZoH/GtFVSogSgCptFSzq90gjDrgajx8sgQ9QB8d1SFbvPNFFWVMZwY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709061434; c=relaxed/simple; bh=qBzTwOoOVdZGvWfwhMIPBvViZVyBZ+zCsfhtr7smb0M=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sLLsEVwvwpTGWAqf+z+jM2d0z/wbJIU+qNwKWV4agp2c7JkBlajjYrLe2AAhhX6VTOztKIVysD6F95OzoSVAjZiSXNNynenVkEMRPp5mrQVKA9aCHHng5v8ZJYiScTPWoLTMF6ckfFRwkpsxh6wLYf+WcybsCeJM3dOfLe1xb+U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=P5WhXT9C; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9F78BC433C7; Tue, 27 Feb 2024 19:17:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709061434; bh=qBzTwOoOVdZGvWfwhMIPBvViZVyBZ+zCsfhtr7smb0M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=P5WhXT9C66TbTBGpzsx6WCAtyUeG0AqvPJZG1FXMdh+28LuTBL+zeb3vuOjb7KVUx HYUZcIM9VtpWtbfBX+XtyT6UE7fdzS/+BhrT4DXCd2qS/syxgJ5ZnrJOYw3GDRLcCI oBEPIm7OgdtStxzhlyU3Z8k+xCkyPGhM2HOfsOGTHfVPVqykWYawWdCY2vcsGsbS4Z EWSI5eEwdDTq1e1CuFUtUcZRwblg9/348rTaXYmhzEyk8MsIRbCSdcNAvDlmgg8nMH m7RGA7DsDXd4fX5u0f9AaOGJfm9mK+T7mhh629m0eQ3njU6Oucjfm3oJMHJB/2NEsv N57HWrvenVhzA== Date: Tue, 27 Feb 2024 16:17:10 -0300 From: Arnaldo Carvalho de Melo To: Namhyung Kim Cc: Ian Rogers , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Oliver Upton , Yang Jihong , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, bpf@vger.kernel.org Subject: Re: [PATCH v1 4/6] perf threads: Move threads to its own files Message-ID: References: <20240214063708.972376-1-irogers@google.com> <20240214063708.972376-5-irogers@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Tue, Feb 27, 2024 at 09:31:33AM -0800, Namhyung Kim wrote: > I can see some other differences like machine__findnew_thread() > which I think is due to the locking change. Maybe we can fix the > problem before moving the code and let the code move simple. I was going to suggest that, agreed. We may start doing a refactoring, then find a bug, at that point we first fix the problem them go back to refactoring. - Arnaldo