[PATCH] maple_tree: fix tracepoint string pointers
Martin Kaiser
martin at kaiser.cx
Fri Oct 31 03:22:58 PDT 2025
Thus wrote Andrew Morton (akpm at linux-foundation.org):
> > - trace_ma_op(__func__, mas);
> > + trace_ma_op(TP_FCT, mas);
> What could cause the storage for __func__ to disappear as you suggest?
I see your point. For __func__, the compiler generates a local symbol in
.rodata that should always be accessible by its address.
One case that doesn't work without my patch would be trace-cmd record to save
the binary ringbuffer and trace-cmd report to parse it in userspace. The
address of __func__ can't be dereferenced from userspace but tracepoint_string
will add an entry to /sys/kernel/tracing/printk_formats
Best regards,
Martin
More information about the maple-tree
mailing list