linux/tools/testing/selftests
Sean Christopherson af2d85d34d KVM: selftests: Precisely track number of dirty/clear pages for each iteration
Track and print the number of dirty and clear pages for each iteration.
This provides parity between all log modes, and will allow collecting the
dirty ring multiple times per iteration without spamming the console.

Opportunistically drop the "Dirtied N pages" print, which is redundant
and wrong.  For the dirty ring testcase, the vCPU isn't guaranteed to
complete a loop.  And when the vCPU does complete a loot, there are no
guarantees that it has *dirtied* that many pages; because the writes are
to random address, the vCPU may have written the same page over and over,
i.e. only dirtied one page.

While the number of writes performed by the vCPU is also interesting,
e.g. the pr_info() could be tweaked to use different verbiage, pages_count
doesn't correctly track the number of writes either (because loops aren't
guaranteed to a complete).  Delete the print for now, as a future patch
will precisely track the number of writes, at which point the verification
phase can report the number of writes performed by each iteration.

Link: https://lore.kernel.org/r/20250111003004.1235645-6-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
2025-02-12 09:00:55 -08:00
..
acct selftests: acct: Add ksft_exit_skip if not running as root 2025-01-14 17:06:31 -07:00
alsa selftests/alsa: Fix circular dependency involving global-timer 2024-12-20 10:00:41 +01:00
amd-pstate
arm64 CRC updates for 6.14 2025-01-22 19:55:08 -08:00
bpf Provide stable parent and name to ->d_revalidate() instances 2025-01-30 09:13:35 -08:00
breakpoints
cachestat
capabilities
cgroup cgroup/cpuset: Prevent leakage of isolated CPUs into sched domains 2024-12-11 05:45:52 -10:00
clone3
connector
core
coredump selftests: coredump: Add stackdump test 2025-01-04 10:12:18 +01:00
cpu-hotplug
cpufreq selftests/cpufreq: gitignore output files and clean them in make clean 2024-12-09 17:51:41 -07:00
damon selftests/damon: remove tests for DAMON debugfs interface 2025-01-25 20:22:29 -08:00
devices
dma
dmabuf-heaps
drivers selftests: drv-net: rss_ctx: don't fail reconfigure test if queue offset not supported 2025-02-03 18:39:23 -08:00
dt
efivarfs selftests/efivarfs: add concurrent update tests 2025-01-21 16:34:41 +01:00
exec AT_EXECVE_CHECK update for v6.14-rc1 (fix1) 2025-01-31 17:12:31 -08:00
fchmodat2
filelock
filesystems selftests: always check mask returned by statmount(2) 2025-02-07 10:27:26 +01:00
firmware
fpu
ftrace tracing updates for v6.14: 2025-01-23 17:51:16 -08:00
futex
gpio selftests: gpio: gpio-sim: Fix missing chip disablements 2025-01-23 15:44:48 +01:00
hid selftests/hid: Add host-tools to .gitignore 2024-12-10 12:46:54 +01:00
ia64
intel_pstate
iommu
ipc selftests/ipc: Remove unused variables 2025-01-14 17:06:31 -07:00
ir
kcmp
kexec
kmod
kselftest AT_EXECVE_CHECK introduction for v6.14-rc1 2025-01-22 20:34:42 -08:00
kvm KVM: selftests: Precisely track number of dirty/clear pages for each iteration 2025-02-12 09:00:55 -08:00
landlock AT_EXECVE_CHECK update for v6.14-rc1 (fix1) 2025-01-31 17:12:31 -08:00
lib
livepatch selftests: livepatch: handle PRINTK_CALLER in check_result() 2025-01-27 11:41:28 +01:00
lkdtm
locking
lsm selftests: refactor the lsm `flags_overset_lsm_set_self_attr` test 2024-12-18 18:14:29 -05:00
media_tests selftest: media_tests: fix trivial UAF typo 2025-01-14 17:06:31 -07:00
membarrier
memfd selftests/memfd/memfd_test: fix possible NULL pointer dereference 2025-01-25 20:22:44 -08:00
memory-hotplug
mincore
mm selftests/mm/mkdirty: fix memory leak in test_uffdio_copy() 2025-01-25 20:22:45 -08:00
module
mount
mount_setattr
move_mount_set_group
mqueue
nci
net selftests: mptcp: connect: -f: no reconnect 2025-02-05 17:54:32 -08:00
nolibc selftests/nolibc: add configurations for riscv32 2025-01-13 22:21:34 +01:00
ntb
openat2
pci_endpoint selftests: pci_endpoint: Migrate to Kselftest framework 2025-01-21 14:17:55 -06:00
pcie_bwctrl
perf_events
pid_namespace
pidfd Mainly individually changelogged singleton patches. The patch series in 2025-01-26 17:50:53 -08:00
power_supply
powerpc selftests/powerpc: Fix argument order to timer_sub() 2025-01-11 10:39:45 +05:30
prctl
proc
pstore
ptp
ptrace
rcutorture Merge branches 'fixes.2024.12.14a', 'rcutorture.2024.12.14a', 'srcu.2024.12.14a' and 'torture-test.2024.12.14a' into rcu-merge.2024.12.14a 2024-12-14 17:32:26 +01:00
resctrl selftests/resctrl: Discover SNC kernel support and adjust messages 2025-01-14 17:06:32 -07:00
ring-buffer selftests/ring-buffer: Add test for out-of-bound pgoff mapping 2025-01-14 17:06:32 -07:00
riscv RISC-V Patches for the 6.14 Merge Window, Part 1 2025-01-31 15:13:25 -08:00
rlimits
rseq OpenRISC updates for 6.14 2025-01-25 10:16:56 -08:00
rtc
rust
safesetid
sched
sched_ext sched_ext: Changes for v6.14 2025-01-23 18:49:43 -08:00
seccomp selftests/seccomp: validate uretprobe syscall passes through seccomp 2025-02-06 13:19:14 -08:00
sgx
signal
size
sparc64
splice
static_keys
sync
syscall_user_dispatch
sysctl
tc-testing selftests/tc-testing: Add a test case for qdisc_tree_reduce_backlog() 2025-02-05 18:15:00 -08:00
tdx
thermal/intel
timens
timers selftests: timers: clocksource-switch: Adapt progress to kselftest framework 2025-01-14 17:06:31 -07:00
tmpfs selftests: tmpfs: Add kselftest support to tmpfs 2025-01-14 17:06:32 -07:00
tpm2
tty
turbostat
uevent
user_events
vDSO selftests/vDSO: support DT_GNU_HASH 2025-01-14 17:06:31 -07:00
watchdog
wireguard
x86
zram selftests/zram: gitignore output file 2025-01-14 17:06:31 -07:00
.gitignore
Makefile Char/Misc/IIO driver updates for 6.14-rc1 2025-01-27 16:51:51 -08:00
gen_kselftest_tar.sh
kselftest.h selftests: kselftest: Fix the wrong format specifier 2025-01-14 17:06:31 -07:00
kselftest_deps.sh
kselftest_harness.h selftests: harness: fix printing of mismatch values in __EXPECT() 2025-01-14 17:06:32 -07:00
kselftest_install.sh
kselftest_module.h
lib.mk
run_kselftest.sh selftests/run_kselftest.sh: Fix help string for --per-test-log 2025-01-14 17:06:32 -07:00