Re: [PATCH v3 5/5] mm: add tracepoints for zone lock
From: Andrew Morton
Date: Thu Feb 26 2026 - 16:25:41 EST
On Thu, 26 Feb 2026 11:14:52 -0800 Shakeel Butt <shakeel.butt@xxxxxxxxx> 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 <d@xxxxxxxxxxxx>
>
> ...
>
> > +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?
include/linux/mmzone.h
include/linux/zone_lock.h
include/trace/events/zone_lock.h
MAINTAINERS
mm/compaction.c
mm/internal.h
mm/Makefile
mm/memory_hotplug.c
mm/mm_init.c
mm/page_alloc.c
mm/page_isolation.c
mm/page_owner.c
mm/page_reporting.c
mm/show_mem.c
mm/vmscan.c
mm/vmstat.c
mm/zone_lock.c