Debian Codegraph @

attachtype_string.go

raw symbols SCIP
1 // Code generated by "stringer -type AttachType -trimprefix Attach"; DO NOT EDIT.
2
3 package ebpf
4
5 import "strconv"
6
7 func _() {
8 // An "invalid array index" compiler error signifies that the constant values have changed.
9 // Re-run the stringer command to generate them again.
10 var x [1]struct{}
11 _ = x[AttachNone-0]
12 _ = x[AttachCGroupInetIngress-0]
13 _ = x[AttachCGroupInetEgress-1]
14 _ = x[AttachCGroupInetSockCreate-2]
15 _ = x[AttachCGroupSockOps-3]
16 _ = x[AttachSkSKBStreamParser-4]
17 _ = x[AttachSkSKBStreamVerdict-5]
18 _ = x[AttachCGroupDevice-6]
19 _ = x[AttachSkMsgVerdict-7]
20 _ = x[AttachCGroupInet4Bind-8]
21 _ = x[AttachCGroupInet6Bind-9]
22 _ = x[AttachCGroupInet4Connect-10]
23 _ = x[AttachCGroupInet6Connect-11]
24 _ = x[AttachCGroupInet4PostBind-12]
25 _ = x[AttachCGroupInet6PostBind-13]
26 _ = x[AttachCGroupUDP4Sendmsg-14]
27 _ = x[AttachCGroupUDP6Sendmsg-15]
28 _ = x[AttachLircMode2-16]
29 _ = x[AttachFlowDissector-17]
30 _ = x[AttachCGroupSysctl-18]
31 _ = x[AttachCGroupUDP4Recvmsg-19]
32 _ = x[AttachCGroupUDP6Recvmsg-20]
33 _ = x[AttachCGroupGetsockopt-21]
34 _ = x[AttachCGroupSetsockopt-22]
35 _ = x[AttachTraceRawTp-23]
36 _ = x[AttachTraceFEntry-24]
37 _ = x[AttachTraceFExit-25]
38 _ = x[AttachModifyReturn-26]
39 _ = x[AttachLSMMac-27]
40 _ = x[AttachTraceIter-28]
41 _ = x[AttachCgroupInet4GetPeername-29]
42 _ = x[AttachCgroupInet6GetPeername-30]
43 _ = x[AttachCgroupInet4GetSockname-31]
44 _ = x[AttachCgroupInet6GetSockname-32]
45 _ = x[AttachXDPDevMap-33]
46 _ = x[AttachCgroupInetSockRelease-34]
47 _ = x[AttachXDPCPUMap-35]
48 _ = x[AttachSkLookup-36]
49 _ = x[AttachXDP-37]
50 _ = x[AttachSkSKBVerdict-38]
51 _ = x[AttachSkReuseportSelect-39]
52 _ = x[AttachSkReuseportSelectOrMigrate-40]
53 _ = x[AttachPerfEvent-41]
54 _ = x[AttachTraceKprobeMulti-42]
55 _ = x[AttachTraceKprobeSession-56]
56 _ = x[AttachLSMCgroup-43]
57 _ = x[AttachStructOps-44]
58 _ = x[AttachNetfilter-45]
59 _ = x[AttachTCXIngress-46]
60 _ = x[AttachTCXEgress-47]
61 _ = x[AttachTraceUprobeMulti-48]
62 _ = x[AttachCgroupUnixConnect-49]
63 _ = x[AttachCgroupUnixSendmsg-50]
64 _ = x[AttachCgroupUnixRecvmsg-51]
65 _ = x[AttachCgroupUnixGetpeername-52]
66 _ = x[AttachCgroupUnixGetsockname-53]
67 _ = x[AttachNetkitPrimary-54]
68 _ = x[AttachNetkitPeer-55]
69 _ = x[AttachWindowsXDP-268435457]
70 _ = x[AttachWindowsBind-268435458]
71 _ = x[AttachWindowsCGroupInet4Connect-268435459]
72 _ = x[AttachWindowsCGroupInet6Connect-268435460]
73 _ = x[AttachWindowsCgroupInet4RecvAccept-268435461]
74 _ = x[AttachWindowsCgroupInet6RecvAccept-268435462]
75 _ = x[AttachWindowsCGroupSockOps-268435463]
76 _ = x[AttachWindowsSample-268435464]
77 _ = x[AttachWindowsXDPTest-268435465]
78 }
79
80 const (
81 _AttachType_name_0 = "NoneCGroupInetEgressCGroupInetSockCreateCGroupSockOpsSkSKBStreamParserSkSKBStreamVerdictCGroupDeviceSkMsgVerdictCGroupInet4BindCGroupInet6BindCGroupInet4ConnectCGroupInet6ConnectCGroupInet4PostBindCGroupInet6PostBindCGroupUDP4SendmsgCGroupUDP6SendmsgLircMode2FlowDissectorCGroupSysctlCGroupUDP4RecvmsgCGroupUDP6RecvmsgCGroupGetsockoptCGroupSetsockoptTraceRawTpTraceFEntryTraceFExitModifyReturnLSMMacTraceIterCgroupInet4GetPeernameCgroupInet6GetPeernameCgroupInet4GetSocknameCgroupInet6GetSocknameXDPDevMapCgroupInetSockReleaseXDPCPUMapSkLookupXDPSkSKBVerdictSkReuseportSelectSkReuseportSelectOrMigratePerfEventTraceKprobeMultiLSMCgroupStructOpsNetfilterTCXIngressTCXEgressTraceUprobeMultiCgroupUnixConnectCgroupUnixSendmsgCgroupUnixRecvmsgCgroupUnixGetpeernameCgroupUnixGetsocknameNetkitPrimaryNetkitPeerTraceKprobeSession"
82 _AttachType_name_1 = "WindowsXDPWindowsBindWindowsCGroupInet4ConnectWindowsCGroupInet6ConnectWindowsCgroupInet4RecvAcceptWindowsCgroupInet6RecvAcceptWindowsCGroupSockOpsWindowsSampleWindowsXDPTest"
83 )
84
85 var (
86 _AttachType_index_0 = [...]uint16{0, 4, 20, 40, 53, 70, 88, 100, 112, 127, 142, 160, 178, 197, 216, 233, 250, 259, 272, 284, 301, 318, 334, 350, 360, 371, 381, 393, 399, 408, 430, 452, 474, 496, 505, 526, 535, 543, 546, 558, 575, 601, 610, 626, 635, 644, 653, 663, 672, 688, 705, 722, 739, 760, 781, 794, 804, 822}
87 _AttachType_index_1 = [...]uint8{0, 10, 21, 46, 71, 99, 127, 147, 160, 174}
88 )
89
90 func (i AttachType) String() string {
91 switch {
92 case i <= 56:
93 return _AttachType_name_0[_AttachType_index_0[i]:_AttachType_index_0[i+1]]
94 case 268435457 <= i && i <= 268435465:
95 i -= 268435457
96 return _AttachType_name_1[_AttachType_index_1[i]:_AttachType_index_1[i+1]]
97 default:
98 return "AttachType(" + strconv.FormatInt(int64(i), 10) + ")"
99 }
100 }