github.com/cilium/ebpf@v0.15.1-0.20240517100537-8079b37aa138/asm/jump_string.go (about) 1 // Code generated by "stringer -output jump_string.go -type=JumpOp"; DO NOT EDIT. 2 3 package asm 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[InvalidJumpOp-255] 12 _ = x[Ja-0] 13 _ = x[JEq-16] 14 _ = x[JGT-32] 15 _ = x[JGE-48] 16 _ = x[JSet-64] 17 _ = x[JNE-80] 18 _ = x[JSGT-96] 19 _ = x[JSGE-112] 20 _ = x[Call-128] 21 _ = x[Exit-144] 22 _ = x[JLT-160] 23 _ = x[JLE-176] 24 _ = x[JSLT-192] 25 _ = x[JSLE-208] 26 } 27 28 const _JumpOp_name = "JaJEqJGTJGEJSetJNEJSGTJSGECallExitJLTJLEJSLTJSLEInvalidJumpOp" 29 30 var _JumpOp_map = map[JumpOp]string{ 31 0: _JumpOp_name[0:2], 32 16: _JumpOp_name[2:5], 33 32: _JumpOp_name[5:8], 34 48: _JumpOp_name[8:11], 35 64: _JumpOp_name[11:15], 36 80: _JumpOp_name[15:18], 37 96: _JumpOp_name[18:22], 38 112: _JumpOp_name[22:26], 39 128: _JumpOp_name[26:30], 40 144: _JumpOp_name[30:34], 41 160: _JumpOp_name[34:37], 42 176: _JumpOp_name[37:40], 43 192: _JumpOp_name[40:44], 44 208: _JumpOp_name[44:48], 45 255: _JumpOp_name[48:61], 46 } 47 48 func (i JumpOp) String() string { 49 if str, ok := _JumpOp_map[i]; ok { 50 return str 51 } 52 return "JumpOp(" + strconv.FormatInt(int64(i), 10) + ")" 53 }