[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 26/39] tests/tcg: make test-mmap a little less aggressive
From: |
Alex Bennée |
Subject: |
[PATCH v1 26/39] tests/tcg: make test-mmap a little less aggressive |
Date: |
Tue, 6 Jul 2021 15:58:04 +0100 |
The check_aligned_anonymous_unfixed_mmaps and
check_aligned_anonymous_unfixed_colliding_mmaps do a lot of mmap's and
copying of data. This is especially unfriendly to targets like hexagon
which have quite large pages and need to do sanity checks on each
memory access.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
tests/tcg/multiarch/test-mmap.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/tcg/multiarch/test-mmap.c b/tests/tcg/multiarch/test-mmap.c
index 11d0e777b1..b77deee37e 100644
--- a/tests/tcg/multiarch/test-mmap.c
+++ b/tests/tcg/multiarch/test-mmap.c
@@ -58,12 +58,12 @@ void check_aligned_anonymous_unfixed_mmaps(void)
int i;
fprintf(stdout, "%s", __func__);
- for (i = 0; i < 0x1fff; i++)
+ for (i = 0; i < 0x1ff; i++)
{
size_t len;
len = pagesize + (pagesize * i & 7);
- p1 = mmap(NULL, len, PROT_READ,
+ p1 = mmap(NULL, len, PROT_READ,
MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
p2 = mmap(NULL, len, PROT_READ,
MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
@@ -142,7 +142,7 @@ void check_aligned_anonymous_unfixed_colliding_mmaps(void)
int i;
fprintf(stdout, "%s", __func__);
- for (i = 0; i < 0x2fff; i++)
+ for (i = 0; i < 0x2ff; i++)
{
int nlen;
p1 = mmap(NULL, pagesize, PROT_READ,
--
2.20.1
- [PATCH v1 13/39] tests/docker: remove FEATURES env var from templates, (continued)
- [PATCH v1 13/39] tests/docker: remove FEATURES env var from templates, Alex Bennée, 2021/07/06
- [PATCH v1 02/39] Jobs based on custom runners: build environment docs and playbook, Alex Bennée, 2021/07/06
- [PATCH v1 11/39] tests/docker: use project specific container registries, Alex Bennée, 2021/07/06
- [PATCH v1 34/39] docs/devel: tcg-plugins: add execlog plugin description, Alex Bennée, 2021/07/06
- [PATCH v1 32/39] contrib/plugins: enable -Wall for building plugins, Alex Bennée, 2021/07/06
- [PATCH v1 33/39] contrib/plugins: add execlog to log instruction execution and memory access, Alex Bennée, 2021/07/06
- [PATCH v1 23/39] tests/docker: expand opensuse-leap package list, Alex Bennée, 2021/07/06
- [PATCH v1 15/39] tests/docker: fix mistakes in centos package lists, Alex Bennée, 2021/07/06
- [PATCH v1 21/39] tests/docker: expand ubuntu1804 package list, Alex Bennée, 2021/07/06
- [PATCH v1 26/39] tests/tcg: make test-mmap a little less aggressive,
Alex Bennée <=
- [PATCH v1 28/39] meson.build: move TCG plugin summary output, Alex Bennée, 2021/07/06
- [PATCH v1 20/39] tests/docker: expand fedora package list, Alex Bennée, 2021/07/06
- [PATCH v1 30/39] configure: stop user enabling plugins on Windows for now, Alex Bennée, 2021/07/06
- [PATCH v1 22/39] tests/docker: expand ubuntu2004 package list, Alex Bennée, 2021/07/06
- [PATCH v1 36/39] plugins/cache: Enable cache parameterization, Alex Bennée, 2021/07/06
- [PATCH v1 16/39] tests/docker: fix mistakes in fedora package list, Alex Bennée, 2021/07/06
- [PATCH v1 19/39] tests/docker: expand centos8 package list, Alex Bennée, 2021/07/06
- [PATCH v1 39/39] MAINTAINTERS: Added myself as a reviewer for TCG Plugins, Alex Bennée, 2021/07/06