Skip to content

Commit 0723dfa

Browse files
OriGlassmanrandomname21
authored andcommitted
fix(events): ftrace_hook: address tabs in input
ftrace_hook parses lines. It expects words and white spaces in its input. Special characters like tab ('\t') seems to be not rendered as white space. So replace it to white space explicitly.
1 parent 17a3b4e commit 0723dfa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/events/ftrace.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ func checkFtraceHooks(eventsCounter counter.Counter, out chan *trace.Event, base
147147
continue
148148
}
149149

150+
ftraceLine = strings.ReplaceAll(ftraceLine, "\t", " ")
151+
150152
params := ftraceDef.GetParams()
151153
args := initFtraceArgs(params)
152154
err = parseEventArgs(ftraceLine, args) // Fill args

0 commit comments

Comments
 (0)