Received: by 10.192.165.148 with SMTP id m20csp118735imm; Fri, 4 May 2018 07:36:12 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrpc4/BBVQueuT14G1OVvpwMxG1jhiPEcQ+HsQ165qPdwI3dEkV4eNF4Wrz2ZHgLyMJ+F+2 X-Received: by 2002:a17:902:7782:: with SMTP id o2-v6mr28906353pll.247.1525444572441; Fri, 04 May 2018 07:36:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525444572; cv=none; d=google.com; s=arc-20160816; b=i6hATO8BROIUatvFWyBM/xpC0aMCBMx2J7p63UYB7bFbsEriR5IcCdaR++vcSYrxt8 Q0RvmfNlZs5iWHrsClV+MMZFMmPNpS8RK5sj9O+pSZpjEyTQ1HL1GwStRWQykVa8bdAf LVD79dRncqkCape1Y6mcD3OosFjP/tkmuv1EWKVAE8PW1t/+JST1n03qCCymKBo+il3e 87D52NCEcEpB0nDsu7pX843Dtwy4Eb6iOiSfvhoV3lRm7X5+Adq35y4yuzfY8ITi4pZz qHLE8/AZHMPFhz2BkMMW+sd1XXKcTu9Ew0jHYWNWtNMenZUUd18jVY4BDehgE1Plkg0t aDPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:arc-authentication-results; bh=Ei+jTJiEi/l4X0DjpqovlW7MllvdTDdviHHKllWJ6vU=; b=GmcidBqAqIFqwTFYDjawDMe9rcvWBfrW9VngiVuJyuA3DCWaZM8j1xVCfwb1+MJq7J 1RouLGcd+vfH0T+eY6TTXH+tQJUyn7TUsg6CxbuTJ4wKvEBVZrclsmAvoq6g08it6czv qt2COS29dWdDKV5mrQqYCAn08jCUCUqHnijDpRAN3RW78R4urXbPCwC/GwY47KFJGxoY Wc9+cO5VenMtRAxjN2ZROGQy6/mq085lOC4GVwwUuUAHk4EuM2bf4G7Z1gyG+UjzkjYI JG2V7vu2sWUiLmJtBLxJjg/7I1FBiFNWnRCgJJ9uTRy5l/HbBTsAOjHb1IL866mDQO1s 64nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=Kp0gimhy; 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=virtuozzo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m39-v6si16082628plg.570.2018.05.04.07.35.57; Fri, 04 May 2018 07:36:12 -0700 (PDT) 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=@virtuozzo.com header.s=selector1 header.b=Kp0gimhy; 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=virtuozzo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751311AbeEDOfs (ORCPT + 99 others); Fri, 4 May 2018 10:35:48 -0400 Received: from mail-eopbgr10138.outbound.protection.outlook.com ([40.107.1.138]:12257 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750820AbeEDOfr (ORCPT ); Fri, 4 May 2018 10:35:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Ei+jTJiEi/l4X0DjpqovlW7MllvdTDdviHHKllWJ6vU=; b=Kp0gimhy7ac2J6VL9LN5oyPZUPT/spaUdWnahe5hj8qVkbqNxNUu6TQhSNK6FUbvyW76wAYi1xxpZ8bB1MtGMFZTudB0Fa2ri++seoMnh85zBwjuYTB3bfKZaBfR+JUsiKVLuN19BSqKsz6QvsVXyZ1V47/d/rKdwX8K06jl3b4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=aryabinin@virtuozzo.com; Received: from [172.16.25.12] (195.214.232.6) by AM0PR08MB3251.eurprd08.prod.outlook.com (2603:10a6:208:5e::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.715.20; Fri, 4 May 2018 14:35:42 +0000 Subject: Re: [PATCH 2/3] kcov: prefault the kcov_area To: Mark Rutland , linux-kernel@vger.kernel.org Cc: akpm@linux-foundation.org, dvyukov@google.com, mingo@redhat.com, peterz@infradead.org References: <20180504135535.53744-1-mark.rutland@arm.com> <20180504135535.53744-3-mark.rutland@arm.com> From: Andrey Ryabinin Message-ID: <2389e204-1b78-00a8-d69d-0ca4969be1fd@virtuozzo.com> Date: Fri, 4 May 2018 17:36:49 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180504135535.53744-3-mark.rutland@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: HE1PR0902CA0043.eurprd09.prod.outlook.com (2603:10a6:7:15::32) To AM0PR08MB3251.eurprd08.prod.outlook.com (2603:10a6:208:5e::20) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:AM0PR08MB3251; X-Microsoft-Exchange-Diagnostics: 1;AM0PR08MB3251;3:oaAN/8tvT2JvlKuUoTE4PSKnIWvDtY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0JPSJo8CNfO2hi39a1cX5f0fAgF3sAmXKgP5pvQUatHi79Lg7Sy1Dp804UBZfUB18YxTahmTK62/AFSnghuGy0R9iLVzN7YaDRqS0Z05XeDZ419aU1n1c4IWapgU8bNvH1FTOPcXq/g85ZEKRx/sRbuLeV7C6FTlW/aVrB51iTf6PhOlV6uvhyg+b0Tob+R+/H63hQH2cBr3EKzkaBdRkQjFadf2VzHsT3H0VkBrgirV4s6mBtce3ylRiouDL3oG867syRvRQmqDzEoW0z3FlcHmo+0ChsqP8TqPKltconsuU6;4:V73teBJqT21zhnuEqgYP3KnmSISwV7qhKd/KcpePBhwkEsB1c1cSsYG74RGN/LXrbCzFXW/ci+AERH5oE4kBgX6Mh6kuHxeD6Cb8aOdXR9skSG9oOVC3EsxlGwhpBymDgTMdODxX/S57tOyjSfboKpOaQZsKcSTDQwN0r/roPr8FTmLcji80C+48v2JMHAxLm+f8pfHVof/6MMKbnuteOKgZamLORZLxciW/yM0yGvr+XDvhSSnzJrkKUEEv0TdC7qtYIIcCt90DnnHhj41FUQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(3231254)(944501410)(52105095)(10201501046)(6041310)(20161123560045)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(6072148)(201708071742011);SRVR:AM0PR08MB3251;BCL:0;PCL:0;RULEID:;SRVR:AM0PR08MB3251; X-Forefront-PRVS: 06628F7CA4 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6049001)(39840400004)(346002)(39380400002)(376002)(366004)(396003)(189003)(199004)(31696002)(105586002)(230700001)(53546011)(65956001)(26005)(4326008)(76176011)(65806001)(446003)(229853002)(55236004)(386003)(6246003)(106356001)(11346002)(53936002)(66066001)(6486002)(316002)(7736002)(86362001)(486006)(2486003)(23676004)(2906002)(52146003)(956004)(2616005)(47776003)(16576012)(68736007)(476003)(31686004)(81156014)(77096007)(50466002)(81166006)(5660300001)(6116002)(64126003)(8936002)(52116002)(97736004)(8676002)(478600001)(3846002)(36756003)(25786009)(186003)(58126008)(16526019)(305945005)(65826007);DIR:OUT;SFP:1102;SCL:1;SRVR:AM0PR08MB3251;H:[172.16.25.12];FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtBTTBQUjA4TUIzMjUxOzIzOjNXaFVRaGxRODZsZnoyYXJodS9OU2M0cUVu?= =?utf-8?B?b0p6UWc5Y1FaUzhtOG9aTG8reU9qdWZBb29XNGU0SlhjdUVDRWpXcjJuSzBt?= =?utf-8?B?bmV1ME92MHkreHZhVi8wV1JsUk5QaWtFRnRPNzZlZUw2U25HdStyKytJVkpt?= =?utf-8?B?QUtpOU1oNlRMUjE0c0pjOTNJMUlLcGpTS1VadmFYamVYYzNCd290UjFaTnJ1?= =?utf-8?B?OFhGRUpmUmwzU09uWUczYzJyV0dmQXU5RzVjdThQNjdwUnhXUVc1NVczVjY2?= =?utf-8?B?Vms0cC8rdnVEZVZBcDVCSnlNaWdMNG5XcEo3M1ZCZU82Z2VHMjRhWFJEbkJ5?= =?utf-8?B?QlEwMGM1T2JxblhtTmpBZThldWRhRk0veDJzaEI2NkwxTEpNSHh1K3JJZmhM?= =?utf-8?B?c3pPYWJpdmxYU2ZmTytNOGxJMVNrSmZtbkhzVlp5dXBsenAwd2hSeEppOVll?= =?utf-8?B?N1dNaHZ4dEFHNHUrd3pGSGNNRFJ6WjIzTmMvMXhCditpSjdtSUw3ZEN2bk0r?= =?utf-8?B?RklESnQ2a1oxREN4TkcrTkpxd2tYajRYeVBYR2xjZ2x1YVp2T0N1WXJmODZK?= =?utf-8?B?SzIxQ2dQeEV2b2hnZlZHbFVSU3M4WGlIQ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fhr5DnJmL25EcPKoMJMZEnEZvpOoctCN0y/gIwooq6gvZs5y4KvI8ULL7t5wJCVOeGCDL+eGdBhCn0Ec4APBrU+kp8yE4c677MLn+7pKLZN0zUbOQ==;5:n/vJFQR+2+KurdpMc+Vbp8P7AoFIkTTlSCDxW1e5msr6CdHSNcBThNKr+TRcOlml7paIoy1FfbHDJX5LopaP/fQckFl0s87p/mcNawWY/zwOHUTkqIxtK3rGyx573kzSLK6FSlD6fmRWAtdQUhdto29se4LStpphdv3U1WqxcSU=;24:detpGPEJrQ7NJUqaOOWF7xi8L107Iloi/++G/9A9mG9f7RRXxUAr1wnJlMVJLefOnx1t66aNWgeU8BXrjr6Mzm6GiwltucvBXOlptoRrths= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;AM0PR08MB3251;7:AlSH0j10IDDX6mBA1WFFl+jvqqRhBZfqTPXXJ1aTfps7a7AWTaV3pfM1h1M5qhibMmHddZiwaAUh2LbSIDRLKxC/SDZRRxealtMDB31T1f4Jhoa8bHX0GtGhROOW/7+pqYCCoDtIh4n0QK4ll5bEqRpN8YY5od1ikkI6QncVrP5mb7kCaZ+qOinpj90GC2yt6EBx/st5DUKMb1z15KTgdQqa+XmNNx+YJ5NdJ+l2L0sucMkQ+rggZUwtUgv615Vc;20:Tr2YM35wc0+eO1PTVkRa7In7Anuz+fkGTvho3R221s8O5m02sdN6c/x1biGlyxaTuOJrioOAZkCLNUf4EOYZdEJduY2js8wSF9jrL4lrvCmKDQ1ir1gSN/baXwP6bbhWgW0Y+gJ1+CEjCiEepHYD8iKa0C+iPUTwU6zbQ6BXDGI= X-MS-Office365-Filtering-Correlation-Id: c7e8feb5-122e-48fa-68af-08d5b1cc5118 X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 May 2018 14:35:42.9948 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c7e8feb5-122e-48fa-68af-08d5b1cc5118 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB3251 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/04/2018 04:55 PM, Mark Rutland wrote: > > +static void kcov_fault_in_area(struct kcov *kcov) > +{ > + unsigned long stride = PAGE_SIZE / sizeof(unsigned long); > + unsigned long *area = kcov->area; > + unsigned long offset; > + > + for (offset = 0; offset < kcov->size; offset += stride) { > + READ_ONCE(area[offset]); > + } Usually we don't use {} for a single statement blocks. > +} > +