[lng-odp] [PATCHv8 07/35] validation: most tests: adding command line argument parsing

2016-05-19 Thread Christophe Milard
-by: Christophe Milard <christophe.mil...@linaro.org> --- test/validation/atomic/atomic.c | 6 +- test/validation/atomic/atomic.h | 2 +- test/validation/atomic/atomic_main.c | 4 ++-- test/validation/barrier/bar

[lng-odp] [PATCHv8 05/35] helper: test: adding odpthread functions tests

2016-05-19 Thread Christophe Milard
, or threads. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- helper/test/.gitignore | 1 + helper/test/Makefile.am | 7 ++- helper/test/odpthreads.c| 100 helper/test/odpthreads_as_processes

[lng-odp] [PATCHv8 04/35] helpers: linux: creating functions to handle odpthreads

2016-05-19 Thread Christophe Milard
). Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- helper/include/odp/helper/linux.h | 67 +- helper/linux.c| 259 ++ 2 files changed, 325 insertions(+), 1 deletion(-) diff --git a/helper/include/odp/helper/linu

[lng-odp] [PATCHv8 03/35] validation: shmem: adding command line argument parsing

2016-05-19 Thread Christophe Milard
As the test itself does not have specific args, it just calls the cunit_common parsing function to pick up cunit_common and helpers arguments. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- test/validation/shmem/shmem.c | 10 -- test/validation/shmem/s

[lng-odp] [PATCHv8 01/35] helpers: adding command line argument parsing

2016-05-19 Thread Christophe Milard
of a the command line. This parse function picks up options altering the behaviour of the helpers out of the command line, and also checks for unknown options (i.e. options not belonging to the caller set of options or to the helpers.) No helper options are definied (yet). Signed-off-by: Christophe Milard

[lng-odp] [PATCHv8 02/35] validation: common: adding command line argument parsing

2016-05-19 Thread Christophe Milard
the helper parsing function. (parsing pure cunit_commons args might be added later here if needed) Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- test/validation/common/odp_cunit_common.c | 10 ++ test/validation/common/odp_cunit_common.h | 2 ++ 2 files chang

[lng-odp] [PATCHv8 00/35] running things in process mode

2016-05-19 Thread Christophe Milard
rd/odp.git test_in_process_mode_v8 for you to fetch changes up to 53d7b188b7acfbbabcff17d6846170de55d7d911: doc: implementers-guide: adding helper recommendations (2016-05-19 17:40:34 +0200) Christophe Milard (35): helpers: adding co

[lng-odp] [PATCHv2] doc: proper definition of ODP thread

2016-05-19 Thread Christophe Milard
Making clear which ODP instance a thread is joining when calling odp_init_local(). Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- doc/glossary.adoc | 24 +--- include/odp/api/spec/init.h | 4 2 files changed, 21 insertions(+), 7 del

[lng-odp] [PATCH] doc: proper definition of ODP thread

2016-05-19 Thread Christophe Milard
Making clear which ODP instance a thread is joining when calling odp_init_local(). Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- doc/glossary.adoc | 22 +++--- include/odp/api/spec/init.h | 3 +++ 2 files changed, 18 insertions(+), 7 del

Re: [lng-odp] [PATCH 1/2] doc: userguide: add section describing helpers

2016-05-19 Thread Christophe Milard
On 19 May 2016 at 06:05, Bill Fischofer wrote: > Signed-off-by: Bill Fischofer > --- > doc/users-guide/users-guide.adoc | 11 +++ > 1 file changed, 11 insertions(+) > > diff --git a/doc/users-guide/users-guide.adoc >

Re: [lng-odp] [PATCH 2/2] doc: userguide: add notes on threads and addressing scope

2016-05-19 Thread Christophe Milard
On 19 May 2016 at 06:05, Bill Fischofer wrote: > Expand thread section to explain rationale for threads not being ODP > objects and how this relates to addressability considerations for shared > resources. > > Signed-off-by: Bill Fischofer >

Re: [lng-odp] [PATCHv7 00/35] running things in process mode

2016-05-18 Thread Christophe Milard
with merging 1-10 first, and next after that? > > Maxim. > >> >> -Original Message- >>> From: lng-odp [mailto:lng-odp-boun...@lists.linaro.org] On Behalf Of >>> Christophe Milard >>> Sent: Tuesday, May 17, 2016 4:04 PM >>> To: lng-odp@lists.linar

