mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 21:36:28 +08:00
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:
committed by
Xiang Xiao
parent
ac39d087f5
commit
bf93c7840a
@@ -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()
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ ASRCS += arch_setjmp.S
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_SCHED_GPROF),y)
|
||||
ifeq ($(CONFIG_PROFILE_MINI),y)
|
||||
ASRCS += mcount.S
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user