Skip to content

Commit

Permalink
gprof: Add a configuration dependency
Browse files Browse the repository at this point in the history
arm-none-eabi-g++: error: -pg and -fomit-frame-pointer are incompatible

Signed-off-by: wangmingrong1 <[email protected]>
  • Loading branch information
W-M-R committed Nov 11, 2024
1 parent 84e8e87 commit 046c778
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libs/libbuiltin/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,13 @@ config BUILTIN_GPROF
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.
the function call graph of the specified module.If you do this,
please enable "CONFIG_FRAME_POINTER"

config GPROF_ALL
bool "Enable all gprof support"
depends on BUILTIN_GPROF
depends on FRAME_POINTER
default n
---help---
Enable gprof profiling for all code, it will instrument
Expand Down

0 comments on commit 046c778

Please sign in to comment.