|
@@ -253,18 +253,6 @@ func (t *Tracer) ActiveAcceptsIterator() *ebpf.MapIterator {
|
|
|
return t.collection.Maps["active_accepts"].Iterate()
|
|
return t.collection.Maps["active_accepts"].Iterate()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-type ConnectionId struct {
|
|
|
|
|
- FD uint64
|
|
|
|
|
- PID uint32
|
|
|
|
|
- _ uint32
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-type Connection struct {
|
|
|
|
|
- Timestamp uint64
|
|
|
|
|
- BytesSent uint64
|
|
|
|
|
- BytesReceived uint64
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
type perfMap struct {
|
|
type perfMap struct {
|
|
|
name string
|
|
name string
|
|
|
perCPUBufferSizePages int
|
|
perCPUBufferSizePages int
|
|
@@ -494,10 +482,10 @@ type l7Event struct {
|
|
|
TraceStart uint32
|
|
TraceStart uint32
|
|
|
TraceEnd uint32
|
|
TraceEnd uint32
|
|
|
EventCount uint32
|
|
EventCount uint32
|
|
|
- Sport uint16
|
|
|
|
|
- Dport uint16
|
|
|
|
|
- SAddr [16]byte
|
|
|
|
|
- DAddr [16]byte
|
|
|
|
|
|
|
+ Sport uint16
|
|
|
|
|
+ Dport uint16
|
|
|
|
|
+ SAddr [16]byte
|
|
|
|
|
+ DAddr [16]byte
|
|
|
AssumedAppId HashByte
|
|
AssumedAppId HashByte
|
|
|
SpanId HashByte
|
|
SpanId HashByte
|
|
|
TraceIdFrom HashByte16
|
|
TraceIdFrom HashByte16
|
|
@@ -738,8 +726,8 @@ func runEventsReader(name string, r *perf.Reader, ch chan<- Event, typ perfMapTy
|
|
|
req.ParentSpanContext.InstanceIdFrom = hex.EncodeToString(v.InstanceIdFrom[:])
|
|
req.ParentSpanContext.InstanceIdFrom = hex.EncodeToString(v.InstanceIdFrom[:])
|
|
|
req.ParentSpanContext.AppIdFrom = hex.EncodeToString(v.AppIdFrom[:])
|
|
req.ParentSpanContext.AppIdFrom = hex.EncodeToString(v.AppIdFrom[:])
|
|
|
req.ParentSpanContext.SpanIdFrom = hex.EncodeToString(v.SpanIdFrom[:])
|
|
req.ParentSpanContext.SpanIdFrom = hex.EncodeToString(v.SpanIdFrom[:])
|
|
|
- req.SAddr = ipPort(v.SAddr,v.Sport)
|
|
|
|
|
- req.DAddr = ipPort(v.DAddr,v.Dport)
|
|
|
|
|
|
|
+ req.SAddr = ipPort(v.SAddr, v.Sport)
|
|
|
|
|
+ req.DAddr = ipPort(v.DAddr, v.Dport)
|
|
|
klog.Infof("runEventsReader SAddr.String %s", req.SAddr.String())
|
|
klog.Infof("runEventsReader SAddr.String %s", req.SAddr.String())
|
|
|
klog.Infof("runEventsReader DAddr.String %s", req.DAddr.String())
|
|
klog.Infof("runEventsReader DAddr.String %s", req.DAddr.String())
|
|
|
}
|
|
}
|