From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-172.mta0.migadu.com (out-172.mta0.migadu.com [91.218.175.172]) (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 C8DED27A10F for ; Thu, 26 Feb 2026 21:31:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772141518; cv=none; b=US+qEtRdzcsptsbyLYHOWkQrwft5C75C57ueB8k6gUeE3Knnw3Phin1DVYJobgMZC6xhjjU8Kro/2aCczFUPD7PaBS3ofq5yOVUQ1d2W1D35huoTNXTd18t9XvBGEJN2j2yiXNZiOBrKurMNBLSrgYwVDvaNSzWu+oHJLbDSAto= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772141518; c=relaxed/simple; bh=/R7hROwCpoDNk0099qEu5vC85eC5dyk3Y5NXIX/CD3Q=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DyVVZUFM1xES3zutF5CzWPcORW6vCNp/ZNUDqr97VPCEQiZPWNKGxZuKW1RfEwEqe42YL/rQp/Hkn9g9bHwiVnv362P9zPOXEL+ytQ/UMD8wMdNZrAnovYyf14fYTeorbH8qbKdRL4mtPvGkOWSMFJa8/8VhPWa9NzMviXAEzWc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=Hn2ytuLO; arc=none smtp.client-ip=91.218.175.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="Hn2ytuLO" Date: Thu, 26 Feb 2026 13:31:48 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1772141514; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=5vnnQTlVdZ/Og5RtD6XvnKakZXItRdyMij004ePH1bw=; b=Hn2ytuLO6KHfvcXYNvzmNp522fxz6wReD55jSQnK01E6iAgMZbR/2GbcXJUWEAuAgdxVmH GuBSoQ/Rr+Q0ren1UOzvnjHhUYHli3n7FF8VuS+4+vrOyJ6dageXcVeHErIOF83Dm7KXR4 0yj7IllzR82We+0izRSBhfgrrIFltmY= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Shakeel Butt To: Andrew Morton Cc: Dmitry Ilvokhin , 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: <20260226132501.5b70914daf9438a1103189ee@linux-foundation.org> X-Migadu-Flow: FLOW_OUT 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.