Skip to content

Commit

Permalink
Add tracer auto-generated bpf to repo (arm64)
Browse files Browse the repository at this point in the history
  • Loading branch information
iluxa committed Dec 12, 2024
1 parent 877bcc6 commit 47a25c7
Show file tree
Hide file tree
Showing 5 changed files with 986 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkg/bpf/bpf.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,13 @@ const (

// TODO: cilium/ebpf does not support .kconfig Therefore; for now, we build object files per kernel version.

//go:generate go run github.com/cilium/ebpf/cmd/[email protected] -target $BPF_TARGET -cflags $BPF_CFLAGS -type tls_chunk -type goid_offsets Tracer ../../bpf/tracer.c
//go:generate go run github.com/cilium/ebpf/cmd/[email protected] -target amd64 -cflags $BPF_CFLAGS -type tls_chunk -type goid_offsets Tracer ../../bpf/tracer.c

//go:generate go run github.com/cilium/ebpf/cmd/[email protected] -target $BPF_TARGET -cflags "${BPF_CFLAGS} -DKERNEL_BEFORE_4_6" -type tls_chunk -type goid_offsets Tracer46 ../../bpf/tracer.c
//go:generate go run github.com/cilium/ebpf/cmd/[email protected] -target arm64 -cflags $BPF_CFLAGS -type tls_chunk -type goid_offsets Tracer ../../bpf/tracer.c

//go:generate go run github.com/cilium/ebpf/cmd/[email protected] -target amd64 -cflags "${BPF_CFLAGS} -DKERNEL_BEFORE_4_6" -type tls_chunk -type goid_offsets Tracer46 ../../bpf/tracer.c

//go:generate go run github.com/cilium/ebpf/cmd/[email protected] -target arm64 -cflags "${BPF_CFLAGS} -DKERNEL_BEFORE_4_6" -type tls_chunk -type goid_offsets Tracer46 ../../bpf/tracer.c

type BpfObjectsImpl struct {
bpfObjs interface{}
Expand Down
Loading

0 comments on commit 47a25c7

Please sign in to comment.