From 4302cbf28a9d9efd2416ab6ea95168f9e39c29ec Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 26 Feb 2026 10:37:40 +0200 Subject: tui: add fd trace drilldown and fd column in stream --- internal/event/pair.go | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'internal/event/pair.go') diff --git a/internal/event/pair.go b/internal/event/pair.go index 28b553d..b6dc80c 100644 --- a/internal/event/pair.go +++ b/internal/event/pair.go @@ -102,6 +102,17 @@ func (e *Pair) FileName() string { return e.File.Name() } +func (e *Pair) FileDescriptor() (int32, bool) { + if e.File == nil { + return 0, false + } + fd := e.File.FD() + if fd < 0 { + return 0, false + } + return fd, true +} + func (e *Pair) Dump() string { return fmt.Sprintf("%v with enterEv(%v) and exitEv(%v)", e, e.EnterEv, e.ExitEv) } -- cgit v1.2.3