选项-pg,-mfentry并-finstrument-functions影响.c文件中的所有函数,如何仅将跟踪调用插入特定函数,但不是全部?
-pg
-mfentry
-finstrument-functions
.c
我检查了gcc函数属性,但似乎没有对应的-pg,-mfentry并且-finstrument-functions可以用于仅装饰到特定的函数.
no_instrument_function 排除功能,但我想要的是相反的,即包括功能.
no_instrument_function
c gcc
c ×1
gcc ×1