Skip to content

Commit f86bd0e

Browse files
authored
make sure to copy all maps for older kernels (#334)
Signed-off-by: Mohamed Mahmoud <[email protected]>
1 parent baa1dc4 commit f86bd0e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/ebpf/tracer.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,9 @@ func kernelSpecificLoadAndAssign(oldKernel bool, spec *ebpf.CollectionSpec) (Bpf
638638
// Note for any future maps or programs make sure to copy them manually here
639639
objects.DirectFlows = newObjects.DirectFlows
640640
objects.AggregatedFlows = newObjects.AggregatedFlows
641+
objects.DnsFlows = newObjects.DnsFlows
642+
objects.FilterMap = newObjects.FilterMap
643+
objects.GlobalCounters = newObjects.GlobalCounters
641644
objects.TcEgressFlowParse = newObjects.TcEgressFlowParse
642645
objects.TcIngressFlowParse = newObjects.TcIngressFlowParse
643646
objects.TcxEgressFlowParse = newObjects.TcxEgressFlowParse
@@ -648,7 +651,6 @@ func kernelSpecificLoadAndAssign(oldKernel bool, spec *ebpf.CollectionSpec) (Bpf
648651
objects.TcxIngressPcaParse = newObjects.TcxIngressPcaParse
649652
objects.TcpRcvFentry = newObjects.TCPRcvFentry
650653
objects.TcpRcvKprobe = newObjects.TCPRcvKprobe
651-
objects.GlobalCounters = newObjects.GlobalCounters
652654
objects.KfreeSkb = nil
653655
} else {
654656
if err := spec.LoadAndAssign(&objects, nil); err != nil {

0 commit comments

Comments
 (0)