()
| 121 | } |
| 122 | |
| 123 | func (this *UprobeEvent) String() string { |
| 124 | this.Stack_str = this.GetStackTrace("") |
| 125 | |
| 126 | if this.mconf.FmtJson { |
| 127 | data, err := json.Marshal(this) |
| 128 | if err != nil { |
| 129 | panic(err) |
| 130 | } |
| 131 | return string(data) |
| 132 | } |
| 133 | |
| 134 | var lr_str string |
| 135 | var pc_str string |
| 136 | if this.mconf.GetOff { |
| 137 | lr_str = fmt.Sprintf("LR:0x%x(%s)", this.LR, this.GetOffset(this.LR)) |
| 138 | pc_str = fmt.Sprintf("PC:0x%x(%s)", this.PC, this.GetOffset(this.PC)) |
| 139 | } else { |
| 140 | lr_str = fmt.Sprintf("LR:0x%x", this.LR) |
| 141 | pc_str = fmt.Sprintf("PC:0x%x", this.PC) |
| 142 | } |
| 143 | |
| 144 | var s string |
| 145 | s = fmt.Sprintf("[%s] %s%s %s %s SP:0x%x", this.GetUUID(), this.uprobe_point.Name, this.ArgStr, lr_str, pc_str, this.SP) |
| 146 | |
| 147 | return s + this.Stack_str |
| 148 | } |
nothing calls this directly
no test coverage detected