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=-6.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNWANTED_LANGUAGE_BODY, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham 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 11967C43463 for ; Mon, 21 Sep 2020 11:38:06 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A654C20BED for ; Mon, 21 Sep 2020 11:38:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Zf/bAd3l" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A654C20BED Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=CXFcw7JB7bBqbN+WZPZtNGGizZEP3ya+lvl5ExFUz+k=; b=Zf/bAd3lGfZE2J7Mnt6s3LeT3 Pvkx0/pAFIEVYkMFnfWFKZ9NKINicpYfpWiluYjWsjYWjrPVJ2O94WMiTHJq/VFOKWbevFS75qf5l rWr98O65mLm6K09tIAi+Dc1LL0m32CZJguWCbEcY0tsblOVNazMn282cYKN828/pMsHi9a+KGEx88 5xY8qVyJ26pfMArZvErVahBnTtdQHuUsI+A0l/3OCjiMTW6ALe01ugWkaBAX+4wWiiFeHwp0z9TW3 DMY4G0g5ryYLkwRoaY05Io+1UzSm/K/VVNCeCn8/yGNZGZJG2QY93DY8qASF7AYMVsLHTNFBefeS0 2bGXPbSOg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kKK7e-0006Kx-FC; Mon, 21 Sep 2020 11:36:42 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kKK7b-0006Jv-PX for linux-arm-kernel@lists.infradead.org; Mon, 21 Sep 2020 11:36:40 +0000 Received: from gaia (unknown [31.124.44.166]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DA9F52071A; Mon, 21 Sep 2020 11:36:36 +0000 (UTC) Date: Mon, 21 Sep 2020 12:36:34 +0100 From: Catalin Marinas To: Amit Daniel Kachhap Subject: Re: [PATCH 1/6] kselftest/arm64: Add utilities and a test to validate mte memory Message-ID: <20200921113633.GB13882@gaia> References: <20200901092719.9918-1-amit.kachhap@arm.com> <20200901092719.9918-2-amit.kachhap@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200901092719.9918-2-amit.kachhap@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200921_073639_895495_9851FF07 X-CRM114-Status: GOOD ( 14.63 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Shuah Khan , linux-kernel@vger.kernel.org, Gabor Kertesz , linux-kselftest@vger.kernel.org, Vincenzo Frascino , Will Deacon , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Sep 01, 2020 at 02:57:14PM +0530, Amit Daniel Kachhap wrote: > diff --git a/tools/testing/selftests/arm64/mte/mte_common_util.c b/tools/testing/selftests/arm64/mte/mte_common_util.c > new file mode 100644 > index 000000000000..ac311919567d > --- /dev/null > +++ b/tools/testing/selftests/arm64/mte/mte_common_util.c > @@ -0,0 +1,374 @@ > +// SPDX-License-Identifier: GPL-2.0 > +// Copyright (C) 2020 ARM Limited > + > +#include > +#include > +#include > +#include > +#include > +#include > + > +#include > +#include > +#include > +#include > + > +#include > + > +#include "kselftest.h" > +#include "mte_common_util.h" > +#include "mte_def.h" > + > +/* The temp file must be created in a tmpfs filesystem */ > +#ifdef ANDROID > +# define TEMPFILENAME "/storage/tmp_XXXXXX" > +#else > +# define TEMPFILENAME "/tmp/tmp_XXXXXX" > +#endif That's not guaranteed to be tmpfs (it's not on my Debian install). I think you'd have a better chance with /dev/shm/tmp_XXXXXX. -- Catalin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel