Re: [PATCH 3/3] test/threads: add unit test for thread API

2022-04-11 Thread Dmitry Kozlyuk
2022-04-09 01:56 (UTC-0700), Tyler Retzlaff: > On Fri, Apr 08, 2022 at 05:01:45PM +0300, Dmitry Kozlyuk wrote: > > 2022-04-01 06:29 (UTC-0700), Tyler Retzlaff: > > [...] > > > +static int > > > +test_thread_affinity(void) > > > +{ > > > + pthread_t id; > > > + rte_thread_t thread_id; > > > + > >

Re: [PATCH 3/3] test/threads: add unit test for thread API

2022-04-09 Thread Tyler Retzlaff
On Fri, Apr 08, 2022 at 05:01:45PM +0300, Dmitry Kozlyuk wrote: > 2022-04-01 06:29 (UTC-0700), Tyler Retzlaff: > [...] > > +static int > > +test_thread_affinity(void) > > +{ > > + pthread_t id; > > + rte_thread_t thread_id; > > + > > + RTE_TEST_ASSERT(pthread_create(&id, NULL, thread_main, NU

Re: [PATCH 3/3] test/threads: add unit test for thread API

2022-04-08 Thread Dmitry Kozlyuk
2022-04-01 06:29 (UTC-0700), Tyler Retzlaff: [...] > +static int > +test_thread_affinity(void) > +{ > + pthread_t id; > + rte_thread_t thread_id; > + > + RTE_TEST_ASSERT(pthread_create(&id, NULL, thread_main, NULL) == 0, > + "Failed to create thread"); > + thread_id.opaq

[PATCH 3/3] test/threads: add unit test for thread API

2022-04-01 Thread Tyler Retzlaff
Establish unit test for testing thread api. Initial unit tests for rte_thread_{get,set}_affinity_by_id(). Signed-off-by: Narcisa Vasile Signed-off-by: Tyler Retzlaff --- app/test/meson.build| 2 ++ app/test/test_threads.c | 83 + 2 files chan