aboutsummaryrefslogtreecommitdiff
path: root/test/performance
diff options
context:
space:
mode:
authorPetri Savolainen <petri.savolainen@nokia.com>2015-07-09 16:46:16 +0300
committerMaxim Uvarov <maxim.uvarov@linaro.org>2015-07-23 19:21:51 +0300
commit3501aeea1b0316aa5e951e6e601b891a05e0d1c4 (patch)
tree842892b5b9b37e2a2158529f56ad7754211853dd /test/performance
parentb16afd47225ed07360bd7574ed1970ff544c5d50 (diff)
api: init: added thread type to local init
User needs to select the thread type (worker or control) of the initialized thread. Implementation may reserve HW direct access only to worker threads, while control threads share HW access, etc. Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> Conflicts: helper/linux.c
Diffstat (limited to 'test/performance')
-rw-r--r--test/performance/odp_l2fwd.c2
-rw-r--r--test/performance/odp_pktio_perf.c2
-rw-r--r--test/performance/odp_scheduling.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/test/performance/odp_l2fwd.c b/test/performance/odp_l2fwd.c
index 01cb077b0..c385444a2 100644
--- a/test/performance/odp_l2fwd.c
+++ b/test/performance/odp_l2fwd.c
@@ -372,7 +372,7 @@ int main(int argc, char *argv[])
}
/* Init this thread */
- if (odp_init_local()) {
+ if (odp_init_local(ODP_THREAD_CONTROL)) {
LOG_ERR("Error: ODP local init failed.\n");
exit(EXIT_FAILURE);
}
diff --git a/test/performance/odp_pktio_perf.c b/test/performance/odp_pktio_perf.c
index 3c5e35e34..bebbe2222 100644
--- a/test/performance/odp_pktio_perf.c
+++ b/test/performance/odp_pktio_perf.c
@@ -965,7 +965,7 @@ int main(int argc, char **argv)
if (odp_init_global(NULL, NULL) != 0)
LOG_ABORT("Failed global init.\n");
- if (odp_init_local() != 0)
+ if (odp_init_local(ODP_THREAD_CONTROL) != 0)
LOG_ABORT("Failed local init.\n");
shm = odp_shm_reserve("test_globals",
diff --git a/test/performance/odp_scheduling.c b/test/performance/odp_scheduling.c
index 4492742c3..99ff77244 100644
--- a/test/performance/odp_scheduling.c
+++ b/test/performance/odp_scheduling.c
@@ -871,7 +871,7 @@ int main(int argc, char *argv[])
* Init this thread. It makes also ODP calls when
* setting up resources for worker threads.
*/
- if (odp_init_local()) {
+ if (odp_init_local(ODP_THREAD_CONTROL)) {
LOG_ERR("ODP global init failed.\n");
return -1;
}