I have already known that the GCC's argument -finstrument-functions
can hook the functions and the argument -finstrument-functions-exclude-file(functions)-list
can exclude some files/functions to be traced.
But now I have a lot of files to be compiled and only some of them need to be traced. I wonder if I can include some specific functions/files to be traced, such as something like -finstrument-functions-include-file(functions)-list
?
Thanks a lot!