Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp642149lqb; Fri, 24 May 2024 08:53:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX7H8ZfOi0lAwYZjCdTX1XSggkMeOaWP3JESVxbOI71toGD1wD7biLlOBHaqbTE4yJN/eMeYEtibYOdMs17wne2yW3+MCACjWDca7fUBQ== X-Google-Smtp-Source: AGHT+IF70OrQyWMl3mLiH23kX6C2iZRTcM6h8Zw2Qa7zE6D6uGDQ0B2JwCS2tD/3PDqxN03T3b/J X-Received: by 2002:a17:906:48d9:b0:a59:beb2:62d7 with SMTP id a640c23a62f3a-a6264f15bc7mr181871666b.56.1716566002875; Fri, 24 May 2024 08:53:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716566002; cv=pass; d=google.com; s=arc-20160816; b=LsnlFSb9THqKBJcb9cQY+S3DVR1ghkbXOFVrd765jxQ0xpT7m+K2YZ7Nz547cPNEKV cgMp92IV7/j0AgtaoqbwfVe5lPnqSH7l8arjeN/KadvXU3hV9xUCIUlYVtslJw+s6YHG HSnQhR0DnD7d408OWZTKZUWJl+Wjtd799jjC7L2bKsBg73caHXUUxrSP/awwJRZJTO/S BzvXbmBGslBvGaECKg0akYVYWC+/dVYZwvmP2tQ/+/yVfCgJpUtDtvXhmsJJeRsJOlN2 GsIXFe7v9fp2F8arFJ4goWz5lvjpMmETv7gFTnOwZgayAUPOmRZUkLdOax0ci/zHhzHU 3yuA== 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=4DV7/p8LzzY7NkZS4FQ+6tlEiJyfiarENZYdxAVFQ9c=; fh=whT3whL0/0FAvwqCmtO4yry5pVUddBhTkNU2KPPAJts=; b=nsAPZj4qMv8R9sgv5s/VntkAwU26hcOFnhNP3SXqxADrTC8w+45CZLuj5kw0hLM1bp adIqc0UncbvzlMy+qimHAW/Q31Wb00GuoM63f1c4IBNY+y4zpX4KUrq/ZDJaxZRvFfau HskWWnsYp82k3YIMm8mqF7k2wdz0k6+1KNv7Hus1fVesEwCwOxRjZ/xGIms/Wp3PqWsW 6vME6LRsjPz2ko8esYSxYt4NsfgYUdIgY3Lcq1ePypiyj6ex556WGQTxVmhJ8p6fRSn+ awvvhfGIt0zn0KsZHs9Af8iK7AfmW615hX7Rv8bK2wqWCGuLwGNR9ocHWbKqQOk4qBs9 FKzQ==; 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-188897-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188897-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=harvard.edu Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a626c800f0esi94585666b.190.2024.05.24.08.53.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 08:53:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188897-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=netrider.rowland.org); spf=pass (google.com: domain of linux-kernel+bounces-188897-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188897-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 7C47D1F2181C for ; Fri, 24 May 2024 15:53:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AC36D12E1DE; Fri, 24 May 2024 15:53:14 +0000 (UTC) Received: from netrider.rowland.org (netrider.rowland.org [192.131.102.5]) by smtp.subspace.kernel.org (Postfix) with SMTP id A9C3512CD81 for ; Fri, 24 May 2024 15:53:12 +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=1716565994; cv=none; b=UCTFP12OoHJWkF+uGCzfvO0pXsuQQgv1BRLIWAiC6C8UD5de16Vjae4btWaPr/qvJ7Re1J7K6XryoygHtQk65jW5wopbJlDLLD3G4XZ3vCyT6m8poxJ9RJUgH//JnMKuWVAd64TngpJr8XoAOBpvMB84eOPAUNLL6FYDo+IFIDs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716565994; c=relaxed/simple; bh=1zS8ibP+hJWRzbynsQG0FATpqCiju5Hqqp7403hPuFE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Wb7LnUdW53ymV6WCCRCasUfcmf2BYVTI8Cg0AjRQd1r+hTp8ZwmT8fuDLovO3MQdjV51pGO6A493dXmXBT1o1kMYvirP/5lzIOHVK/JjNVgtrx/ZFNdv+eD35OhhY+tJVp04Sg41QIXqIl2vMff7YB+k4Ffk2NiQXwIWBHs7Ruw= 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 578024 invoked by uid 1000); 24 May 2024 11:53:11 -0400 Date: Fri, 24 May 2024 11:53:11 -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] tools/memory-model: Document herd7 (internal) representation Message-ID: <1c6d4146-86f8-4fd5-a23e-a95ba2464c9e@rowland.harvard.edu> References: <20240524151356.236071-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: <20240524151356.236071-1-parri.andrea@gmail.com> On Fri, May 24, 2024 at 05:13:56PM +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 representation of synchronization macros, following > their "classification" in Documentation/atomic_t.txt. > > Suggested-by: Hernan Ponce de Leon > Signed-off-by: Andrea Parri > --- > + | rcu_dereference | R[once] | > + | rcu_assign_pointer | W[release] | > + | srcu_read_lock | R[srcu-lock] | > + | srcu_read_unlock | W[srcu-unlock] | > + | synchronize_srcu | SRCU[sync-srcu] | > + --------------------------------------------------------------------------- > + | RMW ops w/o return value | | > + --------------------------------------------------------------------------- > + | atomic_add | R*[noreturn] ->rmw W*[once] | What's the difference between R and R*, or between W and W*? Alan