[dpdk-dev] [PATCH v3 1/2] test/test: introduce new test-case for rte_smp_mb()

Thomas Monjalon thomas at monjalon.net
Tue Jan 16 01:16:38 CET 2018


15/01/2018 16:04, Konstantin Ananyev:
> Simple functional test for rte_smp_mb() implementations.
> Also when executed on a single lcore could be used as rough
> estimation how many cycles particular implementation of rte_smp_mb()
> might take.
> 
> Signed-off-by: Konstantin Ananyev <konstantin.ananyev at intel.com>
> ---
>  test/test/Makefile       |   1 +
>  test/test/test_barrier.c | 286 +++++++++++++++++++++++++++++++++++++++++++++++

I will add
	F: test/test/test_barrier.c
in MAINTAINERS, when applying.

> +static inline void
> +store_load_barrier(uint32_t utype)
> +{
> +	if (utype == USE_MB)
> +		rte_mb();
> +	else if (utype == USE_SMP_MB)
> +		rte_smp_mb();
> +	else
> +		RTE_VERIFY(0);
> +}

It does not compile on ARM64.
I have sent a fix for ARM64 barrier macros:
	https://dpdk.org/patch/33762


More information about the dev mailing list