Re: [lng-odp] process thread and mixed mode

2016-05-18 Thread Christophe Milard
ome ODP implementations will allocate the packet at packet creation time, which may create inconsistencies between ODP implementations... I am afraid we are just seeing the top of the iceberg at this stage, but this has to be clarified now, before ODP grows even more. Christophe. > > > O

[lng-odp] [PATCHv7 35/35] doc: implementers-guide: adding helper recommendations

2016-05-17 Thread Christophe Milard
The implementation guide is updated with recommendations regarding the usage of helpers and some of its functions. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- doc/implementers-guide/implementers-guide.adoc | 32 ++ 1 file changed, 32 inse

[lng-odp] [PATCHv7 33/35] linux-generic: test: ringtest: using agnostic function for ODP threads

2016-05-17 Thread Christophe Milard
ringtest.c is changed to use the implementation agnostic ODP thread create and join functions, from helpers. ringtest is hence no longer aware on how the odpthread is implemented. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- platform/linux-generic/test/ring/ringtest.

[lng-odp] [PATCHv7 31/35] example: switch: using agnostic function for ODP threads

2016-05-17 Thread Christophe Milard
odp_switch is changed to use the implementation agnostic ODP thread create and join functions, from helpers. odp_switch is hence no longer aware on how the odpthread is implemented. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- example/switch/odp_switch.

[lng-odp] [PATCHv7 27/35] example: time: using agnostic function for ODP threads

2016-05-17 Thread Christophe Milard
time is changed to use the implementation agnostic ODP thread create and join functions, from helpers. time is hence no longer aware on how the odpthread is implemented. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- example/time/time_global_test.c | 12 ++--

[lng-odp] [PATCHv7 32/35] example: switch: adding helper cmd line parsing

2016-05-17 Thread Christophe Milard
odp_switch 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.mil...@linaro.org> --- example/switch/odp_switch.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-)

[lng-odp] [PATCHv7 26/35] example: pktio: adding helper cmd line parsing

2016-05-17 Thread Christophe Milard
pktio 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.mil...@linaro.org> --- example/packet/odp_pktio.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff

[lng-odp] [PATCHv7 34/35] linux-generic: test: ringtest: adding helper cmd line parsing

2016-05-17 Thread Christophe Milard
ringtests.c 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.mil...@linaro.org> --- platform/linux-generic/test/ring/ringtest.c | 5 - 1 file changed, 4 insertions(+), 1 de

[lng-odp] [PATCHv7 30/35] example: timer: adding helper cmd line parsing

2016-05-17 Thread Christophe Milard
timer_test 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.mil...@linaro.org> --- example/timer/odp_timer_test.c | 12 +--- 1 file changed, 9 insertions(+), 3 del

[lng-odp] [PATCHv7 29/35] example: timer: using agnostic function for ODP threads

2016-05-17 Thread Christophe Milard
timer_test is changed to use the implementation agnostic ODP thread create and join functions, from helpers. timer_test is hence no longer aware on how the odpthread is implemented. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- example/timer/odp_timer_test.

[lng-odp] [PATCHv7 28/35] example: time: adding helper cmd line parsing

2016-05-17 Thread Christophe Milard
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.mil...@linaro.org> --- example/time/time_global_test.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff

[lng-odp] [PATCHv7 25/35] example: pktio: using agnostic function for ODP threads

2016-05-17 Thread Christophe Milard
pktio is changed to use the implementation agnostic ODP thread create and join functions, from helpers. pktio is hence no longer aware on how the odpthread is implemented. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- example/packet/odp_pktio.

[lng-odp] [PATCHv7 24/35] example: l2fwd_simple: adding helper cmd line parsing

2016-05-17 Thread Christophe Milard
l2fwd_simple 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.mil...@linaro.org> --- example/l2fwd_simple/odp_l2fwd_simple.c | 32 +++- 1 file chang

[lng-odp] [PATCHv7 23/35] example: l2fwd_simple: using agnostic function for ODP threads

