linux-kselftest.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] ftrace/selftests: clean up failure cases
@ 2020-02-06 15:09 Alan Maguire
  2020-02-06 15:09 ` [PATCH 1/2] ftrace/selftests: workaround cgroup RT scheduling issues Alan Maguire
  2020-02-06 15:09 ` [PATCH 2/2] ftrace/selftest: absence of modules/programs should trigger unsupported errors Alan Maguire
  0 siblings, 2 replies; 10+ messages in thread
From: Alan Maguire @ 2020-02-06 15:09 UTC (permalink / raw)
  To: rostedt, shuah, mhiramat
  Cc: mingo, linux-kselftest, linux-kernel, naveen.n.rao, colin.king

When running the ftrace selftests, 2 failures and 6 unresolved
cases were observed.  The failures can be avoided by setting
a sysctl prior to test execution (fixed in patch 1) and the
unresolved cases result from absence of testing modules which
are built based on CONFIG options being set and program
availability (fixed in patch 2).

These seem more like "unsupported" than "unresolved" errors,
since for the ftrace tests "unresolved" cases cause the test
(and thus kselftest) to report failure.  With these changes
in place, the unresolved cases become unsupported and the
test failures disappear, resulting in the ftracetest program
exiting with "ok" status.

Alan Maguire (2):
  ftrace/selftests: workaround cgroup RT scheduling issues
  ftrace/selftest: absence of modules/programs should trigger
    unsupported errors

 tools/testing/selftests/ftrace/ftracetest          | 23 ++++++++++++++++++++++
 .../ftrace/test.d/direct/ftrace-direct.tc          |  2 +-
 .../ftrace/test.d/direct/kprobe-direct.tc          |  2 +-
 .../selftests/ftrace/test.d/event/trace_printk.tc  |  2 +-
 .../ftrace/test.d/ftrace/func_mod_trace.tc         |  2 +-
 .../ftrace/test.d/kprobe/kprobe_module.tc          |  2 +-
 .../selftests/ftrace/test.d/selftest/bashisms.tc   |  2 +-
 7 files changed, 29 insertions(+), 6 deletions(-)

-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-02-19  9:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-06 15:09 [PATCH 0/2] ftrace/selftests: clean up failure cases Alan Maguire
2020-02-06 15:09 ` [PATCH 1/2] ftrace/selftests: workaround cgroup RT scheduling issues Alan Maguire
2020-02-07  6:14   ` Masami Hiramatsu
2020-02-10 22:18     ` Steven Rostedt
2020-02-10 22:53       ` Masami Hiramatsu
2020-02-06 15:09 ` [PATCH 2/2] ftrace/selftest: absence of modules/programs should trigger unsupported errors Alan Maguire
2020-02-07  4:43   ` Masami Hiramatsu
2020-02-07  8:27     ` Alan Maguire
2020-02-07  8:50       ` Masami Hiramatsu
2020-02-19  9:55         ` Alan Maguire

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).