X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=blobdiff_plain;f=app%2Ftest%2Ftest_timer_perf.c;h=da924733283a21a115687495483033944ddd4b2f;hp=83bd45dcb4eca28e2fb1304c42f155231b988067;hb=942405f9e2f2c22aa817be374ccfe939a72df2ce;hpb=727909c5923147d0c7c0091a0f791432fa954431 diff --git a/app/test/test_timer_perf.c b/app/test/test_timer_perf.c index 83bd45dcb4..da92473328 100644 --- a/app/test/test_timer_perf.c +++ b/app/test/test_timer_perf.c @@ -62,7 +62,7 @@ timer_cb(struct rte_timer *t __rte_unused, void *param __rte_unused) #define do_delay() rte_pause() #endif -int +static int test_timer_perf(void) { unsigned iterations = 100; @@ -159,12 +159,9 @@ test_timer_perf(void) return 0; } -#else - -int -test_timer_perf(void) -{ - return 0; -} - +static struct test_command timer_perf_cmd = { + .command = "timer_perf_autotest", + .callback = test_timer_perf, +}; +REGISTER_TEST_COMMAND(timer_perf_cmd); #endif