2016-05-17 Thread Christophe Milard
l2fwd_simple is changed to use the implementation agnostic ODP thread create and join functions, from helpers. l2fwd_simple is hence no longer aware on how the odpthread is implemented. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- example/l2fwd_simple/odp_l2fwd_si

[lng-odp] [PATCHv7 20/35] example: generator: adding helper cmd line parsing

2016-05-17 Thread Christophe Milard
odp_generator 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.mil...@linaro.org> --- example/generator/odp_generator.c | 12 +--- 1 file changed, 9 insertions(+), 3 del

[lng-odp] [PATCHv7 10/35] performance: odp_scheduling: proc mode done by helper

2016-05-17 Thread Christophe Milard
Remove the --proc option from odp_scheduling.c and use the helper functions (odph_odpthreads_create, odph_odpthreads_join) to handle odp threads. Let helper parse its command line args, hence recognising the --odph_proc option doing what --proc did. Signed-off-by: Christophe Milard

[lng-odp] [PATCHv7 22/35] example: ipsec: adding helper cmd line parsing

2016-05-17 Thread Christophe Milard
odp_ipsec 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.mil...@linaro.org> --- example/ipsec/odp_ipsec.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-)

[lng-odp] [PATCHv7 17/35] example: classifier: using agnostic function for ODP threads

2016-05-17 Thread Christophe Milard
odp_classifier is changed to use the implementation agnostic ODP thread create and join functions, from helpers. odp_classifier is hence no longer aware on how the odpthread is implemented. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- example/classifier/odp_classi

[lng-odp] [PATCHv7 18/35] example: classifier: adding helper cmd line parsing

2016-05-17 Thread Christophe Milard
odp_classifier 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.mil...@linaro.org> --- example/classifier/odp_classifier.c | 12 +--- 1 file changed, 9 insertions

[lng-odp] [PATCHv7 21/35] example: ipsec: using agnostic function for ODP threads

2016-05-17 Thread Christophe Milard
odp_ipsec is changed to use the implementation agnostic ODP thread create and join functions, from helpers. odp_ipsec is hence no longer aware on how the odpthread is implemented. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- example/ipsec/odp_ipsec.

[lng-odp] [PATCHv7 19/35] example: generator: using agnostic function for ODP threads

2016-05-17 Thread Christophe Milard
odp_generator is changed to use the implementation agnostic ODP thread create and join functions, from helpers. odp_generator is hence no longer aware on how the odpthread is implemented. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- example/generator/odp_generator.

[lng-odp] [PATCHv7 15/35] performance: crypto: using agnostic function for ODP threads

2016-05-17 Thread Christophe Milard
odp_crypto is changed to use the implementation agnostic ODP thread create and join functions, from helpers. odp_crypto is hence no longer aware on how the odpthread is implemented. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- test/performance/odp_crypto.

[lng-odp] [PATCHv7 16/35] performance: crypto: adding helper cmd line parsing

2016-05-17 Thread Christophe Milard
odp_crypto 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.mil...@linaro.org> --- test/performance/odp_crypto.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-)

[lng-odp] [PATCHv7 14/35] performance: odp_l2fwd: adding helper cmd line parsing

2016-05-17 Thread Christophe Milard
odp_l2fwd 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.mil...@linaro.org> --- test/performance/odp_l2fwd.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-)

[lng-odp] [PATCHv7 13/35] performance: odp_l2fwd: using agnostic function for ODP threads

2016-05-17 Thread Christophe Milard
odp_l2fwd is changed to use the implementation agnostic ODP thread create and join functions, from helpers. odp_l2fwd is hence no longer aware on how the odpthread is implemented. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- test/performance/odp_l2fwd.

[lng-odp] [PATCHv7 12/35] performance: odp_pktio_perf: adding helper cmd line parsing

2016-05-17 Thread Christophe Milard
odp_pktio_perf 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.mil...@linaro.org> --- test/performance/odp_pktio_perf.c | 11 +-- 1 file changed, 9 insertions(+), 2 del

[lng-odp] [PATCHv7 11/35] performance: odp_pktio_perf: using agnostic function for ODP threads

2016-05-17 Thread Christophe Milard
odp_pktio_perf is changed to use the implementation agnostic ODP thread create and join functions, from helpers. odp_pktio_perf is no longer aware on how the odpthread is implemented any longer. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- test/performance/odp_pktio_

