Return-Path: Received: from mail-pf0-f193.google.com ([209.85.192.193]:37986 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751358AbdKUPbf (ORCPT ); Tue, 21 Nov 2017 10:31:35 -0500 Received: by mail-pf0-f193.google.com with SMTP id r62so10078253pfd.5 for ; Tue, 21 Nov 2017 07:31:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:cc:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=ahRkHJdybJe+uI1gipliRIOPmx/02PPC8pb7y/0dKmk=; b=ehuaVGsP3SMH0qwq1w0ItNGfZMX7mzrq0O0VCctbnP1p/vj28WZ9sARzMwt4d9g9ud 6SDy0iDHfWau1mgu2WfRNHAp6GWjYrm8TnOErvn79DGc7irzkhBwvRTa0U1z6N2JZFiK bGIC1IS82LIf6cmUMCRGwmHM70Zb96sGxZNBaWVKhMgiSRN3uXETE7TeB7ci40YDa9On G8IHyVN2B9NvmcOewFYqNc0NKnPfFxPlvWFolJ2s0YiTiPOmhCDsp3mem+mPxHlg3qj2 0JhuiuKLmS0fQPvVsTaHO+wjGDckpTGC0LHDG/hT4w6a2nMfTvyu+Kgeud4feJgmXyer 3ZEA== From: Akira Yokosawa Subject: [PATCH 0/2] Add Makefile in CodeSamples/formal/herd Message-ID: <69e0b7af-2f20-a5ee-ae04-99ae04659adb@gmail.com> Date: Wed, 22 Nov 2017 00:31:30 +0900 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: perfbook-owner@vger.kernel.org List-ID: To: Akira Yokosawa Cc: perfbook@vger.kernel.org, Akira Yokosawa From 180abe9a72d4e3fbe200ce2a032a6c616a70ce03 Mon Sep 17 00:00:00 2001 From: Akira Yokosawa Date: Wed, 22 Nov 2017 00:04:40 +0900 Subject: [PATCH 0/2] Add Makefile in CodeSamples/formal/herd Hi Paul, This is my attempt to add Makefile in CodeSamples/formal/herd. The recipes here assumes that the memory-model's repository resides beside the perfbook's repository on your machine. The targets include conversion of litmus7 compatible tests under litmus/ directory to herd7/klitmus7 compatible ones, running converted litmus tests by herd7, running herd7 benchmark tests by herd7, and preparing directory for klitmus7 cross-compile of converted tests. Currently, there is no test other than benchmarks under herd/ directory which is not compatible with litmus7. When such tests are added there, the Makefile can be updated to run and cross-compile them along with the converted tests. Patch #1 adds the Makefile and a helper script. Patch #2 is a fix of compiler warnings revealed in klitmus7 cross- compiling. These C-WWC-o+o-* litmus tests were modified by me in this August. That looked sufficient for litmus7, but definitions in kernel header files used in klitmus7 aren't satisfied. The change here is the result of some try-and-errors. There can be smarter way to describe these tests. They are not used in the text at the moment, so their fix is not urgent, I suppose. Thanks, Akira -- Akira Yokosawa (2): CodeSamples/formal/herd: Add Makefile and utility script CodeSamples/formal/litmus: Fix type of 2:r2 in C-WWC+o+o-*.litmus test CodeSamples/formal/herd/.gitignore | 4 ++ CodeSamples/formal/herd/Makefile | 60 ++++++++++++++++++++++ CodeSamples/formal/herd/litmus2herd.sh | 20 ++++++++ .../formal/litmus/C-WWC+o+o-data-o+o-addr-o.litmus | 9 ++-- .../formal/litmus/C-WWC+o+o-r+o-addr-o.litmus | 9 ++-- 5 files changed, 92 insertions(+), 10 deletions(-) create mode 100644 CodeSamples/formal/herd/.gitignore create mode 100644 CodeSamples/formal/herd/Makefile create mode 100644 CodeSamples/formal/herd/litmus2herd.sh -- 2.7.4