Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3069522pxk; Mon, 21 Sep 2020 04:38:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTal6yt2teJx2Y45NqOzqvxBcT1g2kXLoG/BETyB2BRDXgI06Q63h3+yceTuxQhtsT97AT X-Received: by 2002:a05:6402:1819:: with SMTP id g25mr50124096edy.292.1600688307244; Mon, 21 Sep 2020 04:38:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600688307; cv=none; d=google.com; s=arc-20160816; b=Mqo8oKi0bb70+UmAOsZOtas/cIu6M3NaFc+dpoxS+MwNpWDEel9H/5Z50flOWkCbyL VqjrEtApZmPAqOxekwUUARl5x+NC1XjSCZ0quAxpy+CZnR/Zt84prLExxgeVNo71+w1e yKbx9dsysxtIkUobizZMDavjjtPMdEHjEYda3FHqlBD0Oc6DE7xoHntFgLw3ZoKyXiBE vpH4H5m/mq7POuh9gZm/pqTP+avTHRR6Fw2+ZiMTUdXPfme7zFaYJwfJtsmwygBtN+zD NhXVeGGAhNscCr8JjCCLmsoSJva/Fem3YORLUuo9a3fnW4r+o0i6wbNcCi7ZA5kQ6lEa PvgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=2DzTc4nQLAV8MbMXC0Qmy+1W/48AU9PgJE9kdLwp1DQ=; b=FnZwxIB+yKwwSYtwV40ncReCCKM/niFLpte6AJSerlncbLw9kNlEQxYphD9peqRZtP BgOjHv0t1ZT/7Tb4VZlqfiPmsFVCzYZ3xLPbcwHm2xSadxjiccHkW0p1UiziEcc14b7K r56jv+4J8NKQXEJBHV96FwnbesraLDAua/DavZwBCI66S64yDUSEBkE5ZfukGgGabReT lgl9XV9ww4VXGCq3vglAxp0mSOkBxncbJwuKEy2tMd1SJdsFVR9F641AjfLaTlxukBL4 fAoXOEDvNJfr70FWxffFW5YpIlEndKC3zufMqyFFj0DV369VaCODmbHR/CEluIWsU06G i9BQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b36si8155449edf.526.2020.09.21.04.38.03; Mon, 21 Sep 2020 04:38:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726767AbgIULgj (ORCPT + 99 others); Mon, 21 Sep 2020 07:36:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:58274 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726460AbgIULgi (ORCPT ); Mon, 21 Sep 2020 07:36:38 -0400 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 Cc: linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan , Will Deacon , Vincenzo Frascino , Gabor Kertesz 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200901092719.9918-2-amit.kachhap@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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