gadgets/trace/network: Fix for old kernels
Same as ("gadgets: Fix networking gadgets on old kernels")
but for the trace network gadget.
Fixes: ("gadgets: get timestamp from userspace on Linux <5.7")
Fixes: ("trace sni gadget: add timestamps")
@@ -123,6 +123,8 @@ func (t *Tracer) Attach(pid uint32) (err error) {
return fmt.Errorf("failed to load asset: %w", err)
}
+ gadgets.FixBpfKtimeGetBootNs(spec.Programs)
+
consts := map[string]interface{}{
"container_netns": netns,
}
