gprof: move gprof function from sched to libbuiltin/libgcc

1. Enable interrupt gprof please config CONFIG_PROFILE_MINI
2. Enable instuction gprof please add compile opt "-pg" or config CONFIG_PROFILE_ALL

Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
This commit is contained in:
wangmingrong1
2024-11-12 17:56:40 +08:00
committed by Xiang Xiao
parent ac39d087f5
commit bf93c7840a
21 changed files with 103 additions and 47 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ if(CONFIG_ARCH_SETJMP_H)
endif()
endif()
if(CONFIG_SCHED_GPROF)
if(CONFIG_PROFILE_MINI)
list(APPEND SRCS gnu/mcount.S)
endif()
+1 -1
View File
@@ -60,7 +60,7 @@ ASRCS += arch_setjmp.S
endif
endif
ifeq ($(CONFIG_SCHED_GPROF),y)
ifeq ($(CONFIG_PROFILE_MINI),y)
ASRCS += mcount.S
endif