OpenCloudOS-Kernel/tools/testing/selftests/ftrace/test.d/event
Krzysztof Kozlowski 07b60713b5 selftests/ftrace: fix event-no-pid on 1-core machine
When running event-no-pid test on small machines (e.g. cloud 1-core
instance), other events might not happen:

    + cat trace
    + cnt=0
    + [ 0 -eq 0 ]
    + fail No other events were recorded
    [15] event tracing - restricts events based on pid notrace filtering [FAIL]

Schedule a simple sleep task to be sure that some other process events
get recorded.

Fixes: ebed9628f5 ("selftests/ftrace: Add test to test new set_event_notrace_pid file")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2021-06-23 18:29:26 -06:00
..
event-enable.tc selftests/ftrace: Convert required interface checks into requires list 2020-06-16 10:39:20 -06:00
event-no-pid.tc selftests/ftrace: fix event-no-pid on 1-core machine 2021-06-23 18:29:26 -06:00
event-pid.tc selftests/ftrace: Convert required interface checks into requires list 2020-06-16 10:39:20 -06:00
subsystem-enable.tc selftests/ftrace: Convert required interface checks into requires list 2020-06-16 10:39:20 -06:00
toplevel-enable.tc selftests/ftrace: Convert required interface checks into requires list 2020-06-16 10:39:20 -06:00
trace_printk.tc selftests/ftrace: Add trace_printk sample module test 2018-10-24 14:49:36 -06:00