xemu/tests
Alex Bennée ecbcc9ead2 tests/tcg: add a system test to check memory instrumentation
At first I thought I could compile the user-mode test for system mode
however we already have a fairly comprehensive test case for system
mode in "memory" so lets use that.

As tracking every access will quickly build up with "print-access" we
add a new mode to track groups of reads and writes to regions. Because
the test_data is 16k aligned we can be sure all accesses to it are
ones we can count.

First we extend the test to report where the test_data region is. Then
we expand the pdot() function to track the total number of reads and
writes to the region. We have to add some addition pdot() calls to
take into account multiple reads/writes in the test loops.

Finally we add a python script to integrate the data from the plugin
and the output of the test and validate they both agree on the total
counts. As some boot codes clear the bss we also add a flag to add a
regions worth of writes to the expected total.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Message-Id: <20240916085400.1046925-14-alex.bennee@linaro.org>
2024-09-19 15:58:01 +01:00
..
avocado machine_aspeed.py: Update to test I2C for AST2700 2024-09-16 17:44:08 +02:00
bench qapi/crypto: Rename QCryptoRSAPaddingAlgorithm to *Algo, and drop prefix 2024-09-10 14:03:30 +02:00
data tests/acpi: update aarch64/virt/SSDT.memhp 2024-09-17 10:26:27 +02:00
decode tests/: spelling fixes 2023-09-08 13:08:52 +03:00
docker buildsys: Remove CRIS cross container 2024-09-13 20:10:50 +02:00
fp tests/fp: Make mul and div tests have a longer timeout 2024-09-18 20:58:43 +01:00
functional tests/functional: Move the mips64el fuloong2e test into the thorough category 2024-09-17 10:52:44 +02:00
guest-debug tests/guest-debug: Support passing arguments to the GDB test script 2024-09-10 23:33:55 +01:00
image-fuzzer image-fuzzer: Use OSerror.strerror instead of tuple subscript 2019-11-05 16:36:11 +01:00
include tests: add missing generated sources to testqapi 2020-10-17 10:45:50 -04:00
keys tests/vm: Add Haiku test based on their vagrant images 2020-11-17 09:45:24 +01:00
lcitool * Split --enable-sanitizers to --enable-{asan, ubsan} 2024-09-11 19:28:23 +01:00
migration tests/qtest/migration-test: Use custom asm bios for ppc64 2024-06-14 14:01:23 -03:00
multiboot Remove superfluous .gitignore files 2020-10-13 12:48:17 +02:00
perf/block/qcow2 tests/perf: Test lseek influence on qcow2 block-status 2019-06-04 15:20:41 +02:00
qapi-schema tests/qapi-schema: Drop temporary 'prefix' 2024-09-10 13:22:47 +02:00
qemu-iotests iotests: fix expected output from gnutls 2024-09-09 15:13:38 +01:00
qtest tests/qtest/migration: Move a couple of slow tests under g_test_slow 2024-09-17 17:50:45 -04:00
rocker tests: Avoid non-portable 'echo -ARG' 2017-07-11 17:45:00 +02:00
tcg tests/tcg: add a system test to check memory instrumentation 2024-09-19 15:58:01 +01:00
tsan block: remove AioContext locking 2023-12-21 22:49:27 +01:00
uefi-test-tools tests/data/uefi-boot-images: Add RISC-V ISO image 2024-07-03 18:14:06 -04:00
unit tests/unit: replace assert(0) with g_assert_not_reached() 2024-09-17 10:50:39 +02:00
vm Update FreeBSD CI jobs FreeBSD 14.1 2024-09-11 11:26:41 +02:00
vmstate-static-checker-data hw: Replace anti-social QOM type names 2021-03-19 15:18:43 +01:00
Makefile.include tests/functional: enable pre-emptive caching of assets 2024-09-04 10:52:29 +02:00
dbus-vmstate-daemon.sh tests: add dbus-vmstate-test 2020-01-06 18:41:32 +04:00
meson.build tests/functional: Prepare the meson build system for the functional tests 2024-09-04 10:52:29 +02:00
test-qht-par.c
vhost-user-bridge.c error handling: Use RETRY_ON_EINTR() macro where applicable 2023-01-09 13:50:47 +01:00