Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consolidate HTTP server instrumentations to use single bpf probe implementation #249

Closed
Prev Previous commit
Next Next commit
revert bpf_include rename
  • Loading branch information
MikeGoldsmith committed Aug 7, 2023
commit 058037f221273e4420a10bd69ae3f0bd213ef35a
10 changes: 4 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ ALL_GO_MOD_DIRS := $(shell find . -type f -name 'go.mod' ! -path './LICENSES/*'
OTEL_GO_MOD_DIRS := $(filter-out $(TOOLS_MOD_DIR), $(ALL_GO_MOD_DIRS))

# Build the list of include directories to compile the bpf program
CFLAGS += -I${REPODIR}/bpf/include
CFLAGS += -I${REPODIR}/bpf/include/libbpf

BPF_PROBES := $(REPODIR)/bpf
BPF_INCLUDE += -I${REPODIR}/bpf/include
BPF_INCLUDE += -I${REPODIR}/bpf/include/libbpf

.DEFAULT_GOAL := precommit

Expand Down Expand Up @@ -50,8 +48,8 @@ test/%:
cd $(shell dirname $(GO_MOD)) && go test -v ./...

.PHONY: generate
generate: export CFLAGS := $(CFLAGS)
generate: export BPF_PROBES := $(BPF_PROBES)
generate: export CFLAGS := $(BPF_INCLUDE)
generate: export BPF_PROBES := $(REPODIR)/bpf
generate: go-mod-tidy
generate:
go generate ./...
Expand Down