[PATCH v3] Add random memcpy test
Steve Ellcey
sellcey@caviumnetworks.com
Mon Mar 27 20:53:00 GMT 2017
On Mon, 2017-03-27 at 12:57 -0700, Steve Ellcey wrote:
>Â
> I see the bench-memcpy-random.c file now but I think there is still
> something wrong. Â I am using a glibc that has my aarch64 IFUNC version
> of memcpy and memmove implemented in it but I do not get measurements
> of the different implementations for the random memcpy test like I do
> for the other two memcpy tests.
Here is a patch so that bench-memcpy-random.c prints out timings for
all the IFUNC versions of memcpy. Â The TEST_NAME change is clear,
TEST_NAME isn't really the name of the test but the name of the routine
being tested. Â If you call it memcpy-random it looks for IFUNC versions
of the memcpy-random function instead of the memcpy function. Â I also
changed the IMPL call to have 1 instead of 0 as the second argument. Â I
don't really understand this change, but it is what the other two
memcpy tests do so I copied them and it seems to work. Â Tested on x86
and aarch64.
Steve Ellcey
sellcey@cavium.com
2017-03-27  Steve Ellcey  <sellcey@caviumnetworks.com>
* benchtests/bench-memcpy-random.c (TEST_NAME): Change to memcpy.
(IMPL) Call with 1 instead of 0 as argument.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bench-memcpy-random.diff
Type: text/x-patch
Size: 438 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20170327/0c8f8d0c/attachment.bin>
More information about the Libc-alpha
mailing list