ftrace:test.d--event--event-enable.tc fails with timeout on focal:linux-hwe-5.15 ARM64
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
New
|
Undecided
|
Unassigned |
Bug Description
Similar to bug 2029405, this is another ftrace subtest failed on ARM64 generic because the `cat trace` command took too long to run.
Issue found on ARM64 node wright-kernel with both generic kernel.
Partial test log:
Running './ftracetest -vvv test.d/
=== Ftrace unit tests ===
....
[1] event tracing - enable/disable with event level files
+ [ 2 -eq 1 ]
+ [ -f set_event_pid ]
+ echo
+ [ -f set_ftrace_pid ]
+ echo
+ [ -f set_ftrace_notrace ]
+ echo
+ [ -f set_graph_function ]
+ echo
+ tee set_graph_function set_graph_notrace
+ [ -f stack_trace_filter ]
+ echo
+ [ -f kprobe_events ]
+ echo
+ [ -f uprobe_events ]
+ echo
+ [ -f synthetic_events ]
+ echo
+ [ -f snapshot ]
+ echo 0
+ clear_trace
+ echo
+ enable_tracing
+ echo 1
+ . /home/ubuntu/
+ echo sched:sched_switch
+ yield
+ ping 127.0.0.1 -c 1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.096 ms
--- 127.0.0.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.096/0.
+ cat trace
+ grep sched_switch
+ wc -l
Timer expired (600 sec.), nuking pid 20982
From the code (tools/
count=`cat trace | grep sched_switch | wc -l`
This command caused the timeout as `cat trace` seems to be never ending.