diff options
author | Christophe Milard <christophe.milard@linaro.org> | 2016-04-14 19:05:45 +0200 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2016-05-23 15:06:59 +0300 |
commit | d99ee1cde1ecedfb35993570eca52f982054c0c6 (patch) | |
tree | d0706d90b2b678ad17584022a4a16f77688f4a43 /example/time/time_global_test.c | |
parent | 39a2fbe50312ca1cbd512c9c3b0d7899b966bdf6 (diff) |
example: time: adding helper cmd line parsing
time now calls the helper command line parsing so that helper
can collect its options. Hence enabling process mode run.
Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
Reviewed-by: Brian Brooks <brian.brooks@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'example/time/time_global_test.c')
-rw-r--r-- | example/time/time_global_test.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/example/time/time_global_test.c b/example/time/time_global_test.c index df4da4e3f..372d96bb4 100644 --- a/example/time/time_global_test.c +++ b/example/time/time_global_test.c @@ -241,7 +241,7 @@ static int run_thread(void *ptr) return 0; } -int main(void) +int main(int argc, char *argv[]) { int err = 0; odp_pool_t pool = ODP_POOL_INVALID; @@ -256,6 +256,9 @@ int main(void) odp_instance_t instance; odph_odpthread_params_t thr_params; + /* let helper collect its own arguments (e.g. --odph_proc) */ + odph_parse_options(argc, argv, NULL, NULL); + printf("\nODP global time test starts\n"); if (odp_init_global(&instance, NULL, NULL)) { |