MCPcopy Create free account
hub / github.com/SeeFlowerX/stackplz / String

Method String

user/event/event_uprobe.go:123–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121}
122
123func (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}

Callers

nothing calls this directly

Calls 3

GetUUIDMethod · 0.95
GetStackTraceMethod · 0.80
GetOffsetMethod · 0.45

Tested by

no test coverage detected