[lng-odp] [PATCHv7 09/35] validation: pktio: adding command line argument parsing

2016-05-17 Thread Christophe Milard
As the test itself does not have specific args, it just calls the cunit_common parsing function to pick up cunit_common and helpers arguments. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- platform/linux-generic/test/pktio/pktio_run

[lng-odp] [PATCHv7 07/35] validation: most tests: adding command line argument parsing

2016-05-17 Thread Christophe Milard
-by: Christophe Milard <christophe.mil...@linaro.org> --- test/validation/atomic/atomic.c | 6 +- test/validation/atomic/atomic.h | 2 +- test/validation/atomic/atomic_main.c | 4 ++-- test/validation/barrier/bar

[lng-odp] [PATCHv7 08/35] validation: init: adding command line argument parsing

2016-05-17 Thread Christophe Milard
As the tests themselves do not have specific args, they just call the cunit_common parsing function to pick up cunit_common and helpers arguments. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- test/validation/init/init.c| 18 +++--- test/vali

[lng-odp] [PATCHv7 05/35] helper: test: adding odpthread functions tests

2016-05-17 Thread Christophe Milard
, or threads. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- helper/test/.gitignore | 1 + helper/test/Makefile.am | 7 ++- helper/test/odpthreads.c| 100 helper/test/odpthreads_as_processes

[lng-odp] [PATCHv7 06/35] validation: using implementation agnostic function for ODP threads

2016-05-17 Thread Christophe Milard
will be detected as an error on the main process at join time... Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- test/validation/atomic/atomic.c | 34 test/validation/barrier/barrier.c | 8 +++--- test/validation/common/odp_cunit_common.

[lng-odp] [PATCHv7 03/35] validation: shmem: adding command line argument parsing

2016-05-17 Thread Christophe Milard
As the test itself does not have specific args, it just calls the cunit_common parsing function to pick up cunit_common and helpers arguments. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- test/validation/shmem/shmem.c | 10 -- test/validation/shmem/s

[lng-odp] [PATCHv7 04/35] helpers: linux: creating functions to handle odpthreads

2016-05-17 Thread Christophe Milard
). Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- helper/include/odp/helper/linux.h | 67 +- helper/linux.c| 259 ++ 2 files changed, 325 insertions(+), 1 deletion(-) diff --git a/helper/include/odp/helper/linu

[lng-odp] [PATCHv7 02/35] validation: common: adding command line argument parsing

2016-05-17 Thread Christophe Milard
the helper parsing function. (parsing pure cunit_commons args might be added later here if needed) Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- test/validation/common/odp_cunit_common.c | 10 ++ test/validation/common/odp_cunit_common.h | 2 ++ 2 files chang

[lng-odp] [PATCHv7 01/35] helpers: adding command line argument parsing

2016-05-17 Thread Christophe Milard
of a the command line. This parse function picks up options altering the behaviour of the helpers out of the command line, and also checks for unknown options (i.e. options not belonging to the caller set of options or to the helpers.) No helper options are definied (yet). Signed-off-by: Christophe Milard

[lng-odp] [PATCHv7 00/35] running things in process mode

2016-05-17 Thread Christophe Milard
bb: doc: implementers-guide: adding helper recommendations (2016-05-17 14:04:41 +0200) ---- Christophe Milard (35): helpers: adding command line argument parsing validation: common: adding command line argument parsing validat

Re: [lng-odp] process thread and mixed mode

