DPDK patches and discussions
 help / color / mirror / Atom feed
From: Andre Muezerie <andremue@linux.microsoft.com>
To: David Marchand <david.marchand@redhat.com>
Cc: dev@dpdk.org, "Thomas Monjalon" <thomas@monjalon.net>,
	"Bruce Richardson" <bruce.richardson@intel.com>,
	"Stephen Hemminger" <stephen@networkplumber.org>,
	"Morten Brørup" <mb@smartsharesystems.com>,
	"Chengwen Feng" <fengchengwen@huawei.com>
Subject: Re: [PATCH v6 00/10] enable "app" to be compiled with MSVC
Date: Fri, 11 Apr 2025 17:04:40 -0700	[thread overview]
Message-ID: <20250412000440.GA13968@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> (raw)
In-Reply-To: <CAJFAV8yhcDpvmBnCXtUw=z-+Hhz1DdzH=gWr+L3+dF4thUO0iw@mail.gmail.com>

On Fri, Apr 11, 2025 at 08:49:40AM +0200, David Marchand wrote:
> Hello Andre,
> 
> On Mon, Feb 24, 2025 at 5:25 PM Andre Muezerie
> <andremue@linux.microsoft.com> wrote:
> >
> > v6:
> > - remove "volatile" and use rte_atomic_xxx to access the RTE_ATOMIC
> >   qualified lcore_count, which is cleaner than using "volatile".
> >
> > v5:
> > - add "volatile" to declaration of lcore_count in test_ring_perf.c.
> >
> > v4:
> > - add explanation about the expression used in __rte_constant during v3.
> >
> > v3:
> > - use clever expression with _Generic for __rte_constant and use it
> >   where __builtin_constant_p was being used.
> > - use %u in csumonly.c and just cast variables to unsigned int.
> >
> > v2:
> > - use lcore_count as atomic always, not only when RTE_USE_C11_MEM_MODEL
> >   is set.
> > - use PRIu64 in csumonly.c instead of casting variables to int.
> >
> > Andre Muezerie (10):
> >   eal: add workaround for __builtin_constant_p
> >   test_alarm: avoid warning about different qualifiers
> >   test-pmd: fix printf format string mismatch
> >   test-pmd: do explicit 64-bit shift to avoid implicit conversion
> >   test-pmd: avoid undefined behavior
> >   test-pmd: avoid non-constant initializer
> >   test-pmd: don't return value from void function
> >   test/test-pmd: declare lcore_count atomic
> >   test: add workaround for __builtin_constant_p in test_memcpy_perf
> >   app: enable app directory to be compiled with MSVC
> >
> >  app/meson.build                     |  4 ---
> >  app/test-pmd/cmdline.c              | 16 +++++----
> >  app/test-pmd/cmdline_flow.c         | 22 ++++++------
> >  app/test-pmd/csumonly.c             | 23 ++++++------
> >  app/test-pmd/meson.build            |  1 -
> >  app/test-pmd/testpmd.c              |  2 +-
> >  app/test-pmd/testpmd.h              |  2 ++
> >  app/test-pmd/util.c                 |  2 +-
> >  app/test/test_alarm.c               | 12 +++----
> >  app/test/test_memcpy_perf.c         | 54 ++++++++++++++---------------
> >  app/test/test_ring_perf.c           | 13 +++----
> >  lib/eal/include/generic/rte_pause.h |  2 +-
> >  lib/eal/include/rte_common.h        | 34 +++++++++++++++++-
> >  13 files changed, 109 insertions(+), 78 deletions(-)
> 
> I replaced patch 5 with the alternative that I sent yesterday.
> Series applied.
> 
> We now have dpdk-test and dpdk-testpmd built with MSVC in the CI.
> We are still missing net/null and mempool/ring to do some basic test
> like devtools/test-null.sh.
> On the other hand, what prevents us from running the fast-tests
> testsuite in the CI?
> 

We are certainly close to the point where fast-tests testsuite can be run.
On my machine, with some fixes that are still under review, I'm seeing all
tests passing or getting skipped, except for memzone_autotest, which I also
see failing on Linux when the same parameters are used. So this test failure
does not look like is msvc-specific.

