I'm following this article to understand how eBPF tracing works, one of the first steps is to identify the symbol for the function, example code is picked up from here: https://github.com/pixie-labs/pixie-demos/blob/main/simple-gotracing/app/app.go
However, after doing the build, I'm unable to find the symbol. Why is that the case?
$ ls
go.mod main.go
$ grep func main.go
func computeE(iterations int64) float64 {
func main() {
http.HandleFunc("/e", func(w http.ResponseWriter, r *http.Request) {
$ go build
$ objdump --syms ./demowebservice | grep compute
0000000000840a40 g O .bss 0000000000000008 crypto/elliptic.p256Precomputed
00000000008704c0 g O .noptrbss 000000000000000c crypto/elliptic.precomputeOnce
$
Go version:-
$ go version
go version go1.16.5 linux/amd64