2016-05-17 Thread Christophe Milard
On 17 May 2016 at 02:09, Bill Fischofer <bill.fischo...@linaro.org> wrote: > > > On Fri, May 13, 2016 at 6:32 AM, Savolainen, Petri (Nokia - FI/Espoo) < > petri.savolai...@nokia.com> wrote: > >> >> >> >> >> *From:* Christophe Milard [mailt

Re: [lng-odp] [PATCHv6 1/2] doc: userguide: add timer/timeout state diagrams

2016-05-13 Thread Christophe Milard
For the series: Reviewed-by: Christophe Milard <christophe.mil...@linaro.org> Christophe. On 13 May 2016 at 17:01, Bill Fischofer <bill.fischo...@linaro.org> wrote: > Signed-off-by: Bill Fischofer <bill.fischo...@linaro.org> > Signed-off-by: Christophe Milard <c

Re: [lng-odp] [PATCHv2 1/2] doc: userguide: add timer/timeout state diagram

2016-05-13 Thread Christophe Milard
On 12 May 2016 at 19:44, Bill Fischofer <bill.fischo...@linaro.org> wrote: > > > On Thu, May 12, 2016 at 8:24 AM, Christophe Milard < > christophe.mil...@linaro.org> wrote: > >> Hi Bill, >> Just sent you a v4 containing my proposal regarding the FSMs and

[lng-odp] process thread and mixed mode

2016-05-13 Thread Christophe Milard
Hi, Let me start in a bit unusual way :-). I do not like my "running things in process mode" patch series that much... But I do think it should be merged. With the mixed mode. The main goal of the patch series is to push the work regarding a proper and consistent definition of some ODP low

Re: [lng-odp] [PATCHv6 12/38] helper: parsing the complete set of options

2016-05-12 Thread Christophe Milard
_odpthreads_create(). > same problem as with patch 1 and 12: Patch 1 to 10 is one group. 11 to 37 another. I hoped the cover-letter made that clear. Christophe. > > > > > > > -Petri > > > > > > *From:* lng-odp [mailto:lng-odp-boun...@lists.linaro.org]

Re: [lng-odp] [PATCHv2 1/2] doc: userguide: add timer/timeout state diagram

2016-05-12 Thread Christophe Milard
d the semantics they > need to provide in their own implementations of them. > > On Thu, May 12, 2016 at 3:13 AM, Christophe Milard < > christophe.mil...@linaro.org> wrote: > >> Hi, >> >> I am still confused with this shared FSM for the 2 distinct objects: Th

Re: [lng-odp] [PATCHv6 05/38] helpers: linux: creating functions to handle odpthreads

2016-05-12 Thread Christophe Milard
On 12 May 2016 at 13:33, Savolainen, Petri (Nokia - FI/Espoo) < petri.savolai...@nokia.com> wrote: > > > > > *From:* lng-odp [mailto:lng-odp-boun...@lists.linaro.org] *On Behalf Of > *Christophe > Milard > *Sent:* Thursday, May 12, 2016 2:14 PM > *To:* Sa

Re: [lng-odp] [PATCHv6 12/38] helper: parsing the complete set of options

2016-05-12 Thread Christophe Milard
plete picture what functions > were actually added into helper/linux.h > > > -Petri > > > > -Original Message- > > From: lng-odp [mailto:lng-odp-boun...@lists.linaro.org] On Behalf Of > > Christophe Milard > > Sent: Wednesday, May 11, 2016 7:42 PM > >

Re: [lng-odp] [PATCHv6 05/38] helpers: linux: creating functions to handle odpthreads

2016-05-12 Thread Christophe Milard
On 12 May 2016 at 10:17, Savolainen, Petri (Nokia - FI/Espoo) < petri.savolai...@nokia.com> wrote: > > > > -Original Message- > > From: lng-odp [mailto:lng-odp-boun...@lists.linaro.org] On Behalf Of > > Christophe Milard > > Sent: Wednesday, Ma

Re: [lng-odp] [PATCHv2 1/2] doc: userguide: add timer/timeout state diagram

2016-05-12 Thread Christophe Milard
ate into two > diagrams really helps but perhaps this reworked diagram is easier to follow? > > On Tue, May 10, 2016 at 3:45 AM, Christophe Milard < > christophe.mil...@linaro.org> wrote: > >> Hi Bill, >> >> Just sent you an RFC with 2 FSMs. >> Had to fig

[lng-odp] [PATCHv6 32/38] example: timer: using agnostic function for ODP threads

2016-05-11 Thread Christophe Milard
timer_test is changed to use the implementation agnostic ODP thread create and join functions, from helpers. timer_test is hence no longer aware on how the odpthread is implemented. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- example/timer/odp_timer_test.

[lng-odp] [PATCHv6 37/38] linux-generic: test: ringtest: adding helper cmd line parsing

2016-05-11 Thread Christophe Milard
ringtests.c 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.mil...@linaro.org> --- platform/linux-generic/test/ring/ringtest.c | 5 - 1 file changed, 4 insertions(+), 1 de

