Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelroquetto committed Dec 21, 2024
1 parent 176420c commit 5ddde6f
Show file tree
Hide file tree
Showing 19 changed files with 843 additions and 495 deletions.
10 changes: 0 additions & 10 deletions pkg/internal/ebpf/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,6 @@ var IntegrityModeOverride = false

var ActiveNamespaces = make(map[uint32]uint32)

// These represent unique traffic control (tc) handles to be supplied as
// arguments to RegisterIngress, RegisterEgress or RegisterTC. They all start
// from the 0xb310 offset in simplistic attempt to avoid collisions with
// 3rdparty handles.
const (
NetollyTCHandle = 0xb310 + iota
HTTPTracerTCHandle
TCTracerTCHandle
)

// ProbeDesc holds the information of the instrumentation points of a given
// function/symbol
type ProbeDesc struct {
Expand Down
244 changes: 0 additions & 244 deletions pkg/internal/ebpf/common/tc_linux.go

This file was deleted.

3 changes: 0 additions & 3 deletions pkg/internal/ebpf/generictracer/generictracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -481,9 +481,6 @@ func (p *Tracer) AlreadyInstrumentedLib(id uint64) bool {
return module != nil
}

func (p *Tracer) SetupTC() {
}

func (p *Tracer) Run(ctx context.Context, eventsChan chan<- []request.Span) {
// At this point we now have loaded the bpf objects, which means we should insert any
// pids that are allowed into the bpf map
Expand Down
1 change: 0 additions & 1 deletion pkg/internal/ebpf/generictracer/generictracer_notlinux.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,5 @@ func (p *Tracer) UnlinkInstrumentedLib(_ uint64) {}
func (p *Tracer) AlreadyInstrumentedLib(_ uint64) bool { return false }
func (p *Tracer) Run(_ context.Context, _ chan<- []request.Span) {}
func (p *Tracer) Constants() map[string]any { return nil }
func (p *Tracer) SetupTC() {}
func (p *Tracer) SetupTailCalls() {}
func (p *Tracer) RegisterOffsets(_ *exec.FileInfo, _ *goexec.Offsets) {}
2 changes: 0 additions & 2 deletions pkg/internal/ebpf/gotracer/gotracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,6 @@ func (p *Tracer) AlreadyInstrumentedLib(_ uint64) bool {
return false
}

func (p *Tracer) SetupTC() {}

func (p *Tracer) Run(ctx context.Context, eventsChan chan<- []request.Span) {
ebpfcommon.SharedRingbuf(
p.cfg,
Expand Down
Loading

0 comments on commit 5ddde6f

Please sign in to comment.