summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJerin Jacob <jerin.jacob@caviumnetworks.com>2017-06-05 14:28:43 +0530
committerThomas Monjalon <thomas@monjalon.net>2017-07-03 23:58:51 +0200
commit577329e66b9f1e1c227c0f6cb76fe47bb8f8c38c (patch)
treef49cd63700c2efd452580c1f7c162695c79a3010 /test
parentad0c2413866c058370294188751f26016ff64bc9 (diff)
downloaddpdk-577329e66b9f1e1c227c0f6cb76fe47bb8f8c38c.zip
dpdk-577329e66b9f1e1c227c0f6cb76fe47bb8f8c38c.tar.gz
dpdk-577329e66b9f1e1c227c0f6cb76fe47bb8f8c38c.tar.xz
eal: switch to architecture specific pause function
Remove rte_pause() definition from rte_common.h and switchover to architecture specific rte_pause.h Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Diffstat (limited to 'test')
-rw-r--r--test/test/test_common.c1
-rw-r--r--test/test/test_cryptodev.c1
-rw-r--r--test/test/test_cryptodev_blockcipher.c1
-rw-r--r--test/test/test_distributor_perf.c1
-rw-r--r--test/test/test_eventdev_sw.c3
-rw-r--r--test/test/test_ring_perf.c1
-rw-r--r--test/test/test_timer.c1
-rw-r--r--test/test/test_timer_perf.c1
-rw-r--r--test/test/test_timer_racecond.c1
9 files changed, 10 insertions, 1 deletions
diff --git a/test/test/test_common.c b/test/test/test_common.c
index 8effa2f..6e803f5 100644
--- a/test/test/test_common.c
+++ b/test/test/test_common.c
@@ -35,6 +35,7 @@
#include <string.h>
#include <rte_common.h>
#include <rte_hexdump.h>
+#include <rte_pause.h>
#include "test.h"
diff --git a/test/test/test_cryptodev.c b/test/test/test_cryptodev.c
index f8f15c0..8766cad 100644
--- a/test/test/test_cryptodev.c
+++ b/test/test/test_cryptodev.c
@@ -35,6 +35,7 @@
#include <rte_mbuf.h>
#include <rte_malloc.h>
#include <rte_memcpy.h>
+#include <rte_pause.h>
#include <rte_crypto.h>
#include <rte_cryptodev.h>
diff --git a/test/test/test_cryptodev_blockcipher.c b/test/test/test_cryptodev_blockcipher.c
index 603c776..ce350e3 100644
--- a/test/test/test_cryptodev_blockcipher.c
+++ b/test/test/test_cryptodev_blockcipher.c
@@ -35,6 +35,7 @@
#include <rte_mbuf.h>
#include <rte_malloc.h>
#include <rte_memcpy.h>
+#include <rte_pause.h>
#include <rte_crypto.h>
#include <rte_cryptodev.h>
diff --git a/test/test/test_distributor_perf.c b/test/test/test_distributor_perf.c
index 732d86d..7d69887 100644
--- a/test/test/test_distributor_perf.c
+++ b/test/test/test_distributor_perf.c
@@ -40,6 +40,7 @@
#include <rte_common.h>
#include <rte_mbuf.h>
#include <rte_distributor.h>
+#include <rte_pause.h>
#define ITER_POWER_CL 25 /* log 2 of how many iterations for Cache Line test */
#define ITER_POWER 21 /* log 2 of how many iterations we do when timing. */
diff --git a/test/test/test_eventdev_sw.c b/test/test/test_eventdev_sw.c
index 7da6c25..ba8c053 100644
--- a/test/test/test_eventdev_sw.c
+++ b/test/test/test_eventdev_sw.c
@@ -47,8 +47,9 @@
#include <rte_debug.h>
#include <rte_ethdev.h>
#include <rte_cycles.h>
-
#include <rte_eventdev.h>
+#include <rte_pause.h>
+
#include "test.h"
#define MAX_PORTS 16
diff --git a/test/test/test_ring_perf.c b/test/test/test_ring_perf.c
index ed89896..84d2003 100644
--- a/test/test/test_ring_perf.c
+++ b/test/test/test_ring_perf.c
@@ -37,6 +37,7 @@
#include <rte_ring.h>
#include <rte_cycles.h>
#include <rte_launch.h>
+#include <rte_pause.h>
#include "test.h"
diff --git a/test/test/test_timer.c b/test/test/test_timer.c
index 2f6525a..de0c312 100644
--- a/test/test/test_timer.c
+++ b/test/test/test_timer.c
@@ -136,6 +136,7 @@
#include <rte_timer.h>
#include <rte_random.h>
#include <rte_malloc.h>
+#include <rte_pause.h>
#define TEST_DURATION_S 1 /* in seconds */
#define NB_TIMER 4
diff --git a/test/test/test_timer_perf.c b/test/test/test_timer_perf.c
index fa77efb..467ae13 100644
--- a/test/test/test_timer_perf.c
+++ b/test/test/test_timer_perf.c
@@ -42,6 +42,7 @@
#include <rte_lcore.h>
#include <rte_random.h>
#include <rte_malloc.h>
+#include <rte_pause.h>
#define MAX_ITERATIONS 1000000
diff --git a/test/test/test_timer_racecond.c b/test/test/test_timer_racecond.c
index 7824ec4..5e08f06 100644
--- a/test/test/test_timer_racecond.c
+++ b/test/test/test_timer_racecond.c
@@ -42,6 +42,7 @@
#include <rte_lcore.h>
#include <rte_random.h>
#include <rte_malloc.h>
+#include <rte_pause.h>
#undef TEST_TIMER_RACECOND_VERBOSE