]> git.droids-corp.org - dpdk.git/blobdiff - app/test/test_spinlock.c
app/test: check cloning a clone
[dpdk.git] / app / test / test_spinlock.c
index 9b45d8ed972d605889eef99446da935c8c227a31..16ced7fbb84dedb298f111f97b2220c1a60b67da 100644 (file)
@@ -43,7 +43,6 @@
 #include <rte_memzone.h>
 #include <rte_per_lcore.h>
 #include <rte_launch.h>
-#include <rte_tailq.h>
 #include <rte_eal.h>
 #include <rte_per_lcore.h>
 #include <rte_lcore.h>
@@ -225,7 +224,7 @@ test_spinlock_try(__attribute__((unused)) void *arg)
  * Test rte_eal_get_lcore_state() in addition to spinlocks
  * as we have "waiting" then "running" lcores.
  */
-int
+static int
 test_spinlock(void)
 {
        int ret = 0;
@@ -333,3 +332,9 @@ test_spinlock(void)
 
        return ret;
 }
+
+static struct test_command spinlock_cmd = {
+       .command = "spinlock_autotest",
+       .callback = test_spinlock,
+};
+REGISTER_TEST_COMMAND(spinlock_cmd);