X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest%2Ftest_memcpy.c;h=1d93dd53b12516b603c48a8b0f6fe08f2935eedc;hb=36135ae0943bfa87e5607a23d88adbe7d82243b7;hp=b2bb4e0e28afc2b9826ab2ab2cb433c0a28de718;hpb=bbc4d593cd6995d0d31a34fd75f4a23289fed73c;p=dpdk.git diff --git a/app/test/test_memcpy.c b/app/test/test_memcpy.c index b2bb4e0e28..1d93dd53b1 100644 --- a/app/test/test_memcpy.c +++ b/app/test/test_memcpy.c @@ -37,10 +37,7 @@ #include #include -#include #include -#include - #include #include "test.h" @@ -65,18 +62,6 @@ static size_t buf_sizes[TEST_VALUE_RANGE]; #define SMALL_BUFFER_SIZE TEST_VALUE_RANGE #endif /* TEST_VALUE_RANGE == 0 */ - -/* - * Arrays of this size are used for measuring uncached memory accesses by - * picking a random location within the buffer. Make this smaller if there are - * memory allocation errors. - */ -#define LARGE_BUFFER_SIZE (100 * 1024 * 1024) - -/* How many times to run timing loop for performance tests */ -#define TEST_ITERATIONS 1000000 -#define TEST_BATCH_SIZE 100 - /* Data is aligned on this many bytes (power of 2) */ #define ALIGNMENT_UNIT 32 @@ -174,8 +159,4 @@ test_memcpy(void) return 0; } -static struct test_command memcpy_cmd = { - .command = "memcpy_autotest", - .callback = test_memcpy, -}; -REGISTER_TEST_COMMAND(memcpy_cmd); +REGISTER_TEST_COMMAND(memcpy_autotest, test_memcpy);