Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: Olivier Dion via lttng-dev <lttng-dev@lists.lttng.org>
To: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
	linux-kernel@vger.kernel.org, lttng-dev@lists.lttng.org
Cc: "Ondřej Surý" <ondrej@isc.org>, paulmck <paulmck@kernel.org>,
	"Alan Stern" <stern@rowland.harvard.edu>,
	"Lai Jiangshan" <jiangshanlai@gmail.com>,
	"Brad Smith" <brad@comstyle.com>,
	lwn@lwn.net
Subject: Re: [RELEASE] Userspace RCU 0.15.0
Date: Sat, 21 Dec 2024 11:22:40 -0500	[thread overview]
Message-ID: <87ed21hupb.fsf@laura> (raw)
In-Reply-To: <51160e24-389a-41b6-871b-ba522d427220@efficios.com>

On Fri, 20 Dec 2024, Mathieu Desnoyers <mathieu.desnoyers@efficios.com> wrote:
> Hi,
[...]
>    * Introduction of the CMM memory model with the following new primitives:
>      
>        - uatomic_load(addr, memory_order)
>      
>        - uatomic_store(addr, value, memory_order)
>        - uatomic_and_mo(addr, mask, memory_order)
>        - uatomic_or_mo(addr, mask, memory_order)
>        - uatomic_add_mo(addr, value, memory_order)
>        - uatomic_sub_mo(addr, value, memory_order)
>        - uatomic_inc_mo(addr, memory_order)
>        - uatomic_dec_mo(addr, memory_order)
>      
>        - uatomic_add_return_mo(addr, value, memory_order)
>        - uatomic_sub_return_mo(addr, value, memory_order)
>      
>        - uatomic_xchg_mo(addr, value, memory_order)
>      
>        - uatomic_cmpxchg_mo(addr, old, new,
>                             memory_order_success,
>                             memory_order_failure)
>
> The uatomic API was extended to support explicit memory ordering.
> For instance, the previous uatomic_cmpxchg() now has a
> uatomic_cmpxchg_mo() counterpart, which takes a memory ordering
> argument.

It is worth mentioning that the `*_mo' variants are not public API.
Instead, the current uatomic API is extended by adding an optional
memory odring parameter for the various atomic operation.

For example, uatomic_xchg(addr, value) is equivalent to
uatomic_xchg(addr, value, CMM_SEQ_CST_FENCE).  But user can choose a
different memory ordering.  For example: uatomix_xchg(addr, value,
CMM_RELEASE).

[...]

Thanks,
Olivier
-- 
Olivier Dion
EfficiOS Inc.
https://www.efficios.com

      parent reply	other threads:[~2024-12-21 16:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-20 17:25 Mathieu Desnoyers via lttng-dev
2024-12-20 18:45 ` Mathieu Desnoyers via lttng-dev
2024-12-21 16:22 ` Olivier Dion via lttng-dev [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=87ed21hupb.fsf@laura \
    --to=lttng-dev@lists.lttng.org \
    --cc=brad@comstyle.com \
    --cc=jiangshanlai@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lwn@lwn.net \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=odion@efficios.com \
    --cc=ondrej@isc.org \
    --cc=paulmck@kernel.org \
    --cc=stern@rowland.harvard.edu \
    /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