ftrace test in ubuntu_kernel_selftests fails completely on E linux-kvm

Bug #1854088 reported by Sean Feole
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Fix Committed
Undecided
Po-Hsu Lin
linux (Ubuntu)
Invalid
Undecided
Unassigned
Eoan
Fix Committed
Undecided
Po-Hsu Lin

Bug Description

Kernel: 5.3.0-1008.9 linux-kvm
Series: Eoan

Test: ftrace selftest

make: Entering directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests'
make --no-builtin-rules ARCH=x86 -C ../../.. headers_install
make[1]: Entering directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux'
  INSTALL ./usr/include
make[1]: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux'
make[1]: Entering directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/ftrace'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/ftrace'
make[1]: Entering directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/ftrace'
TAP version 13
1..1
# selftests: ftrace: ftracetest
# === Ftrace unit tests ===
# [1] Basic trace file check [FAIL]
# [2] Basic test for tracers [FAIL]
# [3] Basic trace clock test [FAIL]
# [4] Basic event tracing check [FAIL]
# [5] Change the ringbuffer size [FAIL]
# [6] Snapshot and tracing setting [FAIL]
# [7] trace_pipe and trace_marker [FAIL]
# [8] Generic dynamic event - add/remove kprobe events [FAIL]
# [9] Generic dynamic event - add/remove synthetic events [FAIL]
# [10] Generic dynamic event - selective clear (compatibility) [FAIL]
# [11] Generic dynamic event - generic clear event [FAIL]
# [12] event tracing - enable/disable with event level files [FAIL]
# [13] event tracing - restricts events based on pid [FAIL]
# [14] event tracing - enable/disable with subsystem level files [FAIL]
# [15] event tracing - enable/disable with top level files [FAIL]
# [16] Test trace_printk from module [FAIL]
# [17] ftrace - function graph filters with stack tracer [FAIL]
# [18] ftrace - function graph filters [FAIL]
# [19] ftrace - function pid filters [FAIL]
# [20] ftrace - stacktrace filter command [FAIL]
# [21] ftrace - function trace with cpumask [FAIL]
# [22] ftrace - test for function event triggers [FAIL]
# [23] ftrace - function trace on module [FAIL]
# [24] ftrace - function profiling [FAIL]
# [25] ftrace - function profiler with function tracing [FAIL]
# [26] ftrace - test reading of set_ftrace_filter [FAIL]
# [27] ftrace - test for function traceon/off triggers [FAIL]
# [28] ftrace - test tracing error log support [FAIL]
# [29] Test creation and deletion of trace instances while setting an event [FAIL]
# [30] Test creation and deletion of trace instances [FAIL]
# [31] Kprobe dynamic event - adding and removing [FAIL]
# [32] Kprobe dynamic event - busy event check [FAIL]
# [33] Kprobe dynamic event with arguments [FAIL]
# [34] Kprobe event with comm arguments [FAIL]
# [35] Kprobe event string type argument [FAIL]
# [36] Kprobe event symbol argument [FAIL]
# [37] Kprobe event argument syntax [FAIL]
# [38] Kprobes event arguments with types [FAIL]
# [39] Kprobe event user-memory access [FAIL]
# [40] Kprobe event auto/manual naming [FAIL]
# [41] Kprobe dynamic event with function tracer [FAIL]
# [42] Kprobe event parser error log check [FAIL]
# [43] Kretprobe dynamic event with arguments [FAIL]
# [44] Kretprobe dynamic event with maxactive [FAIL]
# [45] Register/unregister many kprobe events [FAIL]
# [46] Kprobe dynamic event - adding and removing [FAIL]
# [47] Uprobe event parser error log check [FAIL]
# [48] test for the preemptirqsoff tracer [FAIL]
# [49] Meta-selftest [FAIL]
# [50] Test wakeup tracer [FAIL]
# [51] Test wakeup RT tracer [FAIL]
# [52] event trigger - test inter-event histogram trigger expected fail actions [FAIL]
# [53] event trigger - test field variable support [FAIL]
# [54] event trigger - test multiple actions on hist trigger [FAIL]
# [55] event trigger - test inter-event histogram trigger onchange action [FAIL]
# [56] event trigger - test inter-event histogram trigger onmatch action [FAIL]
# [57] event trigger - test inter-event histogram trigger onmatch-onmax action [FAIL]
# [58] event trigger - test inter-event histogram trigger onmax action [FAIL]
# [59] event trigger - test inter-event histogram trigger snapshot action [FAIL]
# [60] event trigger - test synthetic_events syntax parser [FAIL]
# [61] event trigger - test inter-event histogram trigger trace action [FAIL]
# [62] event trigger - test event enable/disable trigger [FAIL]
# [63] event trigger - test trigger filter [FAIL]
# [64] event trigger - test histogram modifiers [FAIL]
# [65] event trigger - test multiple histogram triggers [FAIL]
# [66] event trigger - test snapshot-trigger [FAIL]
# [67] event trigger - test stacktrace-trigger [FAIL]
# [68] trace_marker trigger - test snapshot trigger [FAIL]
# [69] trace_marker trigger - test histogram with synthetic event against kernel event [FAIL]
# [70] trace_marker trigger - test histogram with synthetic event [FAIL]
# [71] event trigger - test traceon/off trigger [FAIL]
# [72] (instance) Basic test for tracers [FAIL]
# [73] (instance) Basic trace clock test [FAIL]
# [74] (instance) Change the ringbuffer size [FAIL]
# [75] (instance) Snapshot and tracing setting [FAIL]
# [76] (instance) trace_pipe and trace_marker [FAIL]
# [77] (instance) event tracing - enable/disable with event level files [FAIL]
# [78] (instance) event tracing - restricts events based on pid [FAIL]
# [79] (instance) event tracing - enable/disable with subsystem level files [FAIL]
# [80] (instance) ftrace - stacktrace filter command [FAIL]
# [81] (instance) ftrace - test for function event triggers [FAIL]
# [82] (instance) ftrace - test for function traceon/off triggers [FAIL]
# [83] (instance) event trigger - test event enable/disable trigger [FAIL]
# [84] (instance) event trigger - test trigger filter [FAIL]
# [85] (instance) event trigger - test histogram modifiers [FAIL]
# [86] (instance) event trigger - test multiple histogram triggers [FAIL]
# [87] (instance) trace_marker trigger - test snapshot trigger [FAIL]
# ./ftracetest: 49: cannot create set_ftrace_filter: Permission denied
# grep: set_ftrace_filter: No such file or directory
#
# # of passed: 0
# # of failed: 87
# # of unresolved: 0
# # of untested: 0
# # of unsupported: 0
# # of xfailed: 0
# # of undefined(test bug): 0
not ok 1 selftests: ftrace: ftracetest # exit=1
make[1]: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/ftrace'
make: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests'

