Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp388513lqr; Wed, 5 Jun 2024 08:53:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWd1ccuu7lphGdoimVRhVUCjXswW+vo5DTGWJac3ir+MC9iwiLqfWWV3tkzJsUW57hpUjKad2eOC3ftPEHKgHD1kLEOq/14m9MeQwLftw== X-Google-Smtp-Source: AGHT+IF3ClnJYVvwZf8Jrw7P+wfKl9gsTqyWPrZR1hnm/J3CW9uZmSaTkcxJJGIZoFVNBC+1/mct X-Received: by 2002:a17:903:495:b0:1f6:8552:c18c with SMTP id d9443c01a7336-1f6a5a715femr25285245ad.49.1717602839104; Wed, 05 Jun 2024 08:53:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717602839; cv=pass; d=google.com; s=arc-20160816; b=HfsKn/BSgLDXJwyNyUPo9l6FOnMWxPP40cwnayglcpRpE5uKx1RJlzS3aMFbqA0uaJ ShokUR+xWH85sju7CK6EGdWDvD3fQ1fGZSQIIxyGhoBaes3lM3h5MG3rqHwuHvrPyXuz p26Bx7z8Fvzp54RrkQQohUMiLLRhBMP/7iVE33JrgSo+YjwLioJtANC+MHOLj4BrAODv rSg9QoZoXIzzRQGmlN/+p9cE5it+NTOSTrnXBmF9OPL4i/SABLp+T0xyx1rN1B65TUcd cwHcQVt03lhQZtmXIzyGIDJ2EHhrfupVANa3CDqnqO5Ekun/rQhbg5FJ6Jkg+kB8ehXL ZuAA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=Dum8oJnl03ALSX0hbMMFoYVwuJqPXyZpW1d+pMKFkvA=; fh=whT3whL0/0FAvwqCmtO4yry5pVUddBhTkNU2KPPAJts=; b=f2QbFgZMNE5BpVw/rOGetGiDaO7bC7f/aueMLQK2KBbVq3gSPibnoWRJuUYhmyKqfa v9yNLTFDzOUqNcElTh7x1tQxxLwEYlbYDYoN+qR9tsWBF7nt3b/ob8nZsajqbagFjUfj 0HXRdF3lLLWMIjB9IXZwmcGmcAmk3OcUtuv3v/zMc4Ckji+7GnBWuClS6gmb/Y5KsFoR donXELWJmrH9JAoThT4Ax03FeK4w6K0m0n1ywrnH9KyNpn84IVAc8sspUuSMtV/Dh+Ls QqMXE8tIz9xdbUc2qv13PL1XA1DrMcmXMqiW0hZYIRFArxXbpA+PfiD8q7Z4a8BX8VzB 4jRg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=netrider.rowland.org); spf=pass (google.com: domain of linux-kernel+bounces-202869-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202869-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=harvard.edu Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f632367189si102468305ad.185.2024.06.05.08.53.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 08:53:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202869-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=netrider.rowland.org); spf=pass (google.com: domain of linux-kernel+bounces-202869-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202869-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=harvard.edu Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B56C8282098 for ; Wed, 5 Jun 2024 15:53:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D72E514D2AE; Wed, 5 Jun 2024 15:53:55 +0000 (UTC) Received: from netrider.rowland.org (netrider.rowland.org [192.131.102.5]) by smtp.subspace.kernel.org (Postfix) with SMTP id B47902BCF4 for ; Wed, 5 Jun 2024 15:53:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.131.102.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717602835; cv=none; b=CgrShl1h6Xd6FAhmYcEbNHApir3eqJ3+ZBrQozvoe0VKclm3M9AsknUKgu6VYK+sEG6VU20RDXv6fHLDFoRumJp6i3RLDGYfqVdIT+5h49RTb0Yn4ZjKJi/NsvK1FlnurRxL9Qem7Vy0XLx0axB+u4lqKOEJ75syc0Qg9HfhP/I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717602835; c=relaxed/simple; bh=NJlto6miWk1aqP3OLO7cxJUaMXDrn7DMrp+Ob7yWlAY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Lhpo3VFwC+MN3GKwV/MXKggKDzeKIwkp3f8XpGRVs7MbV3nlciBsbiK4ucQ4lf7ka8l2e7RzSd0IsRL7WXLOmoGmbRrmj79Fkjwq3CUdoTkd6QhkH2Vn0CFQB3BfsBKhFx0vgapJfgCKiB7EXyxBmAEphstNgWOHKna5oT3eDq0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=rowland.harvard.edu; spf=pass smtp.mailfrom=netrider.rowland.org; arc=none smtp.client-ip=192.131.102.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=rowland.harvard.edu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=netrider.rowland.org Received: (qmail 200889 invoked by uid 1000); 5 Jun 2024 11:53:52 -0400 Date: Wed, 5 Jun 2024 11:53:52 -0400 From: Alan Stern To: Andrea Parri Cc: will@kernel.org, peterz@infradead.org, boqun.feng@gmail.com, npiggin@gmail.com, dhowells@redhat.com, j.alglave@ucl.ac.uk, luc.maranget@inria.fr, paulmck@kernel.org, akiyks@gmail.com, dlustig@nvidia.com, joel@joelfernandes.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, hernan.poncedeleon@huaweicloud.com, jonas.oberhauser@huaweicloud.com Subject: Re: [PATCH v2] tools/memory-model: Document herd7 (abstract) representation Message-ID: <037bc316-3e8c-4748-bade-ffdad4239646@rowland.harvard.edu> References: <20240605134918.365579-1-parri.andrea@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240605134918.365579-1-parri.andrea@gmail.com> On Wed, Jun 05, 2024 at 03:49:18PM +0200, Andrea Parri wrote: > tools/memory-model/ and herdtool7 are closely linked: the latter is > responsible for (pre)processing each C-like macro of a litmus test, > and for providing the LKMM with a set of events, or "representation", > corresponding to the given macro. Provide herd-representation.txt > to document the representations of the concurrency macros, following > their "classification" in Documentation/atomic_t.txt. > > Suggested-by: Hernan Ponce de Leon > Signed-off-by: Andrea Parri > --- /dev/null > +++ b/tools/memory-model/Documentation/herd-representation.txt > @@ -0,0 +1,107 @@ > +# > +# Legenda: > +# R, a Load event > +# W, a Store event > +# F, a Fence event > +# LKR, a Lock-Read event > +# LKW, a Lock-Write event > +# UL, an Unlock event > +# LF, a Lock-Fail event > +# RL, a Read-Locked event > +# RU, a Read-Unlocked event > +# R*, a Load event included in RMW > +# W*, a Store event included in RMW > +# SRCU, a Sleepable-Read-Copy-Update event > +# > +# po, a Program-Order link > +# rmw, a Read-Modify-Write link > +# lk-rmw, a Lock-Read-Modify-Write link I wonder if we really need a special notation for lk-rmw. Is anything wrong with using the normal rmw notation for these links? Alan