Skip to contentSkip to conversation

tracing: samples: avoid warning about __aeabi_unwind_cpp_pr1

PATCH In review Arnd Bergmann 4 participants 4 messages Mar 23 – May 15 Tracing

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tracing: samples: avoid warning about __aeabi_unwind_cpp_pr1

From: Arnd Bergmann <[email protected]>

The now more verbose check found another symbol missing from the whitelist:

Unexpected symbols in kernel/trace/simple_ring_buffer.o:
U __aeabi_unwind_cpp_pr1

Add this to the Makefile.

Fixes 1211907ac0b5 ("tracing: Generate undef symbols allowlist for simple_ring_buffer")
---
 kernel/trace/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/trace/Makefile +2 -2
index d662c1a64cd5..aba6a25db17b 100644
@@ -169,8 +169,8 @@ targets += undefsyms_base.o
 # because it is not linked into vmlinux.
 KASAN_SANITIZE_undefsyms_base.o := y
 
-UNDEFINED_ALLOWLIST = __asan __gcov __kasan __kcsan __hwasan __sancov __sanitizer __tsan __ubsan __x86_indirect_thunk \
-		      __msan simple_ring_buffer \
+UNDEFINED_ALLOWLIST = __asan __gcov __kasan __kcsan __hwasan __sancov __sanitizer __tsan __ubsan __msan \
+		      __x86_indirect_thunk __aeabi_unwind_cpp simple_ring_buffer \
 		      $(shell $(NM) -u $(obj)/undefsyms_base.o 2>/dev/null | awk '{print $$2}')
 
 quiet_cmd_check_undefined = NM      $<
Signature · 1 line
2.39.5
maintainer
#1 lore raw

Vincent,

Is this patch needed? That is, did it fall through the cracks?

-- Steve

Quoted 30 lines · On Mon, 23 Mar 2026 11:56:41 +0100 Arnd Bergmann <[email protected]> wrote:

From: Arnd Bergmann <[email protected]>

The now more verbose check found another symbol missing from the whitelist:

Unexpected symbols in kernel/trace/simple_ring_buffer.o:
U __aeabi_unwind_cpp_pr1

Add this to the Makefile.

Fixes 1211907ac0b5 ("tracing: Generate undef symbols allowlist for simple_ring_buffer")
---
 kernel/trace/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/trace/Makefile +2 -2
index d662c1a64cd5..aba6a25db17b 100644
@@ -169,8 +169,8 @@ targets += undefsyms_base.o
 # because it is not linked into vmlinux.
 KASAN_SANITIZE_undefsyms_base.o := y
 
-UNDEFINED_ALLOWLIST = __asan __gcov __kasan __kcsan __hwasan __sancov __sanitizer __tsan __ubsan __x86_indirect_thunk \
-		      __msan simple_ring_buffer \
+UNDEFINED_ALLOWLIST = __asan __gcov __kasan __kcsan __hwasan __sancov __sanitizer __tsan __ubsan __msan \
+		      __x86_indirect_thunk __aeabi_unwind_cpp simple_ring_buffer \
 		      $(shell $(NM) -u $(obj)/undefsyms_base.o 2>/dev/null | awk '{print $$2}')
 
 quiet_cmd_check_undefined = NM      $<
Reviewed-by
#2 lore raw
Quoted 4 lines · Steven Rostedt

Vincent,

Is this patch needed? That is, did it fall through the cracks?

Yes, I believe it is!

Quoted 37 lines

-- Steve

Quoted 30 lines · On Mon, 23 Mar 2026 11:56:41 +0100 Arnd Bergmann <[email protected]> wrote:

From: Arnd Bergmann <[email protected]>

The now more verbose check found another symbol missing from the whitelist:

Unexpected symbols in kernel/trace/simple_ring_buffer.o:
U __aeabi_unwind_cpp_pr1

Add this to the Makefile.

Fixes 1211907ac0b5 ("tracing: Generate undef symbols allowlist for simple_ring_buffer")
---
 kernel/trace/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/trace/Makefile +2 -2
index d662c1a64cd5..aba6a25db17b 100644
@@ -169,8 +169,8 @@ targets += undefsyms_base.o
 # because it is not linked into vmlinux.
 KASAN_SANITIZE_undefsyms_base.o := y
 
-UNDEFINED_ALLOWLIST = __asan __gcov __kasan __kcsan __hwasan __sancov __sanitizer __tsan __ubsan __x86_indirect_thunk \
-		      __msan simple_ring_buffer \
+UNDEFINED_ALLOWLIST = __asan __gcov __kasan __kcsan __hwasan __sancov __sanitizer __tsan __ubsan __msan \
+		      __x86_indirect_thunk __aeabi_unwind_cpp simple_ring_buffer \
 		      $(shell $(NM) -u $(obj)/undefsyms_base.o 2>/dev/null | awk '{print $$2}')
 
 quiet_cmd_check_undefined = NM      $<
#3 lore raw
Quoted 9 lines · Vincent Donnefort
Quoted 4 lines · Steven Rostedt

Vincent,

Is this patch needed? That is, did it fall through the cracks?

Yes, I believe it is!

Just today, I came across yet another one:

Unexpected symbols in kernel/trace/simple_ring_buffer.o:

                 U __s390_indirect_jump_r1
                 U __s390_indirect_jump_r10
                 U __s390_indirect_jump_r14
                 U __s390_indirect_jump_r2
                 U __s390_indirect_jump_r5
                 U __s390_indirect_jump_r7
                 U __s390_indirect_jump_r8
                 U __s390_indirect_jump_r9

I'll send a replacement patch that addresses both, since the old one hasn't been applied yet.

Arnd