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 <wangmingrong1@xiaomi.com>
  • Loading branch information
W-M-R authored and xiaoxiang781216 committed Nov 12, 2024
1 parent f2aeb5e commit 7421e09
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sched/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1377,10 +1377,12 @@ config SCHED_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 SCHED_GPROF_ALL
bool "Enable gprof call graph for all modules"
depends on FRAME_POINTER
depends on SCHED_GPROF
default n
---help---
Expand Down

0 comments on commit 7421e09

Please sign in to comment.