Sample the latency of memory accesses in dirty_log_perf_test and report summary stats to give a picture of the latency distribution. Specifically, focus on the right tail with the 50th, 90th, and 99th percentile reported in ns. This patch depends on my previous dirty_log_perf_test patch adding the ability to randomize memory accesses. It needs the pRNG to do random sampling. https://lore.kernel.org/kvm/20221107182208.479157-1-coltonlewis@xxxxxxxxxx/ Colton Lewis (3): KVM: selftests: Allocate additional space for latency samples KVM: selftests: Collect memory access latency samples KVM: selftests: Print summary stats of memory latency distribution .../selftests/kvm/dirty_log_perf_test.c | 2 + .../selftests/kvm/include/perf_test_util.h | 2 + .../selftests/kvm/lib/perf_test_util.c | 103 +++++++++++++++++- 3 files changed, 104 insertions(+), 3 deletions(-) -- 2.38.1.431.g37b22c650d-goog