[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v8 6/6] tests/tcg/multiarch: add test for plugin memory acces
From: |
Alex Bennée |
Subject: |
Re: [PATCH v8 6/6] tests/tcg/multiarch: add test for plugin memory access |
Date: |
Wed, 11 Sep 2024 18:13:29 +0100 |
User-agent: |
mu4e 1.12.6; emacs 29.4 |
Pierrick Bouvier <pierrick.bouvier@linaro.org> writes:
> Add an explicit test to check expected memory values are read/written.
> 8,16,32 load/store are tested for all arch.
> 64,128 load/store are tested for aarch64/x64.
> atomic operations (8,16,32,64) are tested for x64 only.
>
> By default, atomic accesses are non atomic if a single cpu is running,
> so we force creation of a second one by creating a new thread first.
>
> load/store helpers code path can't be triggered easily in user mode (no
> softmmu), so we can't test it here.
>
> Output of test-plugin-mem-access.c is the list of expected patterns in
> plugin output. By reading stdout, we can compare to plugins output and
> have a multiarch test.
>
> Can be run with:
> make -C build/tests/tcg/$ARCH-linux-user
> run-plugin-test-plugin-mem-access-with-libmem.so
Queued to plugins/next, thanks.
--
Alex Bennée
Virtualisation Tech Lead @ Linaro
- [PATCH v8 0/6] plugins: access values during a memory read/write, Pierrick Bouvier, 2024/09/10
- [PATCH v8 1/6] plugins: save value during memory accesses, Pierrick Bouvier, 2024/09/10
- [PATCH v8 2/6] plugins: extend API to get latest memory value accessed, Pierrick Bouvier, 2024/09/10
- [PATCH v8 3/6] tests/tcg: add mechanism to run specific tests with plugins, Pierrick Bouvier, 2024/09/10
- [PATCH v8 6/6] tests/tcg/multiarch: add test for plugin memory access, Pierrick Bouvier, 2024/09/10
- Re: [PATCH v8 6/6] tests/tcg/multiarch: add test for plugin memory access,
Alex Bennée <=
- [PATCH v8 4/6] tests/tcg: allow to check output of plugins, Pierrick Bouvier, 2024/09/10
- [PATCH v8 5/6] tests/tcg/plugins/mem: add option to print memory accesses, Pierrick Bouvier, 2024/09/10