【发布时间】:2017-01-30 06:46:14
【问题描述】:
当我尝试 -finstrument-functions-exclude-file-list=arch/arm/boot/dts/ 并编译内核时,__cyg_profile_func_enter 和 __cyg_profile_func_exit 没有被调用任何函数。正常-finstrument-functions 工作正常。我的 gcc 版本是4.8.4
【问题讨论】:
-
使用
-finstrument-functions-exclude-file-list的时候好像还是需要普通选项-finstrument-functions一个。 -
@Tsyvarev 我如何添加它?我的意思是与空格在同一行?
-
是的,选项应该用空格分隔。
-
@Tsyvarev 我给了这样的
KBUILD_CFLAGS += -finstrument-functions-exclude-file-list=arch/arm/boot/dts/ -finstrument-functions,它仍然在dts文件夹中添加了配置文件功能 -
您能否提供一个
dts目录中的函数示例,它仍然使用这两个选项进行检测?
标签: gcc makefile linux-kernel linux-device-driver