Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp466678ybf; Wed, 26 Feb 2020 16:42:02 -0800 (PST) X-Google-Smtp-Source: APXvYqyPa3qoaC3wJJ5VPs4ynnxjrxnxcpj/AanfoFxgQ/iaA4+biuZbN+NTp2YG4t4uAmBeF4rm X-Received: by 2002:a05:6830:138b:: with SMTP id d11mr1203958otq.38.1582764122694; Wed, 26 Feb 2020 16:42:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582764122; cv=none; d=google.com; s=arc-20160816; b=MK3iHekGECSW8468vdCFtFFS3Tj7zv2uVomMEgoJBJEDn320sOlDAJ2UaFULDf6Qsn IhhDUYcoonFK4hNIEYPW/yQyf2/hu5WR+BAAvXKqERqBehoSh/U/KRWOb2dxFu0izstZ CYjipEW4y4DcvmXPHNXrCXwwzW1hRG7dN6WJJxXbjAVP1V7D4rMV8unme4WEw2LZ1p6R g+orgsd57PHGyLiblEqOlrRDTPJGKaxpGARJBAh5HPSWID22P/6/BFHKembeBnVElZyY DTEYqusvSwHnTdJeLYqwXE5aQGsGDVZtIskkrOFS4YFAU90UCkql3PghTuvJQiFUMzJB ASBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=hXaVpGqqToiZNRZTnPuTvkrof7XCekzeFTv2omJ7ql0=; b=Mik9n55KURe+gNmPNsGmVwEsXc5SLvuP4/bpuURhugFy3bKCIqWvX4YfQAm/wlq7D1 LdeKFRVqisykcEc1EYdk4L7Yq98rpAPTObKyRUnFqpankDSM98Qg/awYTUz6Em28hmEJ 3En5yeCU5kRa2uktZ5TD/cFtbNVo/PQZQeFG4FTfilC25k/TaBKnjbJ3iZVC/Cxizy7N u+NzLTpZHBopZbOBbATjYPgIYVcTUKVuPYA1OmHcuoi/+E9Ea5+nblAqGTXFt6tDZVoS iZceDu1UQvmhfK8kyWMZoD00KD9vli/lDyvAiQUn/7dhQ7OvQhNLEqvq9Y5a14o6N4ae ClKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nkdkXloi; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c22si648761otr.97.2020.02.26.16.41.51; Wed, 26 Feb 2020 16:42:02 -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=pass header.i=@gmail.com header.s=20161025 header.b=nkdkXloi; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728153AbgB0AlL (ORCPT + 99 others); Wed, 26 Feb 2020 19:41:11 -0500 Received: from mail-qt1-f194.google.com ([209.85.160.194]:42685 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728134AbgB0AlJ (ORCPT ); Wed, 26 Feb 2020 19:41:09 -0500 Received: by mail-qt1-f194.google.com with SMTP id r5so1024187qtt.9; Wed, 26 Feb 2020 16:41:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hXaVpGqqToiZNRZTnPuTvkrof7XCekzeFTv2omJ7ql0=; b=nkdkXloivKU173/MWNM6WK/cxC4RDEdhnqox7q0e4paup7yzZXhSS/dtIqZeo092ZO lEM6C19TxUOGKyXCwRzfMsk+JvVhJjshkAdbcyrU2GnIs4qxH1wBr27QC8H3V76TzJfu pO0fveZc4PIBymtccnGRP6kk3bzZdsX9PJCOHHbDWMzv1vxQYBFMCpD52r3yYGGpISnw g+mSjEjPUXUZWGUBOkTU2zb7u5TmHcnXAgfAxXx5KqIrJAfLpG1mtMxGVh8+OYzAcpaF T9+c93TeFIcAkB4F60P66lnCDCdMokKVLtAGXlLDcRIpPQ02AjGx5lPNwQkE7D6DRULg M5Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=hXaVpGqqToiZNRZTnPuTvkrof7XCekzeFTv2omJ7ql0=; b=AedjYmn7hE/p3uDD7QiWuT1toSoLsgkPvFTzo3oZ68CKmeo5PhIHspiMFWKrRULXVF OM7raBtNL55YpnbjmD9kFn0SS9u/aznrHeOaUG+RxKAKCJi37x+ZGez6e/DkVOHfrcA8 MzUncnQvW1RrusNLnCQPlsts8NZagVQYi5DuK+k8jB9sTUC4Vv8Waud1y5nHPPSar48b iuxRnVitr0DFj2sbmqPE94JOlnYYvCY6W1YJKhsFi4THU5joKE8EN/EiYq4maWUqmyn5 Z+n52fbO03kmEt3H6VbE9tUDC5UjPO7sCK///FCwMLFHBMyOCA/vSU94az/kWSgQpta9 KBiw== X-Gm-Message-State: APjAAAWm4Os9h8fDqarTob9bq4WJnyEhJIFLhMWURT1Sv8mxAtD91fhK 2NRHoA60ZvYyrgrhi7mVpo8= X-Received: by 2002:ac8:4e43:: with SMTP id e3mr1879990qtw.129.1582764067329; Wed, 26 Feb 2020 16:41:07 -0800 (PST) Received: from auth2-smtp.messagingengine.com (auth2-smtp.messagingengine.com. [66.111.4.228]) by smtp.gmail.com with ESMTPSA id i14sm1991310qtm.60.2020.02.26.16.41.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Feb 2020 16:41:06 -0800 (PST) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id 24F7B210B8; Wed, 26 Feb 2020 19:41:06 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 26 Feb 2020 19:41:06 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrleehgddvjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepuehoqhhunhcu hfgvnhhguceosghoqhhunhdrfhgvnhhgsehgmhgrihhlrdgtohhmqeenucffohhmrghinh epkhgvrhhnvghlrdhorhhgnecukfhppeehvddrudehhedrudduuddrjedunecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepsghoqhhunhdomhgvsh hmthhprghuthhhphgvrhhsohhnrghlihhthidqieelvdeghedtieegqddujeejkeehheeh vddqsghoqhhunhdrfhgvnhhgpeepghhmrghilhdrtghomhesfhhigihmvgdrnhgrmhgv X-ME-Proxy: Received: from localhost (unknown [52.155.111.71]) by mail.messagingengine.com (Postfix) with ESMTPA id 9680B328005D; Wed, 26 Feb 2020 19:41:05 -0500 (EST) From: Boqun Feng To: linux-kernel@vger.kernel.org Cc: Alan Stern , Andrea Parri , Will Deacon , Peter Zijlstra , Boqun Feng , Nicholas Piggin , David Howells , Jade Alglave , Luc Maranget , "Paul E. McKenney" , Akira Yokosawa , Daniel Lustig , Jonathan Corbet , Mauro Carvalho Chehab , "David S. Miller" , Rob Herring , Greg Kroah-Hartman , Jonathan Cameron , linux-arch@vger.kernel.org, linux-doc@vger.kernel.org Subject: [PATCH v3 3/5] Documentation/locking/atomic: Introduce atomic-tests directory Date: Thu, 27 Feb 2020 08:40:47 +0800 Message-Id: <20200227004049.6853-4-boqun.feng@gmail.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200227004049.6853-1-boqun.feng@gmail.com> References: <20200227004049.6853-1-boqun.feng@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Although we have atomic_t.txt and its friends to describe the semantics of atomic APIs and lib/atomic64_test.c for build testing and testing in UP mode, the tests for our atomic APIs in real SMP mode are still missing. Since now we have the LKMM tool in kernel and litmus tests can be used to generate kernel modules for testing purpose with "klitmus" (a tool from the LKMM toolset), it makes sense to put a few typical litmus tests into kernel so that 1) they are the examples to describe the conceptual mode of the semantics of atomic APIs, and 2) they can be used to generate kernel test modules for anyone who is interested to test the atomic APIs implementation (in most cases, is the one who implements the APIs for a new arch) Therefore, introduce the atomic-tests directory for this purpose. The directory is maintained by the LKMM group to make sure the litmus tests are always aligned with our memory model. Signed-off-by: Boqun Feng --- Documentation/atomic-tests/README | 4 ++++ MAINTAINERS | 1 + 2 files changed, 5 insertions(+) create mode 100644 Documentation/atomic-tests/README diff --git a/Documentation/atomic-tests/README b/Documentation/atomic-tests/README new file mode 100644 index 000000000000..ae61201a4271 --- /dev/null +++ b/Documentation/atomic-tests/README @@ -0,0 +1,4 @@ +This directory contains litmus tests that are typical to describe the semantics +of our atomic APIs. For more information about how to "run" a litmus test or +how to generate a kernel test module based on a litmus test, please see +tools/memory-model/README. diff --git a/MAINTAINERS b/MAINTAINERS index ffc7d5712735..ebca5f6263bb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9718,6 +9718,7 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev F: tools/memory-model/ F: Documentation/atomic_bitops.txt F: Documentation/atomic_t.txt +F: Documentation/atomic-tests/ F: Documentation/core-api/atomic_ops.rst F: Documentation/core-api/refcount-vs-atomic.rst F: Documentation/memory-barriers.txt -- 2.25.0