[lng-odp] [PATCHv6 38/38] doc: implementers-guide: adding helper recommendations

2016-05-11 Thread Christophe Milard
The implementation guide is updated with recommendations regarding the usage of helpers and some of its functions. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- doc/implementers-guide/implementers-guide.adoc | 32 ++ 1 file changed, 32 inse

[lng-odp] [PATCHv6 36/38] linux-generic: test: ringtest: using agnostic function for ODP threads

2016-05-11 Thread Christophe Milard
ringtest.c is changed to use the implementation agnostic ODP thread create and join functions, from helpers. ringtest is hence no longer aware on how the odpthread is implemented. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- platform/linux-generic/test/ring/ringtest.

[lng-odp] [PATCHv6 34/38] example: switch: using agnostic function for ODP threads

2016-05-11 Thread Christophe Milard
odp_switch is changed to use the implementation agnostic ODP thread create and join functions, from helpers. odp_switch is hence no longer aware on how the odpthread is implemented. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- example/switch/odp_switch.

[lng-odp] [PATCHv6 35/38] example: switch: adding helper cmd line parsing

2016-05-11 Thread Christophe Milard
odp_switch 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.mil...@linaro.org> --- example/switch/odp_switch.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-)

[lng-odp] [PATCHv6 33/38] example: timer: adding helper cmd line parsing

2016-05-11 Thread Christophe Milard
timer_test 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.mil...@linaro.org> --- example/timer/odp_timer_test.c | 12 +--- 1 file changed, 9 insertions(+), 3 del

[lng-odp] [PATCHv6 31/38] example: time: adding helper cmd line parsing

2016-05-11 Thread Christophe Milard
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.mil...@linaro.org> --- example/time/time_global_test.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff

[lng-odp] [PATCHv6 30/38] example: time: using agnostic function for ODP threads

2016-05-11 Thread Christophe Milard
time is changed to use the implementation agnostic ODP thread create and join functions, from helpers. time is hence no longer aware on how the odpthread is implemented. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- example/time/time_global_test.c | 12 ++--

[lng-odp] [PATCHv6 29/38] example: pktio: adding helper cmd line parsing

2016-05-11 Thread Christophe Milard
pktio 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.mil...@linaro.org> --- example/packet/odp_pktio.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff

[lng-odp] [PATCHv6 28/38] example: pktio: using agnostic function for ODP threads

2016-05-11 Thread Christophe Milard
pktio is changed to use the implementation agnostic ODP thread create and join functions, from helpers. pktio is hence no longer aware on how the odpthread is implemented. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- example/packet/odp_pktio.

[lng-odp] [PATCHv6 27/38] example: l2fwd_simple: adding helper cmd line parsing

2016-05-11 Thread Christophe Milard
l2fwd_simple 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.mil...@linaro.org> --- example/l2fwd_simple/odp_l2fwd_simple.c | 32 +++- 1 file chang

[lng-odp] [PATCHv6 26/38] example: l2fwd_simple: using agnostic function for ODP threads

2016-05-11 Thread Christophe Milard
l2fwd_simple is changed to use the implementation agnostic ODP thread create and join functions, from helpers. l2fwd_simple is hence no longer aware on how the odpthread is implemented. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- example/l2fwd_simple/odp_l2fwd_si

[lng-odp] [PATCHv6 24/38] example: ipsec: using agnostic function for ODP threads

2016-05-11 Thread Christophe Milard
odp_ipsec is changed to use the implementation agnostic ODP thread create and join functions, from helpers. odp_ipsec is hence no longer aware on how the odpthread is implemented. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- example/ipsec/odp_ipsec.

[lng-odp] [PATCHv6 25/38] example: ipsec: adding helper cmd line parsing

2016-05-11 Thread Christophe Milard
odp_ipsec 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.mil...@linaro.org> --- example/ipsec/odp_ipsec.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-)

[lng-odp] [PATCHv6 23/38] example: generator: adding helper cmd line parsing

2016-05-11 Thread Christophe Milard
odp_generator 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.mil...@linaro.org> --- example/generator/odp_generator.c | 12 +--- 1 file changed, 9 insertions(+), 3 del

