[RFC PATCH v2 2/9] eal: annotate spinlock and rwlock
Stephen Hemminger
stephen at networkplumber.org
Mon Apr 4 08:21:05 CEST 2022
On Wed, 30 Mar 2022 15:49:49 +0200
David Marchand <david.marchand at redhat.com> wrote:
> +#ifdef RTE_ANNOTATE_LOCKS
> +
> +#define RTE_ANNOTATED_LOCK \
> + __attribute__((lockable))
> +
> +#define RTE_GUARDED_BY(...) \
> + __attribute__((guarded_by(__VA_ARGS__)))
> +#define RTE_GUARDED_VAR \
> + __attribute__((guarded_var))
Could we use attributes that match the existing syntax and lower case.
That is what was done for hot/cold and format attributes.
#define __rte_lockable
More information about the dev
mailing list