mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 14:00:30 +00:00
benchtests: Fixed bench-memcpy-random: buf1: mprotect failed
This patch fixed mprotect system call failure on AArch64. This failure happened on not only A64FX but also ThunderX2. Also this patch updated a JSON key from "max-size" to "length" so that 'plot_strings.py' can process 'bench-memcpy-random.out'
This commit is contained in:
parent
3856056358
commit
f12ec02f53
@ -16,7 +16,7 @@
|
||||
License along with the GNU C Library; if not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#define MIN_PAGE_SIZE (512*1024+4096)
|
||||
#define MIN_PAGE_SIZE (512*1024+getpagesize())
|
||||
#define TEST_MAIN
|
||||
#define TEST_NAME "memcpy"
|
||||
#include "bench-string.h"
|
||||
@ -160,7 +160,7 @@ do_test (json_ctx_t *json_ctx, size_t max_size)
|
||||
}
|
||||
|
||||
json_element_object_begin (json_ctx);
|
||||
json_attr_uint (json_ctx, "max-size", (double) max_size);
|
||||
json_attr_uint (json_ctx, "length", (double) max_size);
|
||||
json_array_begin (json_ctx, "timings");
|
||||
|
||||
FOR_EACH_IMPL (impl, 0)
|
||||
|
Loading…
Reference in New Issue
Block a user