Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: cilium/tetragon
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 367e603f48861db45d07e9880bbd2fec3922e022
Choose a base ref
..
head repository: cilium/tetragon
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0f6a5c52e0ef2d2c9572ec7a76c329cac757786b
Choose a head ref
Showing with 4 additions and 6 deletions.
  1. +4 −6 pkg/process/process.go
10 changes: 4 additions & 6 deletions pkg/process/process.go
Original file line number Diff line number Diff line change
@@ -255,13 +255,11 @@ func initProcessInternalClone(event *tetragonAPI.MsgCloneEvent,
"event.process.exec_id": pi.process.ExecId,
"event.parent.exec_id": parentExecId,
}).Debug("CloneEvent: process PID and TID mismatch")
pi.process.Tid = &wrapperspb.UInt32Value{Value: 0}
} else {
// Set the TID here and if we have an exit without an exec we report
// directly this TID without copying again objects.
// At kprobe times we use the returned TIDs from bpf side.
pi.process.Tid = &wrapperspb.UInt32Value{Value: event.PID}
}
// Set the TID here and if we have an exit without an exec we report
// directly this TID without copying again objects.
// At kprobe times we use the returned TIDs from bpf side.
pi.process.Tid = &wrapperspb.UInt32Value{Value: event.PID}

pi.process.Flags = strings.Join(exec.DecodeCommonFlags(event.Flags), " ")
pi.process.StartTime = ktime.ToProto(event.Ktime)