github.com/cilium/ebpf@v0.15.1-0.20240517100537-8079b37aa138/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  }
    42  
    43  const _MapType_name = "UnspecifiedMapHashArrayProgramArrayPerfEventArrayPerCPUHashPerCPUArrayStackTraceCGroupArrayLRUHashLRUCPUHashLPMTrieArrayOfMapsHashOfMapsDevMapSockMapCPUMapXSKMapSockHashCGroupStorageReusePortSockArrayPerCPUCGroupStorageQueueStackSkStorageDevMapHashStructOpsMapRingBufInodeStorageTaskStorage"
    44  
    45  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}
    46  
    47  func (i MapType) String() string {
    48  	if i >= MapType(len(_MapType_index)-1) {
    49  		return "MapType(" + strconv.FormatInt(int64(i), 10) + ")"
    50  	}
    51  	return _MapType_name[_MapType_index[i]:_MapType_index[i+1]]
    52  }
    53  func _() {
    54  	// An "invalid array index" compiler error signifies that the constant values have changed.
    55  	// Re-run the stringer command to generate them again.
    56  	var x [1]struct{}
    57  	_ = x[UnspecifiedProgram-0]
    58  	_ = x[SocketFilter-1]
    59  	_ = x[Kprobe-2]
    60  	_ = x[SchedCLS-3]
    61  	_ = x[SchedACT-4]
    62  	_ = x[TracePoint-5]
    63  	_ = x[XDP-6]
    64  	_ = x[PerfEvent-7]
    65  	_ = x[CGroupSKB-8]
    66  	_ = x[CGroupSock-9]
    67  	_ = x[LWTIn-10]
    68  	_ = x[LWTOut-11]
    69  	_ = x[LWTXmit-12]
    70  	_ = x[SockOps-13]
    71  	_ = x[SkSKB-14]
    72  	_ = x[CGroupDevice-15]
    73  	_ = x[SkMsg-16]
    74  	_ = x[RawTracepoint-17]
    75  	_ = x[CGroupSockAddr-18]
    76  	_ = x[LWTSeg6Local-19]
    77  	_ = x[LircMode2-20]
    78  	_ = x[SkReuseport-21]
    79  	_ = x[FlowDissector-22]
    80  	_ = x[CGroupSysctl-23]
    81  	_ = x[RawTracepointWritable-24]
    82  	_ = x[CGroupSockopt-25]
    83  	_ = x[Tracing-26]
    84  	_ = x[StructOps-27]
    85  	_ = x[Extension-28]
    86  	_ = x[LSM-29]
    87  	_ = x[SkLookup-30]
    88  	_ = x[Syscall-31]
    89  	_ = x[Netfilter-32]
    90  }
    91  
    92  const _ProgramType_name = "UnspecifiedProgramSocketFilterKprobeSchedCLSSchedACTTracePointXDPPerfEventCGroupSKBCGroupSockLWTInLWTOutLWTXmitSockOpsSkSKBCGroupDeviceSkMsgRawTracepointCGroupSockAddrLWTSeg6LocalLircMode2SkReuseportFlowDissectorCGroupSysctlRawTracepointWritableCGroupSockoptTracingStructOpsExtensionLSMSkLookupSyscallNetfilter"
    93  
    94  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, 310}
    95  
    96  func (i ProgramType) String() string {
    97  	if i >= ProgramType(len(_ProgramType_index)-1) {
    98  		return "ProgramType(" + strconv.FormatInt(int64(i), 10) + ")"
    99  	}
   100  	return _ProgramType_name[_ProgramType_index[i]:_ProgramType_index[i+1]]
   101  }
   102  func _() {
   103  	// An "invalid array index" compiler error signifies that the constant values have changed.
   104  	// Re-run the stringer command to generate them again.
   105  	var x [1]struct{}
   106  	_ = x[PinNone-0]
   107  	_ = x[PinByName-1]
   108  }
   109  
   110  const _PinType_name = "PinNonePinByName"
   111  
   112  var _PinType_index = [...]uint8{0, 7, 16}
   113  
   114  func (i PinType) String() string {
   115  	if i >= PinType(len(_PinType_index)-1) {
   116  		return "PinType(" + strconv.FormatInt(int64(i), 10) + ")"
   117  	}
   118  	return _PinType_name[_PinType_index[i]:_PinType_index[i+1]]
   119  }