I’m the author of Corelight cwrap on github which is an experimental tool to auto instrument C/C++ programs on Intel via the gcc -finstrument-functions option. Even large C++ programs with over 100,000 functions. I’m wondering how to achieve something similar with Golang programs?
I noticed that gccgo exists as an alternative Golang compiler, and might even support the gcc -finstrument-functions option, and somebody was hinting at trying to do this in this post .
Does anybody know if gccgo does support the -finstrument-functions option?
It also seems like gccgo is not available on macOS ? So based on the response to this post then I might have to switch to Linux to experiment further
Lastly, regardless of gccgo, is there another technology and/or mechanism in the Golang ecosystem which might achieve a similar result without using the gccgo -finstrument-functions command line option?
Thanks in advance!