From: Benjamin Gray <bgray@linux.ibm.com>
To: linuxppc-dev@lists.ozlabs.org
Cc: Benjamin Gray <bgray@linux.ibm.com>
Subject: [PATCH v2 0/7] Update DSCR tests
Date: Thu, 6 Apr 2023 14:33:13 +1000 [thread overview]
Message-ID: <20230406043320.125138-1-bgray@linux.ibm.com> (raw)
The randomness based DSCR tests currently have a low probability of doing
any writes to the DSCR, making them inefficient in uncovering bugs.
This series adds lockstep variants to these RNG tests, to ensure the happy
path is always tested, and improves the randomness and size of the RNG
tests.
It also removes many iterations of the sysfs DSCR test, allowing the default
timeout to be re-enabled.
v2: * Pull bind_to_cpu() out to utils.c and allow an automatically
determined CPU selection.
Previous versions:
v1: https://lore.kernel.org/all/20230307005515.174362-1-bgray@linux.ibm.com/
Benjamin Gray (7):
selftests/powerpc/dscr: Correct typos
selftests/powerpc: Move bind_to_cpu() to utils.h
selftests/powerpc: Allow bind_to_cpu() to automatically pick CPU
selftests/powerpc/dscr: Add lockstep test cases to DSCR explicit tests
selftests/powerpc/dscr: Improve DSCR explicit random test case
selftests/powerpc/dscr: Speed up DSCR sysfs tests
selftests/powerpc/dscr: Restore timeout to DSCR selftests
tools/testing/selftests/powerpc/dscr/Makefile | 3 +-
tools/testing/selftests/powerpc/dscr/dscr.h | 4 -
.../powerpc/dscr/dscr_default_test.c | 207 +++++++++++-------
.../powerpc/dscr/dscr_explicit_test.c | 169 +++++++++++---
.../powerpc/dscr/dscr_inherit_test.c | 4 +-
.../selftests/powerpc/dscr/dscr_sysfs_test.c | 11 +-
.../selftests/powerpc/dscr/dscr_user_test.c | 4 +-
tools/testing/selftests/powerpc/dscr/settings | 1 -
.../testing/selftests/powerpc/include/utils.h | 3 +
.../pmu/ebb/cpu_event_pinned_vs_ebb_test.c | 3 +-
.../powerpc/pmu/ebb/cpu_event_vs_ebb_test.c | 3 +-
.../powerpc/pmu/ebb/ebb_vs_cpu_event_test.c | 3 +-
.../powerpc/pmu/ebb/multi_ebb_procs_test.c | 6 +-
tools/testing/selftests/powerpc/pmu/lib.c | 19 +-
tools/testing/selftests/powerpc/pmu/lib.h | 1 -
tools/testing/selftests/powerpc/utils.c | 23 ++
16 files changed, 303 insertions(+), 161 deletions(-)
delete mode 100644 tools/testing/selftests/powerpc/dscr/settings
--
2.39.2
next reply other threads:[~2023-04-06 4:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-06 4:33 Benjamin Gray [this message]
2023-04-06 4:33 ` [PATCH v2 1/7] selftests/powerpc/dscr: Correct typos Benjamin Gray
2023-04-06 4:33 ` [PATCH v2 2/7] selftests/powerpc: Move bind_to_cpu() to utils.h Benjamin Gray
2023-04-06 4:33 ` [PATCH v2 3/7] selftests/powerpc: Allow bind_to_cpu() to automatically pick CPU Benjamin Gray
2023-04-06 4:33 ` [PATCH v2 4/7] selftests/powerpc/dscr: Add lockstep test cases to DSCR explicit tests Benjamin Gray
2023-04-06 4:33 ` [PATCH v2 5/7] selftests/powerpc/dscr: Improve DSCR explicit random test case Benjamin Gray
2023-04-06 4:33 ` [PATCH v2 6/7] selftests/powerpc/dscr: Speed up DSCR sysfs tests Benjamin Gray
2023-04-06 4:33 ` [PATCH v2 7/7] selftests/powerpc/dscr: Restore timeout to DSCR selftests Benjamin Gray
2023-04-26 12:01 ` [PATCH v2 0/7] Update DSCR tests Michael Ellerman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230406043320.125138-1-bgray@linux.ibm.com \
--to=bgray@linux.ibm.com \
--cc=linuxppc-dev@lists.ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).