Skip to content

Commit

Permalink
arm32: ftrace: skip profiling of __aeabi functions
Browse files Browse the repository at this point in the history
When compiling the __aeabi functions, skip profiling unconditionally to
avoid recursive calls.

Reported-by: Jerome Forissier <[email protected]>
Closes: #6870
Signed-off-by: Jens Wiklander <[email protected]>
Reviewed-by: Jerome Forissier <[email protected]>
Tested-by: Jerome Forissier <[email protected]> (vexpress-qemu_virt)
  • Loading branch information
jenswi-linaro authored and jforissier committed Jul 5, 2024
1 parent 6f48ab5 commit dcf343a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/libutils/isoc/arch/arm/sub.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@ srcs-$(CFG_ARM32_$(sm)) += arm32_aeabi_ldivmod_a32.S
srcs-$(CFG_ARM32_$(sm)) += arm32_aeabi_ldivmod.c
srcs-$(CFG_ARM32_$(sm)) += arm32_aeabi_shift.c

ifeq ($(CFG_ULIBS_MCOUNT),y)
# We would not like to profile __aeabi functions as these provide
# internal implementations for "/ %" operations. Also, "/ %" operations
# could be used inside profiling code which could create an incorrect
# cyclic behaviour.
cflags-remove-arm32_aeabi_divmod.c-y += -pg
cflags-remove-arm32_aeabi_ldivmod.c-y += -pg
cflags-remove-arm32_aeabi_shift.c-y += -pg
endif

srcs-$(CFG_ARM32_$(sm)) += setjmp_a32.S
srcs-$(CFG_ARM64_$(sm)) += setjmp_a64.S
Expand Down

0 comments on commit dcf343a

Please sign in to comment.