The -pg , -mfentry and -finstrument-functions parameters affect all functions in the .c file. How do I insert a trace call only in certain functions, but not all?
I checked the attributes of the gcc function , but there seems to be no analogues -pg , -mfentry and -finstrument-functions , which can be used to decorate only certain functions,
no_instrument_function excludes functions, but what I want is the opposite, i.e. includes functions.
source share