From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.ilvokhin.com (mail.ilvokhin.com [178.62.254.231]) (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 C07F8399026; Fri, 27 Feb 2026 12:39:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.62.254.231 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772195948; cv=none; b=NFuIqfEIFGshlAwaut7ayVbOmVVGxZxzf+3uvXweKb8FPNY63cCjV8Oek8nnMYvyPFSB7zQpJnArIJWWtHdevVYnmsdIk8f9vIzthcKdKRdfHqIbZWvgjMUVslpOCn4HcGgI9OBCcSczUFJMUYtcyD7T/7a6vpmg+sZfZsvMRko= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772195948; c=relaxed/simple; bh=LQaAxYbXykQ71q0y4SbJbnezXbB7UItWi6hV3dMayAI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=chkdvp2M3K6sZ8aCBMDFSbCwSB6a/D6pSMg6r1c0fOo8qTzOjFrqOy4Tm+bboGt9A+AAIY9cOAm+AqWmdohSGFtOJhGAYfhEsLh3YWht0thi93AkZDsusqpSATe77NeXDeHwn7VQXwnZ2+bJTDVcyg0foyhUlY3mLkIvKYGc0bw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=ilvokhin.com; spf=pass smtp.mailfrom=ilvokhin.com; dkim=pass (1024-bit key) header.d=ilvokhin.com header.i=@ilvokhin.com header.b=sx9uvzb6; arc=none smtp.client-ip=178.62.254.231 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=ilvokhin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ilvokhin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ilvokhin.com header.i=@ilvokhin.com header.b="sx9uvzb6" Received: from shell.ilvokhin.com (shell.ilvokhin.com [138.68.190.75]) (Authenticated sender: d@ilvokhin.com) by mail.ilvokhin.com (Postfix) with ESMTPSA id 66C23B2DDC; Fri, 27 Feb 2026 12:39:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ilvokhin.com; s=mail; t=1772195944; bh=lagw43JwvowHFrojgNjKAjJ7QQwZVHMS96IQwGeM2pY=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=sx9uvzb6fY4BMRxlL73VCSdMzqVe0zeqoGpO1lAPnBmEbW8AbhPkSkGPuu4b460kI m8BJ+MuG/RJ3vmuNA1EhDXrHF4vH8Cz6IEgFFDLR1qgBc+fEg5kSEb+okRx7bGt+Yi ybSwmN9VBUS7VW1OG4Lw1HGV4ytlCNxAP9PZYpRE= Date: Fri, 27 Feb 2026 12:39:00 +0000 From: Dmitry Ilvokhin To: Shakeel Butt Cc: Andrew Morton , David Hildenbrand , Lorenzo Stoakes , "Liam R. Howlett" , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Axel Rasmussen , Yuanchu Xie , Wei Xu , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , Brendan Jackman , Johannes Weiner , Zi Yan , Oscar Salvador , Qi Zheng , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-trace-kernel@vger.kernel.org, linux-cxl@vger.kernel.org, kernel-team@meta.com, Benjamin Cheatham Subject: Re: [PATCH v3 5/5] mm: add tracepoints for zone lock Message-ID: References: <378089dd269249d3d7981fe10eb8b49ad551d353.1772129168.git.d@ilvokhin.com> <20260226132501.5b70914daf9438a1103189ee@linux-foundation.org> 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 Thu, Feb 26, 2026 at 01:31:48PM -0800, Shakeel Butt wrote: > On Thu, Feb 26, 2026 at 01:25:01PM -0800, Andrew Morton wrote: > > On Thu, 26 Feb 2026 11:14:52 -0800 Shakeel Butt wrote: > > > > > On Thu, Feb 26, 2026 at 06:26:22PM +0000, Dmitry Ilvokhin wrote: > > > > Add tracepoint instrumentation to zone lock acquire/release operations > > > > via the previously introduced wrappers. > > > > > > > > The implementation follows the mmap_lock tracepoint pattern: a > > > > lightweight inline helper checks whether the tracepoint is enabled and > > > > calls into an out-of-line helper when tracing is active. When > > > > CONFIG_TRACING is disabled, helpers compile to empty inline stubs. > > > > > > > > The fast path is unaffected when tracing is disabled. > > > > > > > > Signed-off-by: Dmitry Ilvokhin > > > > > > ... > > > > > > > +void __zone_lock_do_trace_start_locking(struct zone *zone) > > > > +{ > > > > + trace_zone_lock_start_locking(zone); > > > > +} > > > > +EXPORT_SYMBOL(__zone_lock_do_trace_start_locking); > > > > > > No reason to not have these as EXPORT_SYMBOL_GPL (& below) > > > > Do we need the exports at all? > > Very good point and we don't. I think this might just be copying the mmap_lock > tracepoint wrappers which might need the exports as some drivers might be taking > the mmap_lock. > > Dmitry, please confirm (test) and let us know. This is a good catch, thank you. I don't think we need EXPORT_SYMBOL() here. Just verified it locally. I'll remove it in v4.