@@ -586,25 +586,25 @@ func TestSslEventsCanRelatedToKernEvents(t *testing.T) {
586
586
bpf .AttachSyscallWriteExit ,
587
587
bpf .AttachKProbeSecuritySocketSendmsgEntry ,
588
588
bpf .AttachKProbeSecuritySocketRecvmsgEntry ,
589
- func () link.Link {
589
+ func () ( link.Link , error ) {
590
590
return ApplyKernelVersionFunctions (t , bpf .AgentStepTDEV_IN )
591
591
},
592
- func () link.Link {
592
+ func () ( link.Link , error ) {
593
593
return ApplyKernelVersionFunctions (t , bpf .AgentStepTUSER_COPY )
594
594
},
595
- func () link.Link {
595
+ func () ( link.Link , error ) {
596
596
return ApplyKernelVersionFunctions (t , bpf .AgentStepTIP_IN )
597
597
},
598
- func () link.Link {
598
+ func () ( link.Link , error ) {
599
599
return ApplyKernelVersionFunctions (t , bpf .AgentStepTTCP_IN )
600
600
},
601
- func () link.Link {
601
+ func () ( link.Link , error ) {
602
602
return ApplyKernelVersionFunctions (t , bpf .AgentStepTIP_OUT )
603
603
},
604
- func () link.Link {
604
+ func () ( link.Link , error ) {
605
605
return ApplyKernelVersionFunctions (t , bpf .AgentStepTDEV_OUT )
606
606
},
607
- func () link.Link {
607
+ func () ( link.Link , error ) {
608
608
return ApplyKernelVersionFunctions (t , bpf .AgentStepTQDISC_OUT )
609
609
},
610
610
},
@@ -964,7 +964,7 @@ func TestIpXmit(t *testing.T) {
964
964
bpf .AttachSyscallWriteEntry ,
965
965
bpf .AttachSyscallWriteExit ,
966
966
bpf .AttachKProbeSecuritySocketSendmsgEntry ,
967
- func () link.Link {
967
+ func () ( link.Link , error ) {
968
968
return ApplyKernelVersionFunctions (t , bpf .AgentStepTIP_OUT )
969
969
},
970
970
},
@@ -994,10 +994,10 @@ func TestDevQueueXmit(t *testing.T) {
994
994
bpf .AttachSyscallWriteEntry ,
995
995
bpf .AttachSyscallWriteExit ,
996
996
bpf .AttachKProbeSecuritySocketSendmsgEntry ,
997
- func () link.Link {
997
+ func () ( link.Link , error ) {
998
998
return ApplyKernelVersionFunctions (t , bpf .AgentStepTIP_OUT )
999
999
},
1000
- func () link.Link {
1000
+ func () ( link.Link , error ) {
1001
1001
return ApplyKernelVersionFunctions (t , bpf .AgentStepTQDISC_OUT )
1002
1002
},
1003
1003
}, "GET DevQueueXmit\n " , Write , Read ,
@@ -1029,10 +1029,10 @@ func TestDevHardStartXmit(t *testing.T) {
1029
1029
bpf .AttachSyscallWriteEntry ,
1030
1030
bpf .AttachSyscallWriteExit ,
1031
1031
bpf .AttachKProbeSecuritySocketSendmsgEntry ,
1032
- func () link.Link {
1032
+ func () ( link.Link , error ) {
1033
1033
return ApplyKernelVersionFunctions (t , bpf .AgentStepTIP_OUT )
1034
1034
},
1035
- func () link.Link {
1035
+ func () ( link.Link , error ) {
1036
1036
return ApplyKernelVersionFunctions (t , bpf .AgentStepTDEV_OUT )
1037
1037
},
1038
1038
}, "GET DevHardStartXmit\n " , Write , Read ,
@@ -1110,10 +1110,10 @@ func TestIpRcvCore(t *testing.T) {
1110
1110
bpf .AttachSyscallWriteExit ,
1111
1111
bpf .AttachKProbeSecuritySocketSendmsgEntry ,
1112
1112
bpf .AttachKProbeSecuritySocketRecvmsgEntry ,
1113
- func () link.Link {
1113
+ func () ( link.Link , error ) {
1114
1114
return ApplyKernelVersionFunctions (t , bpf .AgentStepTDEV_IN )
1115
1115
},
1116
- func () link.Link {
1116
+ func () ( link.Link , error ) {
1117
1117
return ApplyKernelVersionFunctions (t , bpf .AgentStepTIP_IN )
1118
1118
},
1119
1119
},
@@ -1150,10 +1150,10 @@ func TestTcpV4DoRcv(t *testing.T) {
1150
1150
bpf .AttachSyscallWriteExit ,
1151
1151
bpf .AttachKProbeSecuritySocketSendmsgEntry ,
1152
1152
bpf .AttachKProbeSecuritySocketRecvmsgEntry ,
1153
- func () link.Link {
1153
+ func () ( link.Link , error ) {
1154
1154
return ApplyKernelVersionFunctions (t , bpf .AgentStepTDEV_IN )
1155
1155
},
1156
- func () link.Link {
1156
+ func () ( link.Link , error ) {
1157
1157
return ApplyKernelVersionFunctions (t , bpf .AgentStepTTCP_IN )
1158
1158
},
1159
1159
},
@@ -1190,10 +1190,10 @@ func TestSkbCopyDatagramIter(t *testing.T) {
1190
1190
bpf .AttachSyscallWriteExit ,
1191
1191
bpf .AttachKProbeSecuritySocketSendmsgEntry ,
1192
1192
bpf .AttachKProbeSecuritySocketRecvmsgEntry ,
1193
- func () link.Link {
1193
+ func () ( link.Link , error ) {
1194
1194
return ApplyKernelVersionFunctions (t , bpf .AgentStepTDEV_IN )
1195
1195
},
1196
- func () link.Link {
1196
+ func () ( link.Link , error ) {
1197
1197
return ApplyKernelVersionFunctions (t , bpf .AgentStepTUSER_COPY )
1198
1198
},
1199
1199
},
0 commit comments