nuttx/libs/libbuiltin/Kconfig
wangmingrong1 bf93c7840a 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>
2024-11-13 02:42:31 +08:00

79 lines
1.9 KiB
Text

#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
comment "Toolchain Library Support"
config LIB_BUILTIN
bool
config LIB_COMPILER_RT
bool
choice
prompt "Builtin toolchain support"
default BUILTIN_TOOLCHAIN
---help---
Select the builtin library
config BUILTIN_COMPILER_RT
bool "Builtin LLVM libclang_rt.builtins"
select LIB_BUILTIN
select LIB_COMPILER_RT
---help---
Compile the LLVM Compiler-rt library into the OS.
config BUILTIN_TOOLCHAIN
bool "Link toolchain builtin library to the OS"
endchoice
config COVERAGE_COMPILER_RT
bool "Builtin libclang_rt.profile"
select LIB_BUILTIN
select LIB_COMPILER_RT
default n
choice
prompt "Builtin profile support"
default PROFILE_NONE
---help---
Select the profile library
config PROFILE_MINI
bool "Enable mini gprof profiling"
select LIB_BUILTIN
---help---
Enable gprof profiling support. This will cause the compiler to
generate additional code to support profiling. This will also
cause the linker to include the gmon.out file in the final
executable.
Add the "-pg" parameter to the Makefile when compiling to obtain
the function call graph of the specified module. If you do this,
please enable "CONFIG_FRAME_POINTER"
config PROFILE_NONE
bool "None profile support"
endchoice
config PROFILE_ALL
bool "Enable gprof call graph for all modules"
depends on FRAME_POINTER && !PROFILE_NONE
default n
---help---
Enable gprof profiling for all code, it will instrument
all code, which will cause a large performance penalty for the code.
You can add the '-pg' parameter to the specified module in the
makefile to only analyze the content of the module.
config LIB_COMPILER_RT_VERSION
string "Select LLVM Compiler-rt version"
depends on LIB_COMPILER_RT
default "17.0.1"
config LIB_COMPILER_RT_HAS_BFLOAT16
bool "Enable support for bfloat16 in Compiler-rt"
depends on LIB_COMPILER_RT
default n