Received: by 10.223.185.116 with SMTP id b49csp1067914wrg; Sun, 11 Feb 2018 03:52:46 -0800 (PST) X-Google-Smtp-Source: AH8x224a6bYXJhVKaslz7L/AGiwfbuVnvX5sywrrHx9zAk7r/Eh2AL5opV972MtiCL7j49NGOTAU X-Received: by 10.101.80.69 with SMTP id k5mr7033737pgo.425.1518349966652; Sun, 11 Feb 2018 03:52:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518349966; cv=none; d=google.com; s=arc-20160816; b=WBvTFZrnn4B48bcDumfQxujyVgRyBfBjpBmauuSIg3dRRVOeNlRGZNVhJqtqoBvlcR W1KSBwoertyLxLH+1PI1ClIptAvTdl2tiqR/A6YF1rXRpRs+pAaD6/321Kalhfa+2IXv QPVyjKBJ6bCwQSffsahqFTCFClSqTBI/lfgwsGmwEtIH9lxVaWzHAu7jKBpz8r6PylNi HlxBSMrAJaFyfR2K0/cjmDpxi/bUh/CJVNQmTaarn8uLjnfYF+q2TODyO0/5eeiJAaJT GsujCZxNsOGFphcm6x/s1fMrZpoI2A2sTsL+VKKwsxLELrU7A2rqferLLa8nrNEti4dA AM8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=nK63wlpauYa25HTx5s5lcE/r8zswU2S+D643hx9BTi8=; b=0z77kek8hCpd8mjqY+lgGXK/EGOuPAe3sL2VVRmT/3aPmyfeLex9xhb0PgTSGop6sH wPOK+EOnSAdTsUglM0h6o9s8GHxAJRmjAKAUudareHFwrqfhn++BVQVbkZ3z8xiO79hK pR1ipg9pWlNVlctP4PztSY9ruFhb1KGhlh4HqLQ3Ni0vgqfdtmyLmdPxCrC6cisfilLH dgbB1RzqrcRcQ6gVlJ374wnG6RiOmVkig4k+pn1QTfK64YwKIAgpucrdQOBO83hiDcHE +teeCOp6i7QJ1WyzQe0TseVetdFeZji8C8wpapfAJOtfCJgsKhOVRLkt9uLuuu5MUTlh sSyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=sop6DkwT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e1-v6si228471plj.600.2018.02.11.03.52.32; Sun, 11 Feb 2018 03:52:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=sop6DkwT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753328AbeBKLvy (ORCPT + 99 others); Sun, 11 Feb 2018 06:51:54 -0500 Received: from mail-wr0-f195.google.com ([209.85.128.195]:38302 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753230AbeBKLvx (ORCPT ); Sun, 11 Feb 2018 06:51:53 -0500 Received: by mail-wr0-f195.google.com with SMTP id t94so12455085wrc.5 for ; Sun, 11 Feb 2018 03:51:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=nK63wlpauYa25HTx5s5lcE/r8zswU2S+D643hx9BTi8=; b=sop6DkwTsXy25GmYdqTeRV/b0i/KJefmDc554XIH+XHoDR53RQV9qDiukOVRpaoXGl 9RXVRY5lt21Ye2GUiZikuAW9bz5JTZ69gFMMIrAPyxl8dtI/DMkvyLmHKtsmriupy6wU tpu+73Pq6Xp/OSFfjvY0ewYv+Zrd4lzNFncadb3b73YXgKPH9Gzio8xcPK1OqnTdpPil jG8pnAM8BNpe1YPRaK6L/jzHXo5FR6EEtvnOFsIb6NJ+tWYSBQ6cDc+xr5aWxqSP2E2x bNm4L719THFEdVqpjlhiOZ6zGR2WX38bC4QfZQ5RGJ/YJk8fbFchD1qlVRcAA4P8i8zE F4qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=nK63wlpauYa25HTx5s5lcE/r8zswU2S+D643hx9BTi8=; b=aDIjq8XxwauqiiFH01BdHWWyV+ysynFN3vAPgi+FWQg6d0fC0YH/xaiqkfljsWz5a1 Gf4Cf9iWZRslFm5LKMw8DtNKMl2PrjoDQ3WYKIZ5kpoxgbcYHWBDJ+tEtdh0pPu+lRiv lXVqml1psJjAH2q08TTVE1ILUj61v0UiU1BV3qwaM1xDQMCq30ek1SyIg7/AazCpryLE X0OB/Qlhlvq7VqKT5n6nKcU3lH4kQe7YTJdegBdT9cLNKyL/auI/bCzd59sLKEYqmpUs Z4zO3RPN7zbNd4d8JjuX8BICgMroFnMQd+s2/vhnaSdRmhqniEO4Z9gE2qu/isKq8/J9 fsVw== X-Gm-Message-State: APf1xPDu00O3Cmu0LaCBBx8hT802zrFMzlrR6+zfKk7YPtZbB37i1M4i aMBPw7Fl4MoZYYWQYkbTLg4= X-Received: by 10.223.157.71 with SMTP id o7mr2195317wre.248.1518349912175; Sun, 11 Feb 2018 03:51:52 -0800 (PST) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id q14sm4877600wre.66.2018.02.11.03.51.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 11 Feb 2018 03:51:51 -0800 (PST) Date: Sun, 11 Feb 2018 12:51:48 +0100 From: Ingo Molnar To: "Paul E. McKenney" Cc: Akira Yokosawa , linux-kernel@vger.kernel.org, stern@rowland.harvard.edu, parri.andrea@gmail.com, will.deacon@arm.com, peterz@infradead.org, boqun.feng@gmail.com, npiggin@gmail.com, dhowells@redhat.com, j.alglave@ucl.ac.uk, luc.maranget@inria.fr, Patrick Bellasi Subject: Re: [PATCH v2] tools/memory-model: Make compat with herd7 7.47 ("-" -> "_") Message-ID: <20180211115148.iylaqk3f53f2vgf4@gmail.com> References: <20180209141832.GA17505@linux.vnet.ibm.com> <20180210010703.GE3617@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180210010703.GE3617@linux.vnet.ibm.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Paul E. McKenney wrote: > On Sat, Feb 10, 2018 at 08:46:25AM +0900, Akira Yokosawa wrote: > > >From 7c1f497a9a51e8db1a94c8a7ef0b74b235aaab88 Mon Sep 17 00:00:00 2001 > > From: Akira Yokosawa > > Date: Fri, 9 Feb 2018 04:51:05 -0800 > > Subject: [PATCH v2] tools/memory-model: Make compat with herd7 7.47 ("-" -> "_") > > > > As of herd7 7.47, these '-'s are not permitted and end up in > > errors such as: > > > > File "./linux-kernel.def", line 44, characters 29-30: > > unexpected '-' (in macros) > > > > Partial revert of commit 2d5fba7782d6 ("linux-kernel*: Make RCU > > identifiers match ASPLOS paper") in the repository at > > https://github.com/aparri/memory-model can restore the compatibility > > with herd7 7.47. > > > > Reported-by: Patrick Bellasi > > Suggested-by: Andrea Parri > > Signed-off-by: Akira Yokosawa > > --- > > Paul, > > > > FWIW, this is a squashed version relative to patch 07/10 in the RFC series. > > Thank you, Akira! > > I am going to hold off on this for a bit to see if we can instead get > a new release of herd7, but if we can't. this might well be a very good > way to go. I'm wondering: > > // RCU > > -rcu_read_lock() { __fence{rcu-lock}; } > > -rcu_read_unlock() { __fence{rcu-unlock};} > > -synchronize_rcu() { __fence{sync-rcu}; } > > -synchronize_rcu_expedited() { __fence{sync-rcu}; } > > +rcu_read_lock() { __fence{rcu_lock}; } > > +rcu_read_unlock() { __fence{rcu_unlock};} > > +synchronize_rcu() { __fence{sync_rcu}; } > > +synchronize_rcu_expedited() { __fence{sync_rcu}; } What's the point of using '-' instead of '_'? In a program language syntax environment it's easy to confuse it with a '-' operator, and it also looks slightly sloppy and inconsistent if we sometimes have '_' and sometimes '-'. If it used on purpose, to separate namespaces from kernel internal API names, then that's rather obscure IMHO and then I'd rather suggest proper prefixes instead. Thanks, Ingo