After attempting to run this manually the logs, (attached to this bug) all are appended with:
./ftracetest: 49: cannot create set_ftrace_filter: Permission denied

Revision history for this message
Sean Feole (sfeole) wrote :
Sean Feole (sfeole)
tags: added: eoan linux-kvm ubuntu-kernel-selftests
Revision history for this message
Sean Feole (sfeole) wrote :

also on 5.3.0-1009.10

Changed in ubuntu-kernel-tests:
status: Confirmed → Triaged
tags: added: sru-20191202
Sean Feole (sfeole)
tags: added: sru-20200127
Po-Hsu Lin (cypressyew)
summary: - ftracetest fails completely on E linux-kvm
+ ftrace test in ubuntu_kernel_selftests fails completely on E linux-kvm
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1854088

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Changed in linux (Ubuntu Eoan):
status: New → Incomplete
Po-Hsu Lin (cypressyew)
Changed in linux (Ubuntu Eoan):
assignee: nobody → Po-Hsu Lin (cypressyew)
Changed in ubuntu-kernel-tests:
assignee: nobody → Po-Hsu Lin (cypressyew)
status: Triaged → In Progress
Changed in linux (Ubuntu Eoan):
status: Incomplete → In Progress
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

A reverse-bisect shows this is the fix:
$ git bisect bad
fd1baf6ca2ea3550ea47f2bb0bdcf34ec764a779 is the first bad commit
commit fd1baf6ca2ea3550ea47f2bb0bdcf34ec764a779
Author: Masami Hiramatsu <email address hidden>
Date: Tue Nov 26 17:34:16 2019 +0900

    selftests/ftrace: Fix to check the existence of set_ftrace_filter

    If we run ftracetest on the kernel with CONFIG_DYNAMIC_FTRACE=n,
    there is no set_ftrace_filter and all test cases are failed, because
    reset_ftrace_filter() returns an error.
    Let's check whether set_ftrace_filter exists in reset_ftrace_filter()
    and clean up only set_ftrace_notrace in initialize_ftrace().

    Signed-off-by: Masami Hiramatsu <email address hidden>
    Reviewed-by: Steven Rostedt (VMware) <email address hidden>
    Signed-off-by: Shuah Khan <email address hidden>

:040000 040000 26f63a58746852733f69f3e424bbb4d4be4cbcea a8bcc80a6aeb85f28152d41baf21137cfea7d34e M tools

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

This patch has been applied to master-next via stable update process (bug 1861929)

Mark this as duplicated for tracking purpose.

Changed in ubuntu-kernel-tests:
status: In Progress → Fix Committed
Changed in linux (Ubuntu Eoan):
status: In Progress → Fix Committed
Changed in linux (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.