Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1492205rwl; Fri, 7 Apr 2023 17:49:57 -0700 (PDT) X-Google-Smtp-Source: AKy350YBkBhbQY4e+3aiUj0benYr0LMKvuYX9WWUrfROfs28vNOzRCOH2G53qPTTLyO09Un9rT93 X-Received: by 2002:a05:6a20:47cf:b0:d5:3818:6427 with SMTP id ey15-20020a056a2047cf00b000d538186427mr3629933pzb.9.1680914997478; Fri, 07 Apr 2023 17:49:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680914997; cv=none; d=google.com; s=arc-20160816; b=ek1BbdfxEgOmu4q6DjeDHPckYooh34vPpbgIWG8XaLMqUeapdR/4tlg+ICZNoD1/h6 +KpAUq5k3PotQE80qTJSHsF33D+tnp1lRlXtgXgEaGmgSQV5lhU/0TVLQebe3hv2iYEj qrlO3ys9glUsuUAuKwo9d2Rtr0S7htl4PPmY/6Xxmi0ViUbiVZOwyWn/6YnQBeB4XLyl ShOrN35axLhzLNCoSY1/xfRSvigSlmGaGVM1NXxJMJIzbcvYIxsWCnqV6/tQ1dWRU3Yg u6lITOgFEiC6AIAhHz4QhFd/VBeoVVDnIi1j82RXbzQnDrDNON6YUTdoq3VVtlTClC8e Gypw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=PvCnB1Fnwwx7QXi0YT9e06jUWC6DCJdiAeDAl6oOfbE=; b=Z7g8F2ztO2rwQZjOwGlCJHNELvitayA6jRZMwandcZpxpmNX2PlUjGxqA4g+a96U9x E06B/Fw7+Y5oqncmyCtRu4mMwgGCYbawBZ/R+8S6RWOvaqL4AtADVjRn/g8KrfUoO27g 2DEZHztRlbx0U026NiOZnM8cFR76koTHIIs3N9x01z4STTDXGbwGBWQh9jFqBAMAX9VQ 1849xxCtcjb+u7C/OrAr1Gz/X8mBIpqh1rh4uS7xMN3fF0LXMHShlWHvIIh8LE2G2yKZ 9n9rnbeyBKd9NPipWx1+2X2XKCBuPTfhSwWxYT2wMVsLzxeYLLnDhzXz3WGaBiT8fmvf kyOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Eh67NABH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r21-20020a635d15000000b00514403ff3a8si4608277pgb.372.2023.04.07.17.49.35; Fri, 07 Apr 2023 17:49:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Eh67NABH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229459AbjDHAtG (ORCPT + 99 others); Fri, 7 Apr 2023 20:49:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjDHAtF (ORCPT ); Fri, 7 Apr 2023 20:49:05 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BF4EAF3E; Fri, 7 Apr 2023 17:49:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DE49E65593; Sat, 8 Apr 2023 00:49:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E1E4C433EF; Sat, 8 Apr 2023 00:49:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680914943; bh=U+av11hX25u4IyfwQg9yYQJu8Wq0oTxiwzajUtWOdug=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=Eh67NABHplIbkUbYYBKerJOwmtmuxB+0NXLRY8qJfAOTSbEGAlkWRKyZky8RSOukJ XRQO676cLTHlP0F3grhPGpLCSVKtt6XPdhaikuOK3q5WgEjnBTBTP2i1mkOVnYefHG LLBSbjJYXSk8pI/Svugkvv8Q9TmvP8T63FecQ8S2uChQfQv6/Hs7XHB1fZOfD204T4 9PATU+SOBEmo8Pbm5zAkECjHOQuSzSIkA/W0a3k178VFY2PJqYSvErW1/YveIaGAaw FvvwjaAAjV6CsKFUfdrselqRH25KB+4lwafgh7x++zY4BMIzBI+rq3W/5K3BF14Pqq L161KXqHEFmKg== Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id BCC7615404B5; Fri, 7 Apr 2023 17:49:02 -0700 (PDT) Date: Fri, 7 Apr 2023 17:49:02 -0700 From: "Paul E. McKenney" To: Jonas Oberhauser Cc: Joel Fernandes , Alan Stern , linux-kernel@vger.kernel.org, Boqun Feng , Jade Alglave , Luc Maranget , Peter Zijlstra , Will Deacon , Akira Yokosawa , Andrea Parri , Daniel Lustig , David Howells , Jonas Oberhauser , linux-arch@vger.kernel.org, Nicholas Piggin , Paul =?iso-8859-1?Q?Heidekr=FCger?= , Will Deacon Subject: Re: Litmus test names Message-ID: Reply-To: paulmck@kernel.org References: <3908932E-17D4-4B87-AB0C-D10564F10623@joelfernandes.org> <159545c3-0093-3cbd-e822-7298ae764966@huaweicloud.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <159545c3-0093-3cbd-e822-7298ae764966@huaweicloud.com> X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 07, 2023 at 03:05:01PM +0200, Jonas Oberhauser wrote: > > > On 4/7/2023 2:12 AM, Joel Fernandes wrote: > > > > > > > On Apr 6, 2023, at 6:34 PM, Paul E. McKenney wrote: > > > > > > On Thu, Apr 06, 2023 at 05:36:13PM -0400, Alan Stern wrote: > > > > Paul: > > > > > > > > I just saw that two of the files in > > > > tools/memory-model/litmus-tests have > > > > almost identical names: > > > > > > > >  Z6.0+pooncelock+pooncelock+pombonce.litmus > > > >  Z6.0+pooncelock+poonceLock+pombonce.litmus > > > > > > > > They differ only by a lower-case 'l' vs. a capital 'L'.  It's > > > > not at all > > > > easy to see, and won't play well in case-insensitive filesystems. > > > > > > > > Should one of them be renamed? > > > > > > Quite possibly! > > > > > > The "L" denotes smp_mb__after_spinlock().  The only code difference > > > between these is that Z6.0+pooncelock+poonceLock+pombonce.litmus has > > > smp_mb__after_spinlock() and Z6.0+pooncelock+pooncelock+pombonce.litmus > > > does not. > > > > > > Suggestions for a better name?  We could capitalize all the letters > > > in LOCK, I suppose... > > I don't think capitalizing LOCK is helpful. Greek font, then? (Sorry, couldn't resist...) > To be honest, almost all the names are extremely cryptic to newcomers like > me (like, what does Z6.0 mean? Is it some magic incantation?). > And that's not something that's easy to fix. All too true on all counts. Some of the names abbreviate the litmus test itself, and there are multiple encodings depending one who/what generated the test in question. Others of the names relate to who came up with them or the code from which they are derived. New allegedly universal naming schemes have a rather short half-life. What would be cool would be a way to structurally compare litmus tests. I bet that there are quite a few duplicates, for example. > The only use case I can think of for spending time improving the names is > that sometimes you wanna say something like "oh, this is like > Z6.0+pooncelock+pooncelockmb+pombonce". And then people can look up what > that is. > For that, it's important that the names are easy to disambiguate by humans, > and I think Joel's suggestion is an improvement. > (and it also fixes the issue brought up by Alan about case-insensitive file > systems) > > > > > Z6.0+pooncelock+pooncelockmb+pombonce.litmus ? I am OK with this one, but then again, I was also OK with the original Z6.0+pooncelock+poonceLock+pombonce.litmus. ;-) Would someone like to to a "git mv" send the resulting patch? Thanx, Paul