aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorLinus Torvalds <[email protected]>2022-12-05 12:09:06 -0800
committerLinus Torvalds <[email protected]>2022-12-05 12:09:06 -0800
commitbce9332220bd677d83b19d21502776ad555a0e73 (patch)
tree11748b90fcc9854d161b1a79d55631aa10e85f83 /tools/perf/util/trace-event-scripting.c
parente6cfaf34be9fcd1a8285a294e18986bfc41a409c (diff)
proc: proc_skip_spaces() shouldn't think it is working on C strings
proc_skip_spaces() seems to think it is working on C strings, and ends up being just a wrapper around skip_spaces() with a really odd calling convention. Instead of basing it on skip_spaces(), it should have looked more like proc_skip_char(), which really is the exact same function (except it skips a particular character, rather than whitespace). So use that as inspiration, odd coding and all. Now the calling convention actually makes sense and works for the intended purpose. Reported-and-tested-by: Kyle Zeng <[email protected]> Acked-by: Eric Dumazet <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions