gadgets: Fix networking gadgets on old kernels
There is a missing call to FixBpfKtimeGetBootNs() in networking gadgets
to enable them to work in old kernels.
Fixes: ("gadgets: get timestamp from userspace on Linux <5.7")
Fixes: ("trace sni gadget: add timestamps")
@@ -119,6 +119,8 @@ func NewTracer[Event any](
baseEvent func(ev types.Event) *Event,
parseEvent func([]byte) (*Event, error),
) *Tracer[Event] {
+ gadgets.FixBpfKtimeGetBootNs(spec.Programs)
+
return &Tracer[Event]{
spec: spec,
attachments: make(map[uint64]*attachment),
