Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1094942imu; Fri, 9 Nov 2018 10:50:33 -0800 (PST) X-Google-Smtp-Source: AJdET5eiGXcTTWm6mZ3Frw7yZzmguONDPT0pTM3YvqUpCM9NTloY9F0CockFphJhPwFOw0/FZ+VE X-Received: by 2002:a65:6295:: with SMTP id f21-v6mr8497847pgv.167.1541789433666; Fri, 09 Nov 2018 10:50:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541789433; cv=none; d=google.com; s=arc-20160816; b=N/VHUq3FZbPjpNZLLuUDIWEfYMhHd0fFx0p2WSufhJZiurBsYYz/XrVQ8nSiwXr9F8 hIyLQFOo5jfagZ+852Cq6p0dSfI8yfadR3pcUUxqmVbBp1zJET4rN0AmLUU8mS9fxjMr oBMkUCt8np4d+sCMswKvesHX7RfCSoCyO6eAPN5KPHr7i+b5vq3yjFdPI+xTXEDl7L+7 4RmC+2nVoA8PgrbUfZPlyjLX/kg3059+aZlDMkwI0H5G1UuYhkPacADREQ0mt/enPIpM 4083gZcCDldcmYJRB3vjTJFLDmQafO02FGvr43od24xRog8mX/QSOMU6a7on+dotOMn+ 8O4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:references:in-reply-to:subject :content-transfer-encoding:mime-version:cc:to:from:message-id :dkim-signature; bh=LNt8LDY8VEI/4B0ghJVww5Nw4EOj0g1Gnn0F2TUIu7k=; b=BhF5a7mFDT7sSlgXAOrUqE9WioHyWKvHH+0xiTatVHquiXBC/+B0Ij3loysgLViDmh NY7+cPaCwMSWTYBq6ycDhF8Y1ejDPMMC9pejHAee5yfnmAXul0EFgr1U07tkL3xcYNJ7 XkldQEPAfSaOHCnN0y3xwm+AC8HhGo/RjHp15hhXA2H5CI2lCK0qOfQ6WRDuSQhUSday f5RmLkaKcXTB0tlRbX+nfqkL4Sl7LlOD1h0HixeHBBhOncfZz6NL399A9m4ruFTLNrQN 2NTB8o1++N+2cwrOzA8o3FL1o41NWacfNo0VdvifQdDJgoh1+Yaz2YrborQBBXxd0i1F 91Jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BYGOa0jZ; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q9si7198994pgi.89.2018.11.09.10.50.01; Fri, 09 Nov 2018 10:50:33 -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=@linaro.org header.s=google header.b=BYGOa0jZ; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728696AbeKJEan (ORCPT + 99 others); Fri, 9 Nov 2018 23:30:43 -0500 Received: from mail-qk1-f193.google.com ([209.85.222.193]:39370 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728162AbeKJEam (ORCPT ); Fri, 9 Nov 2018 23:30:42 -0500 Received: by mail-qk1-f193.google.com with SMTP id e4so3363179qkh.6 for ; Fri, 09 Nov 2018 10:48:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:from:to:cc:mime-version:content-transfer-encoding :subject:in-reply-to:references:date; bh=LNt8LDY8VEI/4B0ghJVww5Nw4EOj0g1Gnn0F2TUIu7k=; b=BYGOa0jZ7gadutGue3Y52mz/eEKMdDXusbJGun1/LaFimgRPl0u3lFsrC/3KcNpTsA 1z/DOzg5iglPDCkOBl1jSz0tkay40XWeav28JMwRAjNztTvq7s01xTteUr8F8NF1aCuR eO9h1kks+GSomXvK8CKoN4J+CxZNp5JMGcM64= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:from:to:cc:mime-version :content-transfer-encoding:subject:in-reply-to:references:date; bh=LNt8LDY8VEI/4B0ghJVww5Nw4EOj0g1Gnn0F2TUIu7k=; b=UiNCEL7AMMLdSJFsdXv8X4DZYvhpI39Eras6Bh145l8jnoLVZxTGrFBhuKh6LYrGKW cMwmpb7UFsIUIFDzEqIxMxbf3zxn+LxkLeRuihO78PFvEZnBxzJA/UKwl72F1c50aLyd FPl0OICebhB29/5F3KWITd/3jDyjENqMBW7H1aw2rmxtr6u2TtphBmGr8vsUDmtLuT+E eLqWrtW3abxI6u++FlUi4XbN2pjp/jZAsdlPmQ0VKc7NJek4B8sFnA2CenYeDX/oJYT7 sQFfOzJjA0j6lcv0f2WysHO2QyYVfZmxvsvG+WREe6snLXCY12xJlG1Ew2ONIh1W4BAW g09g== X-Gm-Message-State: AGRZ1gLz1EIPaN+cOY6UUNiTbGwUjqzzfQXuAZ2nFZmOdUQV6WBtmavO 5bpiOkR4VLUSw6Dam464XW2QZQ== X-Received: by 2002:ac8:955:: with SMTP id z21-v6mr9507301qth.305.1541789332021; Fri, 09 Nov 2018 10:48:52 -0800 (PST) Received: from auth2-smtp.messagingengine.com (auth2-smtp.messagingengine.com. [66.111.4.228]) by smtp.gmail.com with ESMTPSA id c187-v6sm3538228qkf.58.2018.11.09.10.48.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Nov 2018 10:48:50 -0800 (PST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailauth.nyi.internal (Postfix) with ESMTP id 907972211C; Fri, 9 Nov 2018 13:48:49 -0500 (EST) Received: from web3 ([10.202.2.213]) by compute1.internal (MEProxy); Fri, 09 Nov 2018 13:48:49 -0500 X-ME-Sender: X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 99) id 391C49E49A; Fri, 9 Nov 2018 13:48:49 -0500 (EST) Message-Id: <1541789329.305173.1571657968.7229F301@webmail.messagingengine.com> From: Rafael David Tinoco To: Cyrill Gorcunov Cc: adobriyan@gmail.com, akpm@linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, shuah@kernel.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-c0552f07 Subject: Re: [PATCH] proc: fix and merge proc-self-map-file tests In-Reply-To: <20181109180407.GO13195@uranus.lan> References: <20181108111105.GC13195@uranus.lan> <20181109113036.21512-1-rafael.tinoco@linaro.org> <20181109114123.GK13195@uranus.lan> <1541763936.3280758.1571224480.76F1EF1C@webmail.messagingengine.com> <20181109114850.GL13195@uranus.lan> <1541764873.3286172.1571234624.727F6284@webmail.messagingengine.com> <20181109180407.GO13195@uranus.lan> Date: Fri, 09 Nov 2018 16:48:49 -0200 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 9, 2018, at 4:04 PM, Cyrill Gorcunov wrote: > On Fri, Nov 09, 2018 at 10:01:13AM -0200, Rafael David Tinoco wrote: > > > > Alright, I'm fixing membarrier_test before, so.. I guess we have a competition.. =o) > > Rafael, Alexey, what about simply wrap the test code with x86 and extend later > with all archs which support zero address mapping? > --- > tools/testing/selftests/proc/proc-self-map-files-002.c | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > > Index: linux-ml.git/tools/testing/selftests/proc/proc-self-map-files-002.c > =================================================================== > --- linux-ml.git.orig/tools/testing/selftests/proc/proc-self-map-files-002.c > +++ linux-ml.git/tools/testing/selftests/proc/proc-self-map-files-002.c > @@ -23,6 +23,11 @@ > #include > #include > > +/* > + * Should run on archs which support zero address mapping. > + */ > +#if defined(__i386) || defined(__x86_64) > + > static void pass(const char *fmt, unsigned long a, unsigned long b) > { > char name[64]; > @@ -83,3 +88,12 @@ int main(void) > > return 0; > } > + > +#else > + > +int main(void) > +{ > + return 0; > +} > + > +#endif let me see if I got this right.. the premise for this test is to have *at least* 2 vmas, so we can check if the symlink for the mem range, describing the mapped area, is correct in procfs files, correct ? if yes, then why to have a totally duplicated test... just to check if mmap(0, ... MAP_FIXED ...) would work ? Wouldn't exist a better place to have such test ? like in tools/testing/selftests/vm/mmap-null.c or something like it ? genuine curiosity.. thinking i'm missing something about this test...