【问题标题】:finstrument-functions-exclude-file-list does not workfinstrument-functions-exclude-file-list 不起作用
【发布时间】: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


【解决方案1】:

如果没有检测选项本身 (-finstrument-functions),限制检测选项-finstrument-functions-exclude-file-list 将不起作用。一起使用这些选项的正确方法:

-finstrument-functions -finstrument-functions-exclude-file-list=arch/arm/boot/dts/

【讨论】:

    猜你喜欢
    • 2019-10-22
    • 2011-09-04
    • 1970-01-01
    • 2017-10-30
    • 1970-01-01
    • 2017-02-11
    • 2017-08-28
    • 2017-05-12
    • 1970-01-01
    相关资源
    最近更新 更多