func_traceonoff_triggers.tc from ubuntu_kselftests_ftrace flaky (Tracing file is still changing)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
New
|
Undecided
|
Unassigned | ||
linux (Ubuntu) |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
Issue found on Focal 5.4.0-29.33 with node amaura (passed on rizzo, rizzo failed with other failures)
Running './ftracetest -vvv test.d/
[stdout] === Ftrace unit tests ===
[stderr] + initialize_ftrace
[stderr] + disable_tracing
[stderr] + echo 0
[stderr] + reset_tracer
[stderr] + echo nop
[stderr] + reset_trigger
[stderr] + [ -d events/synthetic ]
(long output skipped)
[stderr] + read line
(long output skipped)
[stderr] + read line
(long output skipped)
[stderr] + reset_events_filter
[stderr] + read line
(long output skipped)
[stderr] + reset_ftrace_filter
[stderr] + [ ! -f set_ftrace_filter ]
[stderr] + echo
[stderr] + grep -v ^# set_ftrace_filter
[stderr] + read t
[stderr] + disable_events
[stderr] + echo 0
[stderr] + [ -f set_event_pid ]
[stderr] + echo
[stderr] + [ -f set_ftrace_pid ]
[stdout] [1] ftrace - test for function traceon/off triggers
[stderr] + echo
[stderr] + [ -f set_ftrace_notrace ]
[stderr] + echo
[stderr] + [ -f set_graph_function ]
[stderr] + tee set_graph_function set_graph_notrace
[stderr] + echo
[stderr] + [ -f stack_trace_filter ]
[stderr] + echo
[stderr] + [ -f kprobe_events ]
[stderr] + echo
[stderr] + [ -f uprobe_events ]
[stderr] + echo
[stderr] + [ -f synthetic_events ]
[stderr] + echo
[stderr] + [ -f snapshot ]
[stderr] + echo 0
[stderr] + clear_trace
[stdout] Testing function probes with enabling disabling tracing:
[stdout] ** DISABLE TRACING
[stderr] + echo
[stderr] + enable_tracing
[stderr] + echo 1
[stderr] + . /home/ubuntu/
[stderr] + [ ! -f set_ftrace_filter ]
[stderr] + SLEEP_TIME=.1
[stderr] + echo Testing function probes with enabling disabling tracing:
[stderr] + echo ** DISABLE TRACING
[stderr] + disable_tracing
[stderr] + echo 0
[stderr] + clear_trace
[stderr] + echo
[stderr] + cnt_trace
[stderr] + + grep -v ^# trace
[stderr] wc -l
[stdout] ** ENABLE EVENTS
[stderr] + cnt=0
[stderr] + [ 0 -ne 0 ]
[stderr] + echo ** ENABLE EVENTS
[stderr] + echo 1
[stdout] ** ENABLE TRACING
[stderr] + echo ** ENABLE TRACING
[stderr] + enable_tracing
[stderr] + echo 1
[stderr] + cnt_trace
[stderr] + wc -l
[stderr] + grep -v ^# trace
[stderr] + cnt=4077
[stderr] + [ 4077 -eq 0 ]
[stderr] + func=schedule
[stderr] + available_
[stderr] + [ -d ../../instances -a -f ../../available
[stderr] + grep ^\.schedule$ available_
[stderr] + wc -l
[stdout] ** SET TRACEOFF
[stderr] + x=0
[stderr] + [ 0 -eq 1 ]
[stderr] + echo ** SET TRACEOFF
[stderr] + echo schedule:traceoff
[stderr] + [ -d ../../instances ]
[stderr] + + wc -l
[stderr] grep schedule set_ftrace_filter
[stderr] + cnt=1
[stderr] + [ 1 -ne 1 ]
[stderr] + cnt_trace
[stderr] + wc -l
[stderr] + grep -v ^# trace
[stderr] + cnt=21814
[stderr] + sleep .1
[stderr] + cnt_trace
[stderr] + grep+ wc -v ^# trace
[stderr] -l
[stderr] + cnt2=21814
[stderr] + [ 21814 -ne 21814 ]
[stderr] + cat tracing_on
[stderr] + on=0
[stderr] + [ 0 != 0 ]
[stderr] + md5sum trace
[stderr] + csum1=c6e4ee60f
[stderr] + sleep .1
[stderr] + md5sum trace
[stderr] + csum2=e4031c9f7
[stderr] + [ c6e4ee60fb108d6
[stderr] + fail Tracing file is still changing
[stderr] + echo Tracing file is still changing
[stderr] + exit_fail
[stderr] + exit 1
[stdout] Tracing file is still changing
[stdout] [FAIL]
[stderr] + initialize_ftrace
[stderr] + disable_tracing
[stderr] + echo 0
[stderr] + reset_tracer
[stderr] + echo nop
[stderr] + reset_trigger
[stderr] + [ -d events/synthetic ]
(long output skipped)
[stderr] + read line
(long output skipped)
[stderr] + read line
(long output skipped)
[stderr] + reset_events_filter
[stderr] + read line
(long output skipped)
[stderr] + reset_ftrace_filter
[stderr] + [ ! -f set_ftrace_filter ]
[stderr] + echo
[stderr] + read t
[stderr] + grep -v ^# set_ftrace_filter
[stderr] + disable_events
[stderr] + echo 0
[stderr] + [ -f set_event_pid ]
[stderr] + echo
[stderr] + [ -f set_ftrace_pid ]
[stderr] + echo
[stderr] + [ -f set_ftrace_notrace ]
[stderr] + echo
[stderr] + [ -f set_graph_function ]
[stderr] + [ -f stack_trace_filter ]
[stderr] + [ -f kprobe_events ]
[stderr] + [ -f uprobe_events ]
[stderr] + [ -f synthetic_events ]
[stderr] + [ -f snapshot ]
[stderr] + echo 0
[stderr] + clear_trace
[stdout] [2] (instance) ftrace - test for function traceon/off triggersTesting function probes with enabling disabling tracing:
[stdout] ** DISABLE TRACING
[stderr] + echo
[stderr] + enable_tracing
[stderr] + echo 1
[stderr] + . /home/ubuntu/
[stderr] + [ ! -f set_ftrace_filter ]
[stderr] + SLEEP_TIME=.1
[stderr] + echo Testing function probes with enabling disabling tracing:
[stderr] + echo ** DISABLE TRACING
[stderr] + disable_tracing
[stderr] + echo 0
[stderr] + clear_trace
[stderr] + echo
[stderr] + cnt_trace
[stderr] + wc -l
[stderr] + grep -v ^# trace
[stdout] ** ENABLE EVENTS
[stdout] ** ENABLE TRACING
[stderr] + cnt=0
[stderr] + [ 0 -ne 0 ]
[stderr] + echo ** ENABLE EVENTS
[stderr] + echo 1
[stderr] + echo ** ENABLE TRACING
[stderr] + enable_tracing
[stderr] + echo 1
[stderr] + cnt_trace
[stderr] + wc -l
[stderr] + grep -v ^# trace
[stderr] + cnt=6780
[stderr] + [ 6780 -eq 0 ]
[stderr] + func=schedule
[stderr] + available_
[stderr] + [ -d ../../instances -a -f ../../available
[stderr] + available_
[stderr] + grep ^\.schedule$ available_
[stderr] + wc -l
[stderr] grep: available_
[stderr] + x=0
[stderr] + [ 0 -eq 1 ]
[stderr] + echo ** SET TRACEOFF
[stderr] + echo schedule:traceoff
[stdout] ** SET TRACEOFF
[stderr] + [ -d ../../instances ]
[stderr] + cat set_ftrace_filter
[stderr] + cur=#### all functions enabled ####
[stderr] schedule:
[stderr] + cat ../../set_
[stderr] + top=#### all functions enabled ####
[stderr] schedule:
[stderr] + [ #### all functions enabled ####
[stderr] schedule:
[stderr] schedule:
[stderr] + echo This kernel is too old to support per instance filter
[stdout] This kernel is too old to support per instance filter
[stderr] + reset_ftrace_filter
[stderr] + [ ! -f set_ftrace_filter ]
[stderr] + echo
[stderr] + grep -v+ ^#read t
[stderr] set_ftrace_filter
[stderr] + echo schedule:
[stderr] + cut -d: -f2
[stderr] + tr=traceoff
[stderr] + [ traceoff = ]
[stderr] + grep -q schedule:
[stderr] + echo schedule:
[stderr] + cut -d: -f1
[stderr] + cut -d -f1
[stderr] + name=schedule
[stderr] + [ traceoff = enable_event -o traceoff = disable_event ]
[stderr] + cut -d: -f2
[stderr] + echo schedule:
[stderr] + tr=traceoff
[stderr] + cut -d: -f3
[stderr] + echo schedule:
[stderr] + limit=unlimited
[stderr] + [ unlimited != unlimited ]
[stderr] + echo !schedule:traceoff
[stderr] + read t
[stderr] + exit_unsupported
[stderr] + kill -s 40 23805
[stderr] + exit 0
[stdout] [UNSUPPORTED]
[stdout]
[stdout]
[stdout] # of passed: 0
[stdout] # of failed: 1
[stdout] # of unresolved: 0
[stdout] # of untested: 0
[stdout] # of unsupported: 1
[stdout] # of xfailed: 0
[stdout] # of undefined(test bug): 0
tags: | added: sru-20200608 |
tags: | added: 5.3 arm64 aws sru-20200720 |
summary: |
function traceon/off triggers in ftace from ubuntu_kernel_selftests - failed on Focal + failed on Focal / B-AWS-5.3 |
summary: |
function traceon/off triggers in ftace from ubuntu_kernel_selftests - failed on Focal / B-AWS-5.3 + failed on Focal |
tags: | removed: 5.3 arm64 aws sru-20200720 |
tags: | added: hwe |
tags: | added: sru-20210412 |
tags: | added: sru-20210906 |
description: | updated |
Please find attachment for the complete test log.