diff options
author | Matias Elo <matias.elo@nokia.com> | 2021-05-27 10:51:48 +0300 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2021-05-31 16:11:27 +0300 |
commit | 13942b0348a895b65163c56f1b26d5c99c487d57 (patch) | |
tree | 200496e0bb8de74451ccfabdd112487a9a680864 | |
parent | 9887bb32615e3846d15b511b6bac26d7d1404b6c (diff) |
Port 5ea399262 "linux-gen: implement odp_thread_set_log_fn()"
Port original commit from linux-generic.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
-rw-r--r-- | platform/linux-dpdk/odp_init.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/platform/linux-dpdk/odp_init.c b/platform/linux-dpdk/odp_init.c index a827bcc9b..e8df33fae 100644 --- a/platform/linux-dpdk/odp_init.c +++ b/platform/linux-dpdk/odp_init.c @@ -13,6 +13,7 @@ #include <odp_init_internal.h> #include <odp_schedule_if.h> #include <odp_libconfig_internal.h> +#include <odp/api/plat/thread_inlines.h> #include <odp_shm_internal.h> #include <string.h> #include <stdio.h> @@ -693,3 +694,8 @@ int odp_term_local(void) { return term_local(ALL_INIT); } + +void odp_log_thread_fn_set(odp_log_func_t func) +{ + _odp_this_thread->log_fn = func; +} |