tracing: Trigger a warning on build if a tracepoint is defined but unused
Subsystems (3)
cover tracing: Trigger a warning on build if a tracepoint is defined but unused
Stephen,
I plan on pushing this to my for-next branch, which will add this to the linux-next tree. When the kconfig option "TRACEPOINT_WARN_ON_UNUSED" is enabled, it will warn whenever a tracepoint is created but not used. This is similar to adding a static variable or function and not using it. This means that an allmodconfig and allyesconfig builds may start having warnings that will get bisected down to this commit. The bug is not this commit though, but whatever has created an event but never used it. As tracepoints can take up to 5K of memory, even when not used, this is a waste and should be fixed.
I hope that adding this to linux-next will start the push to clean up these unused tracepoints that are in the kernel, as well as prevent new ones from being added. Hopefully by the time the merge window rolls around, most of these will be cleaned up and this can be merged upstream without triggering warnings.
I built this against all archs in my tree (26 of them) with a allyesconfig. Unfortunately, only 10 build successfully with that (they all build successfully with defconfig and this option with tracing enabled). This detected 178 unique tracepoints that are defined and not used:
$ grep '^warning:' /work/autotest/cross-unused-traceevnts.log | sort -u |wc -l 178
Among them, 78 tracepoints were created and never referenced.
$ grep '^warning:' /work/autotest/cross-unused-traceevents.log | sort -u |cut -d"'" -f2 |
while read a ; do if ! git grep -q trace_$a ; then echo $a; fi ; done | wc -l
78The 100 remaining are likely in strange #ifdef CONFIG combinations where an allyesconfig defines the tracepoint but doesn't enable the code that uses them.
Expect even more warnings with different combos of config settings, as this will warn whenever a tracepoint is defined but not used.
-- Steve
git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git
unused-tracepoints/for-next
Head SHA1: d492e79ec6892ce1928a4c929ea29c0d5986e117
Steven Rostedt (3):
sorttable: Move ELF parsing into scripts/elf-parse.[ch]
tracing: Add a tracepoint verification check at build time
tracepoint: Do not warn for unused event that is exported
----
include/asm-generic/vmlinux.lds.h | 1 + include/linux/tracepoint.h | 12 + kernel/trace/Kconfig | 10 + scripts/Makefile | 6 + scripts/Makefile.vmlinux | 2 + scripts/elf-parse.c | 198 ++++++++++++++++ scripts/elf-parse.h | 305 ++++++++++++++++++++++++ scripts/link-vmlinux.sh | 4 + scripts/sorttable.c | 477 +++----------------------------------- scripts/tracepoint-update.c | 232 ++++++++++++++++++ 10 files changed, 804 insertions(+), 443 deletions(-) create mode 100644 scripts/elf-parse.c create mode 100644 scripts/elf-parse.h create mode 100644 scripts/tracepoint-update.c
PATCH 1/3 sorttable: Move ELF parsing into scripts/elf-parse.[ch]
From: Steven Rostedt <[email protected]>
In order to share the elf parsing that is in sorttable.c so that other programs could use the same code, move it into elf-parse.c and elf-parse.h.
--- scripts/Makefile | 3 + scripts/Makefile.vmlinux | 2 + scripts/elf-parse.c | 198 ++++++++++++++++ scripts/elf-parse.h | 305 +++++++++++++++++++++++++ scripts/sorttable.c | 477 +++------------------------------------ 5 files changed, 542 insertions(+), 443 deletions(-) create mode 100644 scripts/elf-parse.c create mode 100644 scripts/elf-parse.h
scripts/Makefile +3 -0
@@ -12,6 +12,8 @@ hostprogs-always-$(CONFIG_SYSTEM_EXTRA_CERTIFICATE) += insert-sys-cert hostprogs-always-$(CONFIG_RUST_KERNEL_DOCTESTS) += rustdoc_test_builder hostprogs-always-$(CONFIG_RUST_KERNEL_DOCTESTS) += rustdoc_test_gen +sorttable-objs := sorttable.o elf-parse.o + ifneq ($(or $(CONFIG_X86_64),$(CONFIG_X86_32)),) always-$(CONFIG_RUST) += target.json filechk_rust_target = $< < include/config/auto.conf
@@ -25,6 +27,7 @@ generate_rust_target-rust := y rustdoc_test_builder-rust := y rustdoc_test_gen-rust := y +HOSTCFLAGS_elf-parse.o = -I$(srctree)/tools/include HOSTCFLAGS_sorttable.o = -I$(srctree)/tools/include HOSTLDLIBS_sorttable = -lpthread HOSTCFLAGS_asn1_compiler.o = -I$(srctree)/include
scripts/Makefile.vmlinux +2 -0
@@ -97,6 +97,8 @@ ifdef CONFIG_BUILDTIME_TABLE_SORT $(vmlinux-final): scripts/sorttable endif +.PRECIOUS: $(vmlinux-final) + # modules.builtin.ranges # --------------------------------------------------------------------------- ifdef CONFIG_BUILTIN_MODULE_RANGES
scripts/elf-parse.c new file +198 -0
198 lines not on this page · raw message
scripts/elf-parse.h new file +305 -0
305 lines not on this page · raw message
scripts/sorttable.c +34 -443
622 lines not on this page · raw message
Signature · 1 line
2.50.1
Nicolas Schier
maintainerRe: [for-next][PATCH 1/3] sorttable: Move ELF parsing into scripts/elf-parse.[ch]
Quoted 56 lines · Steven Rostedt
From: Steven Rostedt <[email protected]>
In order to share the elf parsing that is in
sorttable.cso that other programs could use the same code, move it intoelf-parse.candelf-parse.h.Cc Masami Hiramatsu <[email protected]>Cc Mark Rutland <[email protected]>Cc Mathieu Desnoyers <[email protected]>Cc Andrew Morton <[email protected]>Cc Arnd Bergmann <[email protected]>Cc Masahiro Yamada <[email protected]>Cc Nathan Chancellor <[email protected]>Cc Nicolas Schier <[email protected]>Cc Nick Desaulniers <[email protected]>Cc Catalin Marinas <[email protected]>Cc Linus Torvalds <[email protected]>Cc Randy Dunlap <[email protected]>Signed-off-by Steven Rostedt (Google) <[email protected]>--- scripts/Makefile | 3 + scripts/Makefile.vmlinux | 2 + scripts/elf-parse.c | 198 ++++++++++++++++ scripts/elf-parse.h | 305 +++++++++++++++++++++++++ scripts/sorttable.c | 477 +++------------------------------------ 5 files changed, 542 insertions(+), 443 deletions(-) create mode 100644 scripts/elf-parse.c create mode 100644 scripts/elf-parse.hscripts/Makefile +3
-0@@ -12,6 +12,8 @@ hostprogs-always-$(CONFIG_SYSTEM_EXTRA_CERTIFICATE) += insert-sys-cert hostprogs-always-$(CONFIG_RUST_KERNEL_DOCTESTS) += rustdoc_test_builder hostprogs-always-$(CONFIG_RUST_KERNEL_DOCTESTS) += rustdoc_test_gen +sorttable-objs := sorttable.o elf-parse.o + ifneq ($(or $(CONFIG_X86_64),$(CONFIG_X86_32)),) always-$(CONFIG_RUST) += target.json filechk_rust_target = $< < include/config/auto.conf@@ -25,6 +27,7 @@ generate_rust_target-rust := y rustdoc_test_builder-rust := y rustdoc_test_gen-rust := y +HOSTCFLAGS_elf-parse.o = -I$(srctree)/tools/include HOSTCFLAGS_sorttable.o = -I$(srctree)/tools/include HOSTLDLIBS_sorttable = -lpthread HOSTCFLAGS_asn1_compiler.o = -I$(srctree)/includescripts/Makefile.vmlinux +0
-0
scripts/Makefile.vmlinux ifdef CONFIG_BUILDTIME_TABLE_SORT · line 100
Quoted 4 lines
scripts/Makefile.vmlinux +1
-0@@ -97,6 +97,8 @@ ifdef CONFIG_BUILDTIME_TABLE_SORT $(vmlinux-final): scripts/sorttable endif +.PRECIOUS: $(vmlinux-final)
Why do you need '.PRECIOUS' here? Does its need match to Masahiros explanations in
https://git.kernel.org/torvalds/c/875ef1a57f32fcb91010dc9bc8bd1166956a579e
Kind regards,
Nicolas
Re: [for-next][PATCH 1/3] sorttable: Move ELF parsing into scripts/elf-parse.[ch]
Quoted 10 lines · On Thu, 28 Aug 2025 21:03:52 +0200 Nicolas Schier <[email protected]> wrote:
scripts/Makefile.vmlinux ifdef CONFIG_BUILDTIME_TABLE_SORT · line 100
Quoted 7 lines
scripts/Makefile.vmlinux +1
-0@@ -97,6 +97,8 @@ ifdef CONFIG_BUILDTIME_TABLE_SORT $(vmlinux-final): scripts/sorttable endif +.PRECIOUS: $(vmlinux-final)Why do you need '.PRECIOUS' here? Does its need match to Masahiros explanations in
I don't. Crap! That was from debugging where I needed to keep the vmlinux-final around to test. I must have accidentally committed it.
Let me go and remove that.
Thanks for spotting it!
-- Steve
PATCH 2/3 tracing: Add a tracepoint verification check at build time
In reply to Steven RostedtFrom: Steven Rostedt <[email protected]>
If a tracepoint is defined via DECLARE_TRACE() or TRACE_EVENT() but never called (via the trace_<tracepoint>() function), its metadata is still around in memory and not discarded.
When created via TRACE_EVENT() the situation is worse because the TRACE_EVENT() creates metadata that can be around 5k per trace event. Having unused trace events causes several thousand of wasted bytes.
Add a verifier that injects a string of the name of the tracepoint it calls that is added to the discarded section "__tracepoint_check". For every builtin tracepoint, its name (which is saved in the in-memory section "__tracepoint_strings") will have its name also in the "__tracepoint_check" section if it is used.
Add a new program that is run on build called tracepoint-update. This is executed on the vmlinux.o before the __tracepoint_check section is discarded (the section is discarded before vmlinux is created). This program will create an array of each string in the __tracepoint_check section and then sort it. Then it will walk the strings in the __tracepoint_strings section and do a binary search to check if its name is in the __tracepoint_check section. If it is not, then it is unused and a warning is printed.
Note, this currently only handles tracepoints that are builtin and not in modules.
Enabling this currently with a given config produces:
warning: tracepoint 'sched_move_numa' is unused.
warning: tracepoint 'sched_stick_numa' is unused.
warning: tracepoint 'sched_swap_numa' is unused.
warning: tracepoint 'pelt_hw_tp' is unused.
warning: tracepoint 'pelt_irq_tp' is unused.
warning: tracepoint 'rcu_preempt_task' is unused.
warning: tracepoint 'rcu_unlock_preempted_task' is unused.
warning: tracepoint 'xdp_bulk_tx' is unused.
warning: tracepoint 'xdp_redirect_map' is unused.
warning: tracepoint 'xdp_redirect_map_err' is unused.
warning: tracepoint 'vma_mas_szero' is unused.
warning: tracepoint 'vma_store' is unused.
warning: tracepoint 'hugepage_set_pmd' is unused.
warning: tracepoint 'hugepage_set_pud' is unused.
warning: tracepoint 'hugepage_update_pmd' is unused.
warning: tracepoint 'hugepage_update_pud' is unused.
warning: tracepoint 'block_rq_remap' is unused.
warning: tracepoint 'xhci_dbc_handle_event' is unused.
warning: tracepoint 'xhci_dbc_handle_transfer' is unused.
warning: tracepoint 'xhci_dbc_gadget_ep_queue' is unused.
warning: tracepoint 'xhci_dbc_alloc_request' is unused.
warning: tracepoint 'xhci_dbc_free_request' is unused.
warning: tracepoint 'xhci_dbc_queue_request' is unused.
warning: tracepoint 'xhci_dbc_giveback_request' is unused.
warning: tracepoint 'tcp_ao_wrong_maclen' is unused.
warning: tracepoint 'tcp_ao_mismatch' is unused.
warning: tracepoint 'tcp_ao_key_not_found' is unused.
warning: tracepoint 'tcp_ao_rnext_request' is unused.
warning: tracepoint 'tcp_ao_synack_no_key' is unused.
warning: tracepoint 'tcp_ao_snd_sne_update' is unused.
warning: tracepoint 'tcp_ao_rcv_sne_update' is unused.
Some of the above is totally unused but others are not used due to their "trace_" functions being inside configs, in which case, the defined tracepoints should also be inside those same configs. Others are architecture specific but defined in generic code, where they should either be moved to the architecture or be surrounded by #ifdef for the architectures they are for.
This tool could be updated to process modules in the future.
I'd like to thank Mathieu Desnoyers for suggesting using strings instead of pointers, as using pointers in vmlinux.o required handling relocations and it required implementing almost a full feature linker to do so.
--- include/asm-generic/vmlinux.lds.h | 1 + include/linux/tracepoint.h | 10 ++ kernel/trace/Kconfig | 10 ++ scripts/Makefile | 3 + scripts/link-vmlinux.sh | 4 + scripts/tracepoint-update.c | 232 ++++++++++++++++++++++++++++++ 6 files changed, 260 insertions(+) create mode 100644 scripts/tracepoint-update.c
include/asm-generic/vmlinux.lds.h +1 -0
@@ -1047,6 +1047,7 @@ defined(CONFIG_AUTOFDO_CLANG) || defined(CONFIG_PROPELLER_CLANG) *(.modinfo) \ /* ld.bfd warns about .gnu.version* even when not emitted */ \ *(.gnu.version*) \ + *(__tracepoint_check)#define DISCARDS \ /DISCARD/ : { \
include/linux/tracepoint.h +10 -0
@@ -221,6 +221,14 @@ static inline struct tracepoint *tracepoint_ptr_deref(tracepoint_ptr_t *p) __do_trace_##name(args); \ } +#ifdef CONFIG_TRACEPOINT_WARN_ON_UNUSED +# define TRACEPOINT_CHECK (name) \ + static const char __used __section("__tracepoint_check") __trace_check[] = \ + #name; +#else +# define TRACEPOINT_CHECK (tname) +#endif +/* * Make sure the alignment of the structure in the __tracepoints section will * not add unwanted padding between the beginning of the section and the
@@ -270,6 +278,7 @@ static inline struct tracepoint *tracepoint_ptr_deref(tracepoint_ptr_t *p) __DECLARE_TRACE_COMMON(name, PARAMS(proto), PARAMS(args), PARAMS(data_proto)) \ static inline void __do_trace_##name(proto) \ { \ +TRACEPOINT_CHECK (name) \ if (cond) { \guard (preempt_notrace)(); \__DO_TRACE_CALL (name,TP_ARGS (args)); \
@@ -289,6 +298,7 @@ static inline struct tracepoint *tracepoint_ptr_deref(tracepoint_ptr_t *p) __DECLARE_TRACE_COMMON(name, PARAMS(proto), PARAMS(args), PARAMS(data_proto)) \ static inline void __do_trace_##name(proto) \ { \ +TRACEPOINT_CHECK (name) \guard (rcu_tasks_trace )(); \__DO_TRACE_CALL (name,TP_ARGS (args)); \ } \
kernel/trace/Kconfig +10 -0
@@ -1067,6 +1067,16 @@ config GCOV_PROFILE_FTRACE Note that on a kernel compiled with this config, ftrace will run significantly slower. +config TRACEPOINT_WARN_ON_UNUSED + bool "Warn on build if a tracepoint is defined but not used" + depends on TRACEPOINTS + help + This option checks if every builtin defined tracepoint is + used in the code. If a tracepoint is defined but not used, + it will waste memory as its metadata is still created. + This will cause a warning at build time if it detects a + tracepoint created but never called. + config FTRACE_SELFTEST bool
scripts/Makefile +3 -0
@@ -11,8 +11,10 @@ hostprogs-always-$(CONFIG_MODULE_SIG_FORMAT) += sign-file hostprogs-always-$(CONFIG_SYSTEM_EXTRA_CERTIFICATE) += insert-sys-cert hostprogs-always-$(CONFIG_RUST_KERNEL_DOCTESTS) += rustdoc_test_builder hostprogs-always-$(CONFIG_RUST_KERNEL_DOCTESTS) += rustdoc_test_gen +hostprogs-always-$(CONFIG_TRACEPOINT_WARN_ON_UNUSED) += tracepoint-update sorttable-objs := sorttable.o elf-parse.o +tracepoint-update-objs := tracepoint-update.o elf-parse.o ifneq ($(or $(CONFIG_X86_64),$(CONFIG_X86_32)),) always-$(CONFIG_RUST) += target.json
@@ -27,6 +29,7 @@ generate_rust_target-rust := y rustdoc_test_builder-rust := y rustdoc_test_gen-rust := y +HOSTCFLAGS_tracepoint-update.o = -I$(srctree)/tools/include HOSTCFLAGS_elf-parse.o = -I$(srctree)/tools/include HOSTCFLAGS_sorttable.o = -I$(srctree)/tools/include HOSTLDLIBS_sorttable = -lpthread
scripts/link-vmlinux.sh +4 -0
@@ -211,6 +211,10 @@ kallsymso= strip_debug= generate_map= +if is_enabled CONFIG_TRACEPOINT_WARN_ON_UNUSED; then + ${objtree}/scripts/tracepoint-update vmlinux.o +fi + if is_enabled CONFIG_KALLSYMS; then true > .tmp_vmlinux0.syms kallsyms .tmp_vmlinux0.syms .tmp_vmlinux0.kallsyms
scripts/tracepoint-update.c new file +232 -0
232 lines not on this page · raw message
Signature · 1 line
2.50.1
PATCH 3/3 tracepoint: Do not warn for unused event that is exported
In reply to Steven RostedtFrom: Steven Rostedt <[email protected]>
There are a few generic events that may only be used by modules. They are defined and then set with EXPORT_TRACEPOINT*(). Mark events that are exported as being used, even though they still waste memory in the kernel proper.
--- include/linux/tracepoint.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
include/linux/tracepoint.h +4 -2
@@ -223,8 +223,8 @@ static inline struct tracepoint *tracepoint_ptr_deref(tracepoint_ptr_t *p)#ifdef CONFIG_TRACEPOINT_WARN_ON_UNUSED # define TRACEPOINT_CHECK (name) \ - static const char __used __section("__tracepoint_check") __trace_check[] = \ - #name; + static const char __used __section("__tracepoint_check") \ + __trace_check_##name[] = #name;#else # define TRACEPOINT_CHECK (tname)#endif
@@ -381,10 +381,12 @@ static inline struct tracepoint *tracepoint_ptr_deref(tracepoint_ptr_t *p)__DEFINE_TRACE_EXT (_name,NULL ,PARAMS (_proto),PARAMS (_args));#define EXPORT_TRACEPOINT_SYMBOL_GPL (name) \ + TRACEPOINT_CHECK(name) \ EXPORT_SYMBOL_GPL(__tracepoint_##name); \ EXPORT_SYMBOL_GPL(__traceiter_##name); \ EXPORT_STATIC_CALL_GPL(tp_func_##name)#define EXPORT_TRACEPOINT_SYMBOL (name) \ + TRACEPOINT_CHECK(name) \ EXPORT_SYMBOL(__tracepoint_##name); \ EXPORT_SYMBOL(__traceiter_##name); \ EXPORT_STATIC_CALL(tp_func_##name)
Signature · 1 line
2.50.1
Hi Steven,
Quoted 11 lines · On Thu, 28 Aug 2025 14:27:54 -0400 Steven Rostedt <[email protected]> wrote:
I built this against all archs in my tree (26 of them) with a allyesconfig. Unfortunately, only 10 build successfully with that (they all build successfully with defconfig and this option with tracing enabled). This detected 178 unique tracepoints that are defined and not used:
$ grep '^warning:' /work/autotest/cross-unused-traceevnts.log | sort -u |wc -l 178Among them, 78 tracepoints were created and never referenced.
Quoted 7 lines
$ grep '^warning:' /work/autotest/cross-unused-traceevents.log | sort -u |cut -d"'" -f2 | while read a ; do if ! git grep -q trace_$a ; then echo $a; fi ; done | wc -l 78The 100 remaining are likely in strange #ifdef CONFIG combinations where an allyesconfig defines the tracepoint but doesn't enable the code that uses them.
[Pretending to be Linus :-)]
So, have you fixed up the 178 new warnings you know about? I cannot possibly do that, or even notify the offenders. Please do that before adding this code to linux-next.
But, really, these known warnings can just make it so much harder to notice new ones.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 8 lines · On Fri, 29 Aug 2025 07:02:24 +1000 Stephen Rothwell <[email protected]>…
[Pretending to be Linus :-)]
So, have you fixed up the 178 new warnings you know about? I cannot possibly do that, or even notify the offenders. Please do that before adding this code to linux-next.
But, really, these known warnings can just make it so much harder to notice new ones.
Then this won't get in. I simply don't have the time to fix the current ones. I did 20 or so, and that took me all day (which I did on a holiday). And this work is something I'm already doing on my own time, as my employer has other priorities for me to work on.
But it is something that is needed as there's currently nothing that tells you that you have a tracepoint not used, and the are growing in numbers and wasting more memory.
There is an option that needs to be enabled. Now this will get enabled with allmodconfig or allyesconfig, but scripts that do tests could disable it. Or I can make it a tri op that doesn't get set by one of those (but randconfig may set it).
As for fixing the warnings, it really belongs to whoever added the tracepoint (git blame will give you that). And would be a great project for an intern (which I don't have any).
-- Steve
Steven Rostedt
maintainerQuoted 2 lines · On Fri, 29 Aug 2025 07:02:24 +1000 Stephen Rothwell <[email protected]>…
But, really, these known warnings can just make it so much harder to notice new ones.
They all should be fixed. Note, this is not a compiler warning. It's a tool that states "Your code is causing wasted memory to be allocate in the running machine". If your tracepoint shows up in this list, then you should fix it.
On an allyesconfig for x86_64:
warning: tracepoint 'kvm_iocsr' is unused.
warning: tracepoint 'nfs4_rename' is unused.
warning: tracepoint 'nfs4_renew' is unused.
warning: tracepoint 'xfs_metadir_link' is unused.
warning: tracepoint 'xfs_metadir_start_link' is unused.
warning: tracepoint 'xrep_rtbitmap_load_word' is unused.
warning: tracepoint 'xrep_rtbitmap_load_words' is unused.
warning: tracepoint 'xrep_rtbitmap_load' is unused.
warning: tracepoint 'xrep_nlinks_set_record' is unused.
warning: tracepoint 'xrep_cow_free_staging' is unused.
warning: tracepoint 'ocfs2_encode_fh_begin' is unused.
warning: tracepoint 'ocfs2_duplicate_clusters_by_jbd' is unused.
warning: tracepoint 'trans_restart_relock_key_cache_fill' is unused.
warning: tracepoint 'zonefs_file_dio_append' is unused.
warning: tracepoint 'edma_readb' is unused.
warning: tracepoint 'edma_readw' is unused.
warning: tracepoint 'host1x_syncpt_wait_check' is unused.
warning: tracepoint 'host1x_channel_submit_complete' is unused.
warning: tracepoint 'host1x_channel_release' is unused.
warning: tracepoint 'host1x_channel_open' is unused.
warning: tracepoint 'amdgpu_reset_reg_dumps' is unused.
warning: tracepoint 'amdgpu_dm_atomic_state_template' is unused.
warning: tracepoint 'xe_exec_queue_supress_resume' is unused.
warning: tracepoint 'xe_vm_restart' is unused.
warning: tracepoint 'xe_vma_userptr_rebind_exec' is unused.
warning: tracepoint 'xe_vma_userptr_rebind_worker' is unused.
warning: tracepoint 'xe_vma_flush' is unused.
warning: tracepoint 'dpu_rm_reserve_intf' is unused.
warning: tracepoint 'dpu_enc_atomic_check_flags' is unused.
warning: tracepoint 'dpu_crtc_runtime_resume' is unused.
warning: tracepoint 'dpu_enc_atomic_check' is unused.
warning: tracepoint 'dpu_trace_counter' is unused.
warning: tracepoint 'scsi_zone_wp_update' is unused.
warning: tracepoint 'scsi_prepare_zone_append' is unused.
warning: tracepoint 'ath12k_htt_rxdesc' is unused.
warning: tracepoint 'ath12k_htt_ppdu_stats' is unused.
warning: tracepoint 'ath12k_htt_pktlog' is unused.
warning: tracepoint 'brcms_dpc' is unused.
warning: tracepoint 'brcms_timer' is unused.
warning: tracepoint 'mt_tx_status' is unused.
warning: tracepoint 'ee_read' is unused.
warning: tracepoint 'cdns3_mapped_request' is unused.
warning: tracepoint 'cdns3_map_request' is unused.
warning: tracepoint 'cdns3_stream_transfer_split_next_part' is unused.
warning: tracepoint 'cdns3_stream_transfer_split' is unused.
warning: tracepoint 'cdnsp_handle_cmd_flush_ep' is unused.
warning: tracepoint 'cdnsp_setup_device' is unused.
warning: tracepoint 'cdnsp_free_priv_device' is unused.
warning: tracepoint 'cdnsp_defered_event' is unused.
warning: tracepoint 'cdnsp_ep0_halted' is unused.
warning: tracepoint 'cdns2_iso_out_ep_disable' is unused.
warning: tracepoint 'cdns2_mapped_request' is unused.
warning: tracepoint 'cdns2_map_request' is unused.
warning: tracepoint 'cdns2_ep0_enqueue' is unused.
warning: tracepoint 'cdns2_ep_queue' is unused.
warning: tracepoint 'cdns2_ep0_set_config' is unused.
warning: tracepoint 'cdns2_may_wakeup' is unused.
warning: tracepoint 'cdns2_lpm' is unused.
warning: tracepoint 'ucsi_reset_ppm' is unused.
warning: tracepoint 'ucsi_run_command' is unused.
warning: tracepoint 'icm_send_mra' is unused.
warning: tracepoint 'open_err_template' is unused.
warning: tracepoint 'irdma_send_cm_event_no_node' is unused.
warning: tracepoint 'hfi1_txq_xmit_stopped' is unused.
warning: tracepoint 'hfi1_mmu_invalidate' is unused.
warning: tracepoint 'rvt_mr_fmr_seg' is unused.
warning: tracepoint 'camera_debug' is unused.
warning: tracepoint 'camera_meminfo' is unused.
warning: tracepoint 'rpc_socket_reset_connection' is unused.
warning: tracepoint 'rxrpc_drop_ack' is unused.
warning: tracepoint 'cfg80211_return_u32' is unused.
warning: tracepoint 'cfg80211_return_uint' is unused.
warning: tracepoint 'cfg80211_chandef_dfs_required' is unused.
warning: tracepoint 'cfg80211_send_rx_auth' is unused.
warning: tracepoint 'rdev_return_void_tx_rx' is unused.
warning: tracepoint 'drv_offchannel_tx_cancel_wait' is unused.
warning: tracepoint 'tipc_node_dump' is unused.
warning: tracepoint '802154_new_scan_event' is unused.
warning: tracepoint '802154_drv_set_pan_coord' is unused.
Each one of those causes around 5K of wasted memory on your machine.
Most of them is because of some crazy config combinations the maintainer has, as they are used, but for some reason an allyesconfig isn't the right config option to enable them.
I'll push this branch up, and if it causes issues for you, I'll remove it. But then, I'm not doing anymore work on fixing this.
-- Steve