github.com/kubeshark/ebpf@v0.9.2/types_string.go (about) 1 // Code generated by "stringer -output types_string.go -type=MapType,ProgramType,PinType"; 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[UnspecifiedMap-0] 12 _ = x[Hash-1] 13 _ = x[Array-2] 14 _ = x[ProgramArray-3] 15 _ = x[PerfEventArray-4] 16 _ = x[PerCPUHash-5] 17 _ = x[PerCPUArray-6] 18 _ = x[StackTrace-7] 19 _ = x[CGroupArray-8] 20 _ = x[LRUHash-9] 21 _ = x[LRUCPUHash-10] 22 _ = x[LPMTrie-11] 23 _ = x[ArrayOfMaps-12] 24 _ = x[HashOfMaps-13] 25 _ = x[DevMap-14] 26 _ = x[SockMap-15] 27 _ = x[CPUMap-16] 28 _ = x[XSKMap-17] 29 _ = x[SockHash-18] 30 _ = x[CGroupStorage-19] 31 _ = x[ReusePortSockArray-20] 32 _ = x[PerCPUCGroupStorage-21] 33 _ = x[Queue-22] 34 _ = x[Stack-23] 35 _ = x[SkStorage-24] 36 _ = x[DevMapHash-25] 37 _ = x[StructOpsMap-26] 38 _ = x[RingBuf-27] 39 _ = x[InodeStorage-28] 40 _ = x[TaskStorage-29] 41 _ = x[maxMapType-30] 42 } 43 44 const _MapType_name = "UnspecifiedMapHashArrayProgramArrayPerfEventArrayPerCPUHashPerCPUArrayStackTraceCGroupArrayLRUHashLRUCPUHashLPMTrieArrayOfMapsHashOfMapsDevMapSockMapCPUMapXSKMapSockHashCGroupStorageReusePortSockArrayPerCPUCGroupStorageQueueStackSkStorageDevMapHashStructOpsMapRingBufInodeStorageTaskStoragemaxMapType" 45 46 var _MapType_index = [...]uint16{0, 14, 18, 23, 35, 49, 59, 70, 80, 91, 98, 108, 115, 126, 136, 142, 149, 155, 161, 169, 182, 200, 219, 224, 229, 238, 248, 260, 267, 279, 290, 300} 47 48 func (i MapType) String() string { 49 if i >= MapType(len(_MapType_index)-1) { 50 return "MapType(" + strconv.FormatInt(int64(i), 10) + ")" 51 } 52 return _MapType_name[_MapType_index[i]:_MapType_index[i+1]] 53 } 54 func _() { 55 // An "invalid array index" compiler error signifies that the constant values have changed. 56 // Re-run the stringer command to generate them again. 57 var x [1]struct{} 58 _ = x[UnspecifiedProgram-0] 59 _ = x[SocketFilter-1] 60 _ = x[Kprobe-2] 61 _ = x[SchedCLS-3] 62 _ = x[SchedACT-4] 63 _ = x[TracePoint-5] 64 _ = x[XDP-6] 65 _ = x[PerfEvent-7] 66 _ = x[CGroupSKB-8] 67 _ = x[CGroupSock-9] 68 _ = x[LWTIn-10] 69 _ = x[LWTOut-11] 70 _ = x[LWTXmit-12] 71 _ = x[SockOps-13] 72 _ = x[SkSKB-14] 73 _ = x[CGroupDevice-15] 74 _ = x[SkMsg-16] 75 _ = x[RawTracepoint-17] 76 _ = x[CGroupSockAddr-18] 77 _ = x[LWTSeg6Local-19] 78 _ = x[LircMode2-20] 79 _ = x[SkReuseport-21] 80 _ = x[FlowDissector-22] 81 _ = x[CGroupSysctl-23] 82 _ = x[RawTracepointWritable-24] 83 _ = x[CGroupSockopt-25] 84 _ = x[Tracing-26] 85 _ = x[StructOps-27] 86 _ = x[Extension-28] 87 _ = x[LSM-29] 88 _ = x[SkLookup-30] 89 _ = x[Syscall-31] 90 _ = x[maxProgramType-32] 91 } 92 93 const _ProgramType_name = "UnspecifiedProgramSocketFilterKprobeSchedCLSSchedACTTracePointXDPPerfEventCGroupSKBCGroupSockLWTInLWTOutLWTXmitSockOpsSkSKBCGroupDeviceSkMsgRawTracepointCGroupSockAddrLWTSeg6LocalLircMode2SkReuseportFlowDissectorCGroupSysctlRawTracepointWritableCGroupSockoptTracingStructOpsExtensionLSMSkLookupSyscallmaxProgramType" 94 95 var _ProgramType_index = [...]uint16{0, 18, 30, 36, 44, 52, 62, 65, 74, 83, 93, 98, 104, 111, 118, 123, 135, 140, 153, 167, 179, 188, 199, 212, 224, 245, 258, 265, 274, 283, 286, 294, 301, 315} 96 97 func (i ProgramType) String() string { 98 if i >= ProgramType(len(_ProgramType_index)-1) { 99 return "ProgramType(" + strconv.FormatInt(int64(i), 10) + ")" 100 } 101 return _ProgramType_name[_ProgramType_index[i]:_ProgramType_index[i+1]] 102 } 103 func _() { 104 // An "invalid array index" compiler error signifies that the constant values have changed. 105 // Re-run the stringer command to generate them again. 106 var x [1]struct{} 107 _ = x[PinNone-0] 108 _ = x[PinByName-1] 109 } 110 111 const _PinType_name = "PinNonePinByName" 112 113 var _PinType_index = [...]uint8{0, 7, 16} 114 115 func (i PinType) String() string { 116 if i < 0 || i >= PinType(len(_PinType_index)-1) { 117 return "PinType(" + strconv.FormatInt(int64(i), 10) + ")" 118 } 119 return _PinType_name[_PinType_index[i]:_PinType_index[i+1]] 120 }