Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1873061ybv; Fri, 14 Feb 2020 07:28:12 -0800 (PST) X-Google-Smtp-Source: APXvYqzdIy+Df2uphjWI4SNgnPeqKbrKU4fwQesVNnzYrReotzqalgqiW0ur6d6tnM6PhUe+ETRr X-Received: by 2002:a05:6830:2102:: with SMTP id i2mr2634438otc.123.1581694092073; Fri, 14 Feb 2020 07:28:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581694092; cv=none; d=google.com; s=arc-20160816; b=N4zcx2s+cZV6Ax5o4LkWu6+z7c36W1lj+9+nQLZDqCKRh4z835C+08rQUoJryRYOKg QKTpGAJiXvtACBjlmMQAPxWHmD5Bl9f8wUqfiDbzlikw6u2k+TGUYSg2faQkWP68o/B2 PKTHJSrbaQCnDbLSzxHlwenCE6UF2dmY0Sj0MfgxLe5TqFi751SYf6TtpK5evXJsn7/w LNv3GzM9mxyK0Ft5N9vVrSo3hwIRBz26AGH/4bZFhairWHU7y4PdI+dUv0XCSji8rXLz kI/ofIZTgKRoNmNQkDxoSD+8a8kZcarghQF0yk+6OGUnz4vGbFNaeJi37nBvjdAke1Pl n4yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:in-reply-to :subject:cc:to:from:date; bh=bgINuH164/OctdHwh+v0NQjTBNQEPS+Tw/xvaeFeYKM=; b=JzVE7xb9MculDiFJv1JummfQFOz5UJZ+aN8DKwulLWmMPSQlw04ubWO7q3UccRcKmN P0sT2RE6b5qhJS/Pnou/gDniKQMNcvaLINxiS8qdyw/8+79B0lpwvcnoYx74JeiDg0Uy 2LaYSAzhTvCl8jKrxuxta6IriGM3AtSLLFooAzpRyUvRGFNXyNcNd2CIH7VflGS+PzTV Ob1YOcJxMMdSa6pStqT/9d5Uh44VaQj+XSp/aW2euVzuFOyFG0kvM1LBaKZDwhISzrcv O1izyUfEVmNnQzCrUzYMOKN8wtalwrcJ74YRF7V7FueHbK/xdJBE1Ll+Zsj1L6JgYR5i nR8w== ARC-Authentication-Results: i=1; mx.google.com; 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 p22si3091380ota.43.2020.02.14.07.27.59; Fri, 14 Feb 2020 07:28:12 -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; 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 S2387681AbgBNP1s (ORCPT + 99 others); Fri, 14 Feb 2020 10:27:48 -0500 Received: from iolanthe.rowland.org ([192.131.102.54]:39728 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S2387653AbgBNP1q (ORCPT ); Fri, 14 Feb 2020 10:27:46 -0500 Received: (qmail 2571 invoked by uid 2102); 14 Feb 2020 10:27:44 -0500 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 14 Feb 2020 10:27:44 -0500 Date: Fri, 14 Feb 2020 10:27:44 -0500 (EST) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Boqun Feng cc: linux-kernel@vger.kernel.org, Andrea Parri , Will Deacon , Peter Zijlstra , Nicholas Piggin , David Howells , Jade Alglave , Luc Maranget , "Paul E. McKenney" , Akira Yokosawa , Daniel Lustig , Jonathan Corbet , , Subject: Re: [RFC 0/3] tools/memory-model: Add litmus tests for atomic APIs In-Reply-To: <20200214040132.91934-1-boqun.feng@gmail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 14 Feb 2020, Boqun Feng wrote: > A recent discussion raises up the requirement for having test cases for > atomic APIs: > > https://lore.kernel.org/lkml/20200213085849.GL14897@hirez.programming.kicks-ass.net/ > > , and since we already have a way to generate a test module from a > litmus test with klitmus[1]. It makes sense that we add more litmus > tests for atomic APIs into memory-model. It might be worth discussing this point a little more fully. The set of tests in tools/memory-model/litmus-tests/ is deliberately rather limited. Paul has a vastly more expansive set of litmus tests in a GitHub repository, and I am doubtful about how many new tests we want to keep in the kernel source. Perhaps it makes sense to have tests corresponding to all the examples in Documentation/, perhaps not. How do people feel about this? Alan