github.com/cilium/ebpf@v0.15.1-0.20240517100537-8079b37aa138/attachtype_string.go (about) 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[AttachLSMCgroup-43] 56 _ = x[AttachStructOps-44] 57 _ = x[AttachNetfilter-45] 58 _ = x[AttachTCXIngress-46] 59 _ = x[AttachTCXEgress-47] 60 _ = x[AttachTraceUprobeMulti-48] 61 _ = x[AttachCgroupUnixConnect-49] 62 _ = x[AttachCgroupUnixSendmsg-50] 63 _ = x[AttachCgroupUnixRecvmsg-51] 64 _ = x[AttachCgroupUnixGetpeername-52] 65 _ = x[AttachCgroupUnixGetsockname-53] 66 _ = x[AttachNetkitPrimary-54] 67 _ = x[AttachNetkitPeer-55] 68 } 69 70 const _AttachType_name = "NoneCGroupInetEgressCGroupInetSockCreateCGroupSockOpsSkSKBStreamParserSkSKBStreamVerdictCGroupDeviceSkMsgVerdictCGroupInet4BindCGroupInet6BindCGroupInet4ConnectCGroupInet6ConnectCGroupInet4PostBindCGroupInet6PostBindCGroupUDP4SendmsgCGroupUDP6SendmsgLircMode2FlowDissectorCGroupSysctlCGroupUDP4RecvmsgCGroupUDP6RecvmsgCGroupGetsockoptCGroupSetsockoptTraceRawTpTraceFEntryTraceFExitModifyReturnLSMMacTraceIterCgroupInet4GetPeernameCgroupInet6GetPeernameCgroupInet4GetSocknameCgroupInet6GetSocknameXDPDevMapCgroupInetSockReleaseXDPCPUMapSkLookupXDPSkSKBVerdictSkReuseportSelectSkReuseportSelectOrMigratePerfEventTraceKprobeMultiLSMCgroupStructOpsNetfilterTCXIngressTCXEgressTraceUprobeMultiCgroupUnixConnectCgroupUnixSendmsgCgroupUnixRecvmsgCgroupUnixGetpeernameCgroupUnixGetsocknameNetkitPrimaryNetkitPeer" 71 72 var _AttachType_index = [...]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} 73 74 func (i AttachType) String() string { 75 if i >= AttachType(len(_AttachType_index)-1) { 76 return "AttachType(" + strconv.FormatInt(int64(i), 10) + ")" 77 } 78 return _AttachType_name[_AttachType_index[i]:_AttachType_index[i+1]] 79 }