[lng-odp] [PATCHv6 22/38] example: generator: using agnostic function for ODP threads

2016-05-11 Thread Christophe Milard
odp_generator is changed to use the implementation agnostic ODP thread create and join functions, from helpers. odp_generator is hence no longer aware on how the odpthread is implemented. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- example/generator/odp_generator.

[lng-odp] [PATCHv6 21/38] example: classifier: adding helper cmd line parsing

2016-05-11 Thread Christophe Milard
odp_classifier 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.mil...@linaro.org> --- example/classifier/odp_classifier.c | 12 +--- 1 file changed, 9 insertions

[lng-odp] [PATCHv6 20/38] example: classifier: using agnostic function for ODP threads

2016-05-11 Thread Christophe Milard
odp_classifier is changed to use the implementation agnostic ODP thread create and join functions, from helpers. odp_classifier is hence no longer aware on how the odpthread is implemented. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- example/classifier/odp_classi

[lng-odp] [PATCHv6 19/38] performance: crypto: adding helper cmd line parsing

2016-05-11 Thread Christophe Milard
odp_crypto 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.mil...@linaro.org> --- test/performance/odp_crypto.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-)

[lng-odp] [PATCHv6 18/38] performance: crypto: using agnostic function for ODP threads

2016-05-11 Thread Christophe Milard
odp_crypto is changed to use the implementation agnostic ODP thread create and join functions, from helpers. odp_crypto is hence no longer aware on how the odpthread is implemented. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- test/performance/odp_crypto.

[lng-odp] [PATCHv6 17/38] performance: odp_l2fwd: adding helper cmd line parsing

2016-05-11 Thread Christophe Milard
odp_l2fwd 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.mil...@linaro.org> --- test/performance/odp_l2fwd.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-)

[lng-odp] [PATCHv6 16/38] performance: odp_l2fwd: using agnostic function for ODP threads

2016-05-11 Thread Christophe Milard
odp_l2fwd is changed to use the implementation agnostic ODP thread create and join functions, from helpers. odp_l2fwd is hence no longer aware on how the odpthread is implemented. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- test/performance/odp_l2fwd.

[lng-odp] [PATCHv6 15/38] performance: odp_pktio_perf: adding helper cmd line parsing

2016-05-11 Thread Christophe Milard
odp_pktio_perf 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.mil...@linaro.org> --- test/performance/odp_pktio_perf.c | 11 +-- 1 file changed, 9 insertions(+), 2 del

[lng-odp] [PATCHv6 14/38] performance: odp_pktio_perf: using agnostic function for ODP threads

2016-05-11 Thread Christophe Milard
odp_pktio_perf is changed to use the implementation agnostic ODP thread create and join functions, from helpers. odp_pktio_perf is no longer aware on how the odpthread is implemented any longer. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- test/performance/odp_pktio_

[lng-odp] [PATCHv6 12/38] helper: parsing the complete set of options

2016-05-11 Thread Christophe Milard
options, with the opterr variable set to zero (hence ignoring helper options). Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- helper/include/odp/helper/linux.h | 16 +++- helper/linux.c| 24 +++- helpe

[lng-odp] [PATCHv6 13/38] performance: odp_scheduling: proc mode done by helper

2016-05-11 Thread Christophe Milard
Remove the --proc option from odp_scheduling.c and use the helper functions (odph_odpthreads_create, odph_odpthreads_join) to handle odp threads. Let helper parse its command line args, hence recognising the --odph_proc option doing what --proc did. Signed-off-by: Christophe Milard

[lng-odp] [PATCHv6 11/38] helper: adding a function to merge getopt parameters

2016-05-11 Thread Christophe Milard
A function merging two sets to getopt parmameters (command line argument description) into one single set is added Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- helper/include/odp/helper/linux.h | 42 ++ helper/linux.c

[lng-odp] [PATCHv6 10/38] validation: pktio: adding command line argument parsing

2016-05-11 Thread Christophe Milard
As the test itself does not have specific args, it just calls the cunit_common parsing function to pick up cunit_common and helpers arguments. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- platform/linux-generic/test/pktio/pktio_run

[lng-odp] [PATCHv6 08/38] validation: most tests: adding command line argument parsing

