Re: [RFC PATCH v3 1/8] eal: annotate spinlock and rwlock

2022-04-28 Thread David Marchand
On Thu, Apr 21, 2022 at 3:48 PM Maxime Coquelin wrote: > > Hi David, > > On 4/11/22 13:00, David Marchand wrote: > > clang offers some thread safety checks, statically verifying that locks > > are taken and released in the code. > > To use those checks, the full code leading to taking or releasing

Re: [RFC PATCH v3 1/8] eal: annotate spinlock and rwlock

2022-04-21 Thread Maxime Coquelin
Hi David, On 4/11/22 13:00, David Marchand wrote: clang offers some thread safety checks, statically verifying that locks are taken and released in the code. To use those checks, the full code leading to taking or releasing locks must be annotated with some attributes. Wrap those attributes int

[RFC PATCH v3 1/8] eal: annotate spinlock and rwlock

2022-04-11 Thread David Marchand
clang offers some thread safety checks, statically verifying that locks are taken and released in the code. To use those checks, the full code leading to taking or releasing locks must be annotated with some attributes. Wrap those attributes into our own set of macros. rwlock and the "normal" spi