meson test -C build --suite fast-tests --test-args="--no-huge -m 8192" -t 4
…
56/93 DPDK:fast-tests / memzone_autotest                       FAIL            0.12s   (exit status 4294967295 or signal 4294967167 SIGinvalid)
>>> DPDK_TEST=memzone_autotest MESON_TEST_ITERATION=1 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 MALLOC_PERTURB_=87 MSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 V:\github\dpdk13_drivers_used_vars\dpdk\build\app\dpdk-test.exe --no-huge -m 8192
Ok:                 73
Expected Fail:      0
Fail:               1
Unexpected Pass:    0
Skipped:            19
Timeout:            0

When running the same command on "main" branch I see less tests running and
more failures.
--
Andre Muezerie

> 
> -- 
> David Marchand

      reply	other threads:[~2025-04-12  0:04 UTC|newest]

Thread overview: 112+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-11 22:01 [PATCH " Andre Muezerie
2025-02-11 22:01 ` [PATCH 01/10] eal: add workaround for __builtin_constant_p Andre Muezerie
2025-02-11 22:09   ` Stephen Hemminger
2025-02-12  0:59   ` fengchengwen
2025-02-11 22:01 ` [PATCH 02/10] test_alarm: avoid warning about different qualifiers Andre Muezerie
2025-02-12  0:59   ` fengchengwen
2025-02-11 22:01 ` [PATCH 03/10] test-pmd: fix printf format string mismatch Andre Muezerie
2025-02-11 22:10   ` Stephen Hemminger
2025-02-12  1:01   ` fengchengwen
2025-02-11 22:02 ` [PATCH 04/10] test-pmd: do explicit 64-bit shift to avoid implicit conversion Andre Muezerie
2025-02-12  1:03   ` fengchengwen
2025-02-11 22:02 ` [PATCH 05/10] test-pmd: avoid undefined behavior Andre Muezerie
2025-02-12  1:04   ` fengchengwen
2025-02-11 22:02 ` [PATCH 06/10] test-pmd: avoid non-constant initializer Andre Muezerie
2025-02-12  1:04   ` fengchengwen
2025-02-11 22:02 ` [PATCH 07/10] test-pmd: don't return value from void function Andre Muezerie
2025-02-12  1:10   ` fengchengwen
2025-02-11 22:02 ` [PATCH 08/10] test-pmd: declare lcore_count atomic when using C11 memory model Andre Muezerie
2025-02-11 22:12   ` Stephen Hemminger
2025-02-12  1:16     ` Andre Muezerie
2025-02-12  1:16   ` fengchengwen
2025-02-11 22:02 ` [PATCH 09/10] test: add workaround for __builtin_constant_p in test_memcpy_perf Andre Muezerie
2025-02-11 22:13   ` Stephen Hemminger
2025-02-12  2:07     ` Andre Muezerie
2025-02-18 15:35 ` [PATCH 00/10] enable "app" to be compiled with MSVC David Marchand
2025-02-18 16:31 ` [PATCH v2 " Andre Muezerie
2025-02-18 16:32   ` [PATCH v2 01/10] eal: add workaround for __builtin_constant_p Andre Muezerie
2025-02-18 17:12     ` Morten Brørup
2025-02-19 16:50       ` Andre Muezerie
2025-02-19 17:10         ` Stephen Hemminger
2025-02-20  1:59           ` Andre Muezerie
2025-02-18 16:32   ` [PATCH v2 02/10] test_alarm: avoid warning about different qualifiers Andre Muezerie
2025-02-18 16:32   ` [PATCH v2 03/10] test-pmd: fix printf format string mismatch Andre Muezerie
2025-02-18 16:46     ` Bruce Richardson
2025-02-18 17:03       ` Andre Muezerie
2025-02-18 17:07         ` Bruce Richardson
2025-02-19 17:08           ` Andre Muezerie
2025-02-18 16:32   ` [PATCH v2 04/10] test-pmd: do explicit 64-bit shift to avoid implicit conversion Andre Muezerie
2025-02-18 16:47     ` Bruce Richardson
2025-02-18 16:32   ` [PATCH v2 05/10] test-pmd: avoid undefined behavior Andre Muezerie
2025-02-18 16:41     ` Bruce Richardson
2025-02-19 17:09       ` Andre Muezerie
2025-02-18 16:32   ` [PATCH v2 06/10] test-pmd: avoid non-constant initializer Andre Muezerie
2025-02-18 16:32   ` [PATCH v2 07/10] test-pmd: don't return value from void function Andre Muezerie
2025-02-18 16:42     ` Bruce Richardson
2025-02-18 16:32   ` [PATCH v2 08/10] test-pmd: declare lcore_count atomic Andre Muezerie
2025-02-18 16:32   ` [PATCH v2 09/10] test: add workaround for __builtin_constant_p in test_memcpy_perf Andre Muezerie
2025-02-18 16:32   ` [PATCH v2 10/10] app: enable app directory to be compiled with MSVC Andre Muezerie
2025-02-18 16:49     ` Bruce Richardson
2025-02-19  9:15     ` David Marchand
2025-02-19 14:51       ` Andre Muezerie
2025-02-20  2:01 ` [PATCH v3 00/10] enable "app" " Andre Muezerie
2025-02-20  2:01   ` [PATCH v3 01/10] eal: add workaround for __builtin_constant_p Andre Muezerie
2025-02-20  2:27     ` Stephen Hemminger
2025-02-20  2:01   ` [PATCH v3 02/10] test_alarm: avoid warning about different qualifiers Andre Muezerie
2025-02-20  2:01   ` [PATCH v3 03/10] test-pmd: fix printf format string mismatch Andre Muezerie
2025-02-20  2:01   ` [PATCH v3 04/10] test-pmd: do explicit 64-bit shift to avoid implicit conversion Andre Muezerie
2025-02-20  2:01   ` [PATCH v3 05/10] test-pmd: avoid undefined behavior Andre Muezerie
2025-02-20  2:01   ` [PATCH v3 06/10] test-pmd: avoid non-constant initializer Andre Muezerie
2025-02-20  2:01   ` [PATCH v3 07/10] test-pmd: don't return value from void function Andre Muezerie
2025-02-20  2:01   ` [PATCH v3 08/10] test-pmd: declare lcore_count atomic Andre Muezerie
2025-02-20  2:01   ` [PATCH v3 09/10] test: add workaround for __builtin_constant_p in test_memcpy_perf Andre Muezerie
2025-02-20  2:01   ` [PATCH v3 10/10] app: enable app directory to be compiled with MSVC Andre Muezerie
2025-02-20  7:57   ` [PATCH v3 00/10] enable "app" " Morten Brørup
2025-02-20 21:30 ` [PATCH v4 " Andre Muezerie
2025-02-20 21:30   ` [PATCH v4 01/10] eal: add workaround for __builtin_constant_p Andre Muezerie
2025-02-21 15:31     ` Morten Brørup
2025-02-21 16:47       ` Andre Muezerie
2025-02-20 21:30   ` [PATCH v4 02/10] test_alarm: avoid warning about different qualifiers Andre Muezerie
2025-02-20 21:30   ` [PATCH v4 03/10] test-pmd: fix printf format string mismatch Andre Muezerie
2025-02-21  9:10     ` Bruce Richardson
2025-02-20 21:30   ` [PATCH v4 04/10] test-pmd: do explicit 64-bit shift to avoid implicit conversion Andre Muezerie
2025-02-20 21:30   ` [PATCH v4 05/10] test-pmd: avoid undefined behavior Andre Muezerie
2025-02-20 21:31   ` [PATCH v4 06/10] test-pmd: avoid non-constant initializer Andre Muezerie
2025-02-20 21:31   ` [PATCH v4 07/10] test-pmd: don't return value from void function Andre Muezerie
2025-02-20 21:31   ` [PATCH v4 08/10] test-pmd: declare lcore_count atomic Andre Muezerie
2025-02-21  8:40     ` Konstantin Ananyev
2025-02-21 19:47       ` Andre Muezerie
2025-02-20 21:31   ` [PATCH v4 09/10] test: add workaround for __builtin_constant_p in test_memcpy_perf Andre Muezerie
2025-02-20 21:31   ` [PATCH v4 10/10] app: enable app directory to be compiled with MSVC Andre Muezerie
2025-02-20 21:44   ` [PATCH v4 00/10] enable "app" " Stephen Hemminger
2025-02-21 19:52 ` [PATCH v5 " Andre Muezerie
2025-02-21 19:52   ` [PATCH v5 01/10] eal: add workaround for __builtin_constant_p Andre Muezerie
2025-02-21 19:52   ` [PATCH v5 02/10] test_alarm: avoid warning about different qualifiers Andre Muezerie
2025-02-21 19:52   ` [PATCH v5 03/10] test-pmd: fix printf format string mismatch Andre Muezerie
2025-02-21 19:52   ` [PATCH v5 04/10] test-pmd: do explicit 64-bit shift to avoid implicit conversion Andre Muezerie
2025-02-21 19:52   ` [PATCH v5 05/10] test-pmd: avoid undefined behavior Andre Muezerie
2025-02-21 19:52   ` [PATCH v5 06/10] test-pmd: avoid non-constant initializer Andre Muezerie
2025-02-21 19:52   ` [PATCH v5 07/10] test-pmd: don't return value from void function Andre Muezerie
2025-02-21 19:52   ` [PATCH v5 08/10] test-pmd: declare lcore_count atomic Andre Muezerie
2025-02-21 20:58     ` Morten Brørup
2025-02-24 16:22       ` Andre Muezerie
2025-02-24 10:04     ` Konstantin Ananyev
2025-02-21 19:52   ` [PATCH v5 09/10] test: add workaround for __builtin_constant_p in test_memcpy_perf Andre Muezerie
2025-02-22  2:13     ` fengchengwen
2025-02-21 19:52   ` [PATCH v5 10/10] app: enable app directory to be compiled with MSVC Andre Muezerie
2025-02-22  2:13     ` fengchengwen
2025-02-24 16:24 ` [PATCH v6 00/10] enable "app" " Andre Muezerie
2025-02-24 16:24   ` [PATCH v6 01/10] eal: add workaround for __builtin_constant_p Andre Muezerie
2025-02-24 16:24   ` [PATCH v6 02/10] test_alarm: avoid warning about different qualifiers Andre Muezerie
2025-02-24 16:24   ` [PATCH v6 03/10] test-pmd: fix printf format string mismatch Andre Muezerie
2025-02-24 16:24   ` [PATCH v6 04/10] test-pmd: do explicit 64-bit shift to avoid implicit conversion Andre Muezerie
2025-02-24 16:24   ` [PATCH v6 05/10] test-pmd: avoid undefined behavior Andre Muezerie
2025-04-10 16:05     ` David Marchand
2025-04-11  0:06       ` Andre Muezerie
2025-02-24 16:24   ` [PATCH v6 06/10] test-pmd: avoid non-constant initializer Andre Muezerie
2025-02-24 16:24   ` [PATCH v6 07/10] test-pmd: don't return value from void function Andre Muezerie
2025-02-24 16:24   ` [PATCH v6 08/10] test/test-pmd: declare lcore_count atomic Andre Muezerie
2025-02-24 16:24   ` [PATCH v6 09/10] test: add workaround for __builtin_constant_p in test_memcpy_perf Andre Muezerie
2025-02-24 16:24   ` [PATCH v6 10/10] app: enable app directory to be compiled with MSVC Andre Muezerie
2025-04-11  6:49   ` [PATCH v6 00/10] enable "app" " David Marchand
2025-04-12  0:04     ` Andre Muezerie [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250412000440.GA13968@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net \
    --to=andremue@linux.microsoft.com \
    --cc=bruce.richardson@intel.com \
    --cc=david.marchand@redhat.com \
    --cc=dev@dpdk.org \
    --cc=fengchengwen@huawei.com \
    --cc=mb@smartsharesystems.com \
    --cc=stephen@networkplumber.org \
    --cc=thomas@monjalon.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).