Skip to content

Commit

Permalink
WIP: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
afek854 committed Oct 30, 2024
1 parent 26404b9 commit ac64390
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tracehandler/tracehandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (m *traceHandler) HandleTrace(bpfTrace *host.Trace) {
PID: bpfTrace.PID,
TID: bpfTrace.TID,
APMServiceName: "", // filled in below

Registers: bpfTrace.Registers,
}

if !m.reporter.SupportsReportTraceEvent() {
Expand Down
2 changes: 2 additions & 0 deletions tracer/tracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -882,6 +882,8 @@ func (t *Tracer) loadBpfTrace(raw []byte) *host.Trace {
Ss: uint64(ptr.registers.ss),
}

fmt.Println("Regs", regs)

trace := &host.Trace{
Comm: C.GoString((*C.char)(unsafe.Pointer(&ptr.comm))),
APMTraceID: *(*libpf.APMTraceID)(unsafe.Pointer(&ptr.apm_trace_id)),
Expand Down

0 comments on commit ac64390

Please sign in to comment.