From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9D31EC2BA83 for ; Fri, 14 Feb 2020 15:28:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 772C024673 for ; Fri, 14 Feb 2020 15:28:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387688AbgBNP1t (ORCPT ); Fri, 14 Feb 2020 10:27:49 -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