| 1 | // Code generated by "stringer -type=ProbeType -linecomment"; DO NOT EDIT. |
| 2 | |
| 3 | package tracefs |
| 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[Kprobe-0] |
| 12 | _ = x[Uprobe-1] |
| 13 | } |
| 14 | |
| 15 | const _ProbeType_name = "kprobeuprobe" |
| 16 | |
| 17 | var _ProbeType_index = [...]uint8{0, 6, 12} |
| 18 | |
| 19 | func (i ProbeType) String() string { |
| 20 | idx := int(i) - 0 |
| 21 | if i < 0 || idx >= len(_ProbeType_index)-1 { |
| 22 | return "ProbeType(" + strconv.FormatInt(int64(i), 10) + ")" |
| 23 | } |
| 24 | return _ProbeType_name[_ProbeType_index[idx]:_ProbeType_index[idx+1]] |
| 25 | } |