2016-05-11 Thread Christophe Milard
-by: Christophe Milard <christophe.mil...@linaro.org> --- test/validation/atomic/atomic.c | 6 +- test/validation/atomic/atomic.h | 2 +- test/validation/atomic/atomic_main.c | 4 ++-- test/validation/barrier/bar

[lng-odp] [PATCHv6 07/38] validation: using implementation agnostic function for ODP threads

2016-05-11 Thread Christophe Milard
will be delected as an error on the main process at join time... Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- test/validation/atomic/atomic.c | 34 test/validation/barrier/barrier.c | 8 +++--- test/validation/common/odp_cunit_common.

[lng-odp] [PATCHv6 06/38] helper: test: adding odpthread functions tests

2016-05-11 Thread Christophe Milard
, threads or both (mixed). Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- helper/test/.gitignore | 1 + helper/test/Makefile.am | 8 ++- helper/test/odpthreads.c| 100 helper/test/odpthreads_as

[lng-odp] [PATCHv6 05/38] helpers: linux: creating functions to handle odpthreads

2016-05-11 Thread Christophe Milard
. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- helper/include/odp/helper/linux.h | 28 helper/linux.c| 267 ++ 2 files changed, 295 insertions(+) diff --git a/helper/include/odp/helper/linux.h b/helper/inclu

[lng-odp] [PATCHv6 02/38] validation: common: adding command line argument parsing

2016-05-11 Thread Christophe Milard
the helper parsing function. (parsing pure cunit_commons args might be added later here if needed) Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- test/validation/common/odp_cunit_common.c | 10 ++ test/validation/common/odp_cunit_common.h | 2 ++ 2 files chang

[lng-odp] [PATCHv6 03/38] validation: shmem: adding command line argument parsing

2016-05-11 Thread Christophe Milard
As the test itself does not have specific args, it just calls the cunit_common parsing function to pick up cunit_common and helpers arguments. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- test/validation/shmem/shmem.c | 10 -- test/validation/shmem/s

[lng-odp] [PATCHv6 01/38] helpers: adding command line argument parsing

2016-05-11 Thread Christophe Milard
A function to parse options meant for the helpers out of a the command line is added. This parse function picks up options altering the behaviour of the helpers out of the command line. Other options are reject. No helper options are definied (yet). Signed-off-by: Christophe Milard

[lng-odp] [PATCHv6 00/38] running things in process mode

2016-05-11 Thread Christophe Milard
ns (2016-05-11 18:10:54 +0200) -------- Christophe Milard (38): helpers: adding command line argument parsing validation: common: adding command line argument parsing validation: shmem: adding command line argument parsing helpers: linux: cre

Re: [lng-odp] ODP Addressing Model

2016-05-10 Thread Christophe Milard
On 9 May 2016 23:54, "Bill Fischofer" wrote: > > The purpose of this thread is to summarize the discussions we've had over the past week on this topic and to foster discussion. The goal here is to reach consensus on a complete specification for ODP in this area that can

Re: [lng-odp] [PATCHv2 1/2] doc: userguide: add timer/timeout state diagram

2016-05-10 Thread Christophe Milard
both play around with graphviz and see > if a prettier diagram can be constructed that is perhaps clearer, possibly > with two separate FSMs. > > On Mon, May 9, 2016 at 9:39 AM, Christophe Milard < > christophe.mil...@linaro.org> wrote: > >> >> >> On 9 May 2016

Re: [lng-odp] [PATCHv2 1/2] doc: userguide: add timer/timeout state diagram

2016-05-09 Thread Christophe Milard
On 9 May 2016 at 16:28, Bill Fischofer <bill.fischo...@linaro.org> wrote: > > > On Mon, May 9, 2016 at 7:58 AM, Christophe Milard < > christophe.mil...@linaro.org> wrote: > >> I am a bit confused by this diagram: It feels to me that timers and >> timeout h

Re: [lng-odp] [PATCHv2 1/2] doc: userguide: add timer/timeout state diagram

2016-05-09 Thread Christophe Milard
I am a bit confused by this diagram: It feels to me that timers and timeout have separate lives (even , if of course some dependency exist). >From this diagram, it feels like these 2 separate objects (timers and time out events) share states...? do they? In my head, and from the understanding I

<    4   5   6   7   8   9   10   11   12   13   >