*** This bug is a duplicate of bug 1861929 ***
    https://bugs.launchpad.net/bugs/1861929

A reverse-bisect shows this is the fix:
$ git bisect bad
fd1baf6ca2ea3550ea47f2bb0bdcf34ec764a779 is the first bad commit
commit fd1baf6ca2ea3550ea47f2bb0bdcf34ec764a779
Author: Masami Hiramatsu <mhira...@kernel.org>
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 <mhira...@kernel.org>
    Reviewed-by: Steven Rostedt (VMware) <rost...@goodmis.org>
    Signed-off-by: Shuah Khan <sk...@linuxfoundation.org>

:040000 040000 26f63a58746852733f69f3e424bbb4d4be4cbcea
a8bcc80a6aeb85f28152d41baf21137cfea7d34e M      tools

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1854088

Title:
  ftrace test in ubuntu_kernel_selftests fails completely on E linux-kvm

Status in ubuntu-kernel-tests:
  Fix Committed
Status in linux package in Ubuntu:
  Invalid
Status in linux source package in Eoan:
  Fix Committed

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/1854088/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to