Re: [PATCH 1/5] app/test-pm: add multiprocess test

2023-12-12 Thread Stephen Hemminger
On Tue, 12 Dec 2023 06:25:12 +0200 Artemy Kovalyov wrote: > +rte_atomic32_t g_count; > + > +static int > +done(const struct rte_mp_msg *msg __rte_unused, const void *arg __rte_unused) > +{ > + rte_atomic32_dec(&g_count); > + return 0; > +} Local variable, should be static. Also, assert

[PATCH 1/5] app/test-pm: add multiprocess test

2023-12-11 Thread Artemy Kovalyov
This commit adds a test scenario that initiates multiple processes concurrently. These processes attach to the same shared heap, with an automatic detection mechanism to identify the primary process. Signed-off-by: Artemy Kovalyov --- app/meson.build | 1 + app/test-mp/main.c | 49