devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] of: unittest: option to allow tests that trigger kernel stack dump
@ 2023-03-01  1:21 Frank Rowand
  2023-03-01  1:21 ` [PATCH 1/2] " Frank Rowand
  2023-03-01  1:21 ` [PATCH 2/2] of: unittest: add of_unittest_stackdump to kernel documentation Frank Rowand
  0 siblings, 2 replies; 7+ messages in thread
From: Frank Rowand @ 2023-03-01  1:21 UTC (permalink / raw)
  To: Rob Herring, Guenter Roeck, Jonathan Corbet
  Cc: devicetree, linux-kernel, linux-doc

Commit 74df14cd301a ("of: unittest: add node lifecycle tests") added
some tests that trigger a kernel stack dump.  Filtering the boot
messages with scripts/dtc/of_unittest_expect detects that the stack
dump is expected instead of being a test error.

Test beds might interpret the stack dumps as errors, resulting in
needless debugging and error reports.  These test beds are likely
to remove unittests due to these stack dumps. To avoid these problems,
have the unittest default to skip the tests that trigger a stack dump.

Add a kernel cmdline option to not skip those tests.  This option can
be used by testers who are able to interpret the stack dumps as not
an error.

Frank Rowand (2):
  of: unittest: option to allow tests that trigger kernel stack dump
  of: unittest: add of_unittest_stackdump to kernel documentation

 .../admin-guide/kernel-parameters.txt         |  4 ++
 drivers/of/unittest.c                         | 54 +++++++++++++++++--
 2 files changed, 55 insertions(+), 3 deletions(-)

-- 
Frank Rowand <frowand.list@gmail.com>


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

end of thread, other threads:[~2023-03-26  0:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-01  1:21 [PATCH 0/2] of: unittest: option to allow tests that trigger kernel stack dump Frank Rowand
2023-03-01  1:21 ` [PATCH 1/2] " Frank Rowand
2023-03-01  4:07   ` Guenter Roeck
2023-03-01 16:01     ` Frank Rowand
2023-03-24 21:43       ` Rob Herring
2023-03-26  0:56         ` Frank Rowand
2023-03-01  1:21 ` [PATCH 2/2] of: unittest: add of_unittest_stackdump to kernel documentation Frank Rowand

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).