From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751657AbbJLJiX (ORCPT ); Mon, 12 Oct 2015 05:38:23 -0400 Received: from mail-ob0-f173.google.com ([209.85.214.173]:35318 "EHLO mail-ob0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751332AbbJLJiV (ORCPT ); Mon, 12 Oct 2015 05:38:21 -0400 Date: Mon, 12 Oct 2015 17:38:00 +0800 From: Boqun Feng To: Will Deacon Cc: "linux-kernel@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , Peter Zijlstra , Ingo Molnar , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Thomas Gleixner , "Paul E. McKenney" , Waiman Long Subject: Re: [RFC v2 1/7] atomics: Add test for atomic operations with _relaxed variants Message-ID: <20151012093800.GG27351@fixme-laptop.cn.ibm.com> References: <1442418575-12297-1-git-send-email-boqun.feng@gmail.com> <1442418575-12297-2-git-send-email-boqun.feng@gmail.com> <20151012093033.GC16124@arm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="3oCie2+XPXTnK5a5" Content-Disposition: inline In-Reply-To: <20151012093033.GC16124@arm.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --3oCie2+XPXTnK5a5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 12, 2015 at 10:30:34AM +0100, Will Deacon wrote: > On Wed, Sep 16, 2015 at 04:49:29PM +0100, Boqun Feng wrote: > > Some atomic operations now have _{relaxed, acquire, release} variants, > > this patch then adds some trivial tests for two purpose: > >=20 > > 1. test the behavior of these new operations in single-CPU > > environment. > > 2. make their code generated before we actually use them somewhere, > > so that we can examine their assembly code. > >=20 > > Signed-off-by: Boqun Feng > > --- > > lib/atomic64_test.c | 91 ++++++++++++++++++++++++++++++++++-----------= -------- > > 1 file changed, 59 insertions(+), 32 deletions(-) >=20 > FWIW: this was useful to me whilst developing the arm64 relaxed atomic Glad to know. > implementation. Could you extend it to include the recently queued inc/dec > variants too? >=20 Already include them in upcoming V3 ;-) Regards, Boqun --3oCie2+XPXTnK5a5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAABCAAGBQJWG39zAAoJEEl56MO1B/q4yL0H/jhtDQMC15kqQkhe4d5icmty GTTo6+l8iaCMUZEULyO03+szZMxhcXALiCt6cJ6x7kaRGvNJGQe0hmgfEQh7HCb7 gTVJferVf9Q2sNFWt0vucmbXffHUx2FedODRmRB1LLlOpsGs4WDlUdN69jk6Es5I ZxhiylYTVU0sL5l4FjbEHydwsno7m2lhEjKrVblp39pg5p5kk6e1Gn5N0uHP2sY/ BodO6ZDnX8Tz27YBdDO0hmZY36AyOWf7lGATgUdbJKPX9RWb4U/54/2iPQ0fAvP9 KQg4kyY00m7XA5Xxi3w/P2a1UPerkLZXHiZNrScRLrjRvNgU3K+7zsR+d3cSqiQ= =pn10 -----END PGP SIGNATURE----- --3oCie2+XPXTnK5a5--