Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp29970pxb; Wed, 30 Mar 2022 22:02:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOdf18jKbw401iLTPLAvYSbJfuXvsfGWACVpVk942Z9hRF2IO5kk1vbtK0Qc8SODs+G9eu X-Received: by 2002:a63:924e:0:b0:382:4fa8:e36d with SMTP id s14-20020a63924e000000b003824fa8e36dmr9140606pgn.426.1648702967307; Wed, 30 Mar 2022 22:02:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1648702967; cv=pass; d=google.com; s=arc-20160816; b=LIqe2ssxxkxJR9RBwvkwi3kjBtoXoPI7uexD6YdRsb5nPgWZtgGBnHefNSKTACwgXw VBHBwywHdkNxvAKftjUD9JkT9joF+NbS1VRmYMYdKlRu72gzNZFv8TBF6HQEfRW4lpwt y8nxmn1o7gDGcYzfVDRDZXmJp29v8uFTPN/5/AIG7UXsQ7Sm4/qAj5UwX+JbG7mjK+8U sspNf4g0kknEV7t0Pf5KcAAseTgG1LloLy/tin/0ybkKfJYzNEJE6eZ69WjjbKFw6XZb HAPAlDkNH4tH72e+C7LYBohJ+ZRiKeqiipUihM8KeMJ3X/Oy4VqXJyChMIzww/TwKQ67 467A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=gfE9HxwdfnxCj/hzPSNMwEoK+pBiJrRrtfdPHjR4KJE=; b=tWFciCINkca8YSF6SL3AJwivkDFhDJPkdMz+7DQCXuiowAVmJVG+0evRyjkYSdgQCk +gFpJlTjXcc/x4phr9PhWk4ZbZ+fH7i9B9g4C7teflj7dBqRojFt0XAVRhfh1CCgGdii rZGzPMvERZGwKoBmLpQXe7Ya8/mxeySfqDM2/egbSEbL+C68cNPGhILtX6LMsqIxLBiC t9LlCnHGGrGu7ZyIjGtpgH9gOFPW1Q7GmKLm+WfzFPA0YY+SCpl/uWH7W0SSblxAQsRW Z37kFwuyGG8o1C0m+I6f6M1+PsuaecnUlVn6IkJDZurh1FUeyjCj3LMRxEKnzHDljN/r r4IA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=lfYkgxs+; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=O+dkGK6B; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id r13-20020a63d90d000000b003816043ef3bsi22656893pgg.304.2022.03.30.22.02.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 22:02:47 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=lfYkgxs+; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=O+dkGK6B; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 84F8125F64F; Wed, 30 Mar 2022 20:38:26 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351421AbiC3VzM (ORCPT + 99 others); Wed, 30 Mar 2022 17:55:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344614AbiC3VzJ (ORCPT ); Wed, 30 Mar 2022 17:55:09 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F97415FED; Wed, 30 Mar 2022 14:53:23 -0700 (PDT) Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 22ULUf1O030446; Wed, 30 Mar 2022 21:53:15 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : content-transfer-encoding : content-type : mime-version; s=corp-2021-07-09; bh=gfE9HxwdfnxCj/hzPSNMwEoK+pBiJrRrtfdPHjR4KJE=; b=lfYkgxs+LO5ZQ/2z/3TG9/l2So5BWZmhrnwPk/6OSE/Hqz+2V04EJyMnEyM2HLULf+Jr LsKjqNXuVyOFPglUYe7pzxrxc3gJuvy4e8V/5VfN7W9O7oBmRf50IHMYVCg75kYbKP3U wSGjNM3vvkLSxQ5RVRqqhhA0ogzRerkMawCYSGWjWBf+NeHhstynjv+lmq9BEzjpayRx KWuPMeJenF1eaE1+VVgUF3Bl2XV0IyQKWCuPlqoI0ncYkHaKhEIP6SpJTwwhM2b/16ai BGhAijrgXK97sfCW5etUNjv3jvkaWzg6y0RsJ5CSpSo5IVzfKEJy+jHigYZ3fVaeZAIJ BA== Received: from aserp3030.oracle.com ([141.146.126.71]) by mx0b-00069f02.pphosted.com with ESMTP id 3f1se0js3y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 30 Mar 2022 21:53:15 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 22ULl2MN050760; Wed, 30 Mar 2022 21:53:14 GMT Received: from nam04-dm6-obe.outbound.protection.outlook.com (mail-dm6nam08lp2045.outbound.protection.outlook.com [104.47.73.45]) by aserp3030.oracle.com with ESMTP id 3f1rv8ftkk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 30 Mar 2022 21:53:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y+WVjt8Wk729DP6YabbqqpmZscyEmqnNSMbTyC6hT4oh3otNLoxDESiBV7pIr95kIAfVbaghDBDK/f/oDNHeGnyXVmxfL/3Xd1QMWzmIPTQz/FOqN6lP2KAB/BKjvRFOCvxWJAc+8KuxmS6KchEB7WmNJqNjC5IZd2YK+4dmUjj5cmHlXW1iAArFAp9qqOwiRVDPJ8vYtYKcOqwSaUqBwZj11AaMhVfN/3S4uXpnbeq/qVKW6u0XKv1vJJD6f380oE28PIqjnLZ24WdO+z98ng+bBMMbrZ401SGNg6pToG4KWBuO268KRM4toHktDNAJIHzRof7K2+UiyotoBNr1/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=gfE9HxwdfnxCj/hzPSNMwEoK+pBiJrRrtfdPHjR4KJE=; b=ZOA6VVyHjrm5C6oxexFxRLnNrspPTP8VRrSukHWUosTC3LpP36zlNDXmPhPOALqjQJvpioyYONdySyuudfxUMkLgXDy+La/62bUZmJrLjEoMFNm6gWqfsWgXIkCNjFrCdX318pCWSV4utrdII/NCWxdvPBlnNlwJUm8+gzAzO74dqRgGJ3VFpTUQWS0rjJwlZN8oKY2qVic2cHdJ7OxVL8GwVD/oiia3C5O8NdBC20idGzowrXZ+S9eyj+nxuMD6egv/SVSmMbOVhcUM5Ddr4+Zh3YCOcprTje3TcMbj+9S+MmFEALz2WFLR33Kjm8/jjsdR3ZYSqdoJBSOieblLWA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gfE9HxwdfnxCj/hzPSNMwEoK+pBiJrRrtfdPHjR4KJE=; b=O+dkGK6BecrENLxN8kL15Nz6FVA5/FYXRgIIdYCRXB2+RKBESrmpij/pA1AvWUnQHWaVH0wckKH8maZvpxghVCiQU8YcuUXEcseHMr4izM1W73xcmt0ehixTd5lY/R84fxwMy7G4b0Xk0WjC/WFRh8yrzAjxsi1h+CrUTAdIDz8= Received: from CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) by SN6PR10MB2702.namprd10.prod.outlook.com (2603:10b6:805:48::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5102.19; Wed, 30 Mar 2022 21:53:12 +0000 Received: from CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::a8c2:7a0b:5845:1675]) by CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::a8c2:7a0b:5845:1675%6]) with mapi id 15.20.5123.020; Wed, 30 Mar 2022 21:53:12 +0000 From: Sidhartha Kumar To: shuah@kernel.org, akpm@linux-foundation.org Cc: Sidhartha Kumar , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH] selftest/vm: clarify error statement in gup_test Date: Wed, 30 Mar 2022 21:52:57 +0000 Message-Id: <20220330215257.112029-1-sidhartha.kumar@oracle.com> X-Mailer: git-send-email 2.24.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SN4PR0401CA0041.namprd04.prod.outlook.com (2603:10b6:803:2a::27) To CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e3059185-b0bf-4d5b-570c-08da1297afb9 X-MS-TrafficTypeDiagnostic: SN6PR10MB2702:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KJdwd3KgkyhOJhroaOcZYyCkCoaKvgRuLKZY9n1WaK/CdJj6HFEzYa2a9tbqnwYGP+klD3Mrad0i06HDQPgXE1a2TSXlphdnMJvf99iiQ4+FEKqoxJndltFC7Kp1WiZYep73u8QOQxPKWF4WtZM3SH6cGO0OpfjjtpKUi1hPl8cIzRojuNnfLzEH530UP3ye7wBWBbgqUsRZx7sOV626t4NrKPVA0KjD5ZM/LyR7sjgwTQYyUkF4Go8ihz8WRjgIf0CRkAXx2OcPV22VZXnQ6yFZoFmRaYrAv3ID6OEL93mss8RxM7YtVY987k45EBYDRCkuOevr+p75BYShoWf+zSXQ62akqhiAtgW5t76j0YGvtzVKdUZ1Z0mTQPoI3x/DHv91U1dxDii730J0XZ0cCcYeepJdcJxjBERBTxCIubLHKE+z2QHN7zUUnvw2QpMR+H58kzNYnDqcxapc+mFJeq9f6un8Nkby8Ld+x3XJHExWvCaOOwraGaYHr75GywA5RVH/V5YeDsMv4FSEgm5hbF3sGOrHvOQDShV74e1xuVxStnsELKlrIQrjNsfJBhwYzj6fuYmV9E6H91Qv8WQz7BUMs0rUGQLxxlz52GcE9UmN4BfJGsTpIBXMhbtCNphKfKVUd2N31NbRqMWpWCDi6P9HIX9qgACmvpN/dYrFHh2aLWyvJz7biixE6S51wZUqW+8J9tqMxgbjGXL5xyr0Mw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CH0PR10MB5113.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(366004)(5660300002)(186003)(26005)(8936002)(83380400001)(1076003)(6486002)(508600001)(36756003)(6666004)(66476007)(316002)(8676002)(66556008)(2616005)(38100700002)(6506007)(44832011)(4744005)(52116002)(2906002)(66946007)(4326008)(86362001)(6512007)(38350700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?g9RHHRWfB1XaotkPFPqa3Tc/E7IswmZUNeQj+r3tBqCJ8BQ66j5PBgyJqNsY?= =?us-ascii?Q?kydKO+VZt6CxfR1DRe2353SsoePsgOp+h7Zm9RlczOOW35OfQf83i0YHJTlo?= =?us-ascii?Q?t2Iqk65IB3yLIJ5oyEEDTXXjQLrhfiKv/bWZ+NbIxwWhCAYT9o5v9yiXxrmR?= =?us-ascii?Q?lnH+RN36qoYKEDBUMlJ2MLLVynzkj5/u4ZdK/r/0tBO81r0fwrIP3gvfP0Y4?= =?us-ascii?Q?CqzNP+rI9TVxMIsOrAgf1FwuaFWDHPHxt6/SH+aDbufzCLbMdd/mrqVnb1kQ?= =?us-ascii?Q?ZLb1eTQQdyv7He9hsAVpnKRzYIiUQW7yhHjc7FCDGAPrszAv8tVV+xYpcAKK?= =?us-ascii?Q?Vk5KMXg37gvnd5QCw/TFdUAY680EfyAI55K78LHKhV/br3vbGG1K7SvN8QMb?= =?us-ascii?Q?Ko78QuC8NMw44+u3dUF0Qoczs/IHA4wWjxRXkSWrA9rq8WYG7BR0aRixJ8FC?= =?us-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FFt+a82ld/WSKOLRLQCbGvuQ4LJ4qFOx?= =?us-ascii?Q?lU8n1HaK4t6fjlPsuO8qRJM8A+NSiYfNGi+xIwXVllPNmc1MgSMYYZF7LDVp?= =?us-ascii?Q?m2WRb8wO3ol92HPS9dud2PDVUqtGH6kD2VqAJmp1VdG7EPRkjm7QCX6le1vQ?= =?us-ascii?Q?hpoBMDYkbEFRfBWqwWM7eBxjkYvOMnWkwuKlpDLpkCBg6dLYCx/49mhn7Yuv?= =?us-ascii?Q?T8PLVWUBf9zoU2z4pdIUwbqTbV24Aps9vqoui447GMirqEnL/BuxMEG6v6Tw?= =?us-ascii?Q?FG0Pvt9Qe+6hin86YoV7NmWHs+pEiBhdCJ6Z/32FiY3wzWxyUOyq7w73Wrgn?= =?us-ascii?Q?+h03PpDre+MVP7Mh56uTdTkz1FuTkaV3Vt0NxasjjQqNMtbtpfo+tThDQtoV?= =?us-ascii?Q?fwuu+pFF3NqDhToKJCsilhRn3wOVa88=3D?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: e3059185-b0bf-4d5b-570c-08da1297afb9 X-MS-Exchange-CrossTenant-AuthSource: CH0PR10MB5113.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Mar 2022 21:53:12.6835 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: fv3X4qrUPmKxHkT/7Hih/NNpXu6g0vkKKKxJOv0BSbDCVOF5NpDa44VauQMeiHsWUGvJUFNK8NIfDMRFELP7hKoUswdoTR9uNyKLoYDOxXs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR10MB2702 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10302 signatures=695566 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 spamscore=0 adultscore=0 mlxscore=0 phishscore=0 bulkscore=0 suspectscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2203300106 X-Proofpoint-ORIG-GUID: Kp-UZRmJ_nqIrzb0FcVSh-50d2uuJMlA X-Proofpoint-GUID: Kp-UZRmJ_nqIrzb0FcVSh-50d2uuJMlA X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Print two possible reasons /sys/kernel/debug/gup_test cannot be opened to help users of this test diagnose failures. Signed-off-by: Sidhartha Kumar Cc: stable@vger.kernel.org # 5.15+ --- tools/testing/selftests/vm/gup_test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/vm/gup_test.c b/tools/testing/selftests/vm/gup_test.c index fe043f67798b0..c496bcefa7a0e 100644 --- a/tools/testing/selftests/vm/gup_test.c +++ b/tools/testing/selftests/vm/gup_test.c @@ -205,7 +205,9 @@ int main(int argc, char **argv) gup_fd = open("/sys/kernel/debug/gup_test", O_RDWR); if (gup_fd == -1) { - perror("open"); + perror("failed to open /sys/kernel/debug/gup_test"); + printf("check if CONFIG_GUP_TEST is enabled in kernel config\n"); + printf("check if debugfs is mounted at /sys/kernel/debug\n"); exit(1); } -- 2.24.1