diff options
| author | Steven Rostedt <[email protected]> | 2025-07-21 17:42:12 +0000 |
|---|---|---|
| committer | Shuah Khan <[email protected]> | 2025-07-24 21:52:20 +0000 |
| commit | 213879061a9c60200ba971330dbefec6df3b4a30 (patch) | |
| tree | 0241db7e7107db55597892d71b844324cd9ab551 /net/unix/af_unix.c | |
| parent | selftests/kexec: fix test_kexec_jump build (diff) | |
| download | kernel-213879061a9c60200ba971330dbefec6df3b4a30.tar.gz kernel-213879061a9c60200ba971330dbefec6df3b4a30.zip | |
selftests/tracing: Fix false failure of subsystem event test
The subsystem event test enables all "sched" events and makes sure there's
at least 3 different events in the output. It used to cat the entire trace
file to | wc -l, but on slow machines, that could last a very long time.
To solve that, it was changed to just read the first 100 lines of the
trace file. This can cause false failures as some events repeat so often,
that the 100 lines that are examined could possibly be of only one event.
Instead, create an awk script that looks for 3 different events and will
exit out after it finds them. This will find the 3 events the test looks
for (eventually if it works), and still exit out after the test is
satisfied and not cause slower machines to run forever.
Link: https://lore.kernel.org/r/[email protected]
Reported-by: Tengda Wu <[email protected]>
Closes: https://lore.kernel.org/all/[email protected]/
Fixes: 1a4ea83a6e67 ("selftests/ftrace: Limit length in subsystem-enable tests")
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
