diff options
| author | Paul Buetow <paul@buetow.org> | 2025-03-05 09:58:17 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-03-05 09:58:17 +0200 |
| commit | bd3dc06cb9eb32b21c249793d485bdbcd9589a96 (patch) | |
| tree | a617d7fa9f53d4489d2f08f7c0decd79b8cc8b54 /internal/event.go | |
| parent | 08e30830266c0996b85d3f28c25d09029011af94 (diff) | |
work on TID_FILTER, doesn't work yet fully, need to debug
Diffstat (limited to 'internal/event.go')
| -rw-r--r-- | internal/event.go | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/internal/event.go b/internal/event.go index 2f62bce..bce60fa 100644 --- a/internal/event.go +++ b/internal/event.go @@ -54,21 +54,17 @@ func (e *eventPair) is(id TraceId) bool { func (e *eventPair) String() string { var sb strings.Builder - if e.tracepointMismatch { - sb.WriteString("MISMATCH ") - } - sb.WriteString(fmt.Sprintf("%08dns %08dns", e.durationToPrev, e.duration)) - sb.WriteString(" ") + sb.WriteString(" comm:") sb.WriteString(e.comm) - sb.WriteString(" ") + sb.WriteString(" pidtid:") sb.WriteString(strconv.FormatInt(int64(e.enterEv.GetPid()), 10)) sb.WriteString(".") sb.WriteString(strconv.FormatInt(int64(e.enterEv.GetTid()), 10)) - sb.WriteString(" ") + sb.WriteString(" name:") sb.WriteString(e.enterEv.GetTraceId().Name()) if retEv, ok := e.exitEv.(*RetEvent); ok { sb.WriteString(":") @@ -78,6 +74,9 @@ func (e *eventPair) String() string { sb.WriteString(" ") sb.WriteString(e.file.String()) + if e.tracepointMismatch { + sb.WriteString(" MISMATCH") + } return sb.String() } |
