Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5210758rdb; Wed, 13 Dec 2023 02:04:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IF1rYgFnFT/zx+jAhsj+QHNNV7ICoHd76BOMdI9JEFTd3RfRJ1vhmU6eA5q+6m3fauavf4z X-Received: by 2002:a17:902:8691:b0:1d3:5229:cf38 with SMTP id g17-20020a170902869100b001d35229cf38mr79087plo.6.1702461866403; Wed, 13 Dec 2023 02:04:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702461866; cv=none; d=google.com; s=arc-20160816; b=CocL0/hKVvwJwmlWSsgrtDhDqIYoM70ZYWUOpWb0oELg7X7F8q+FuNBO+02rNPkdgT xfOV/eQ+5HJe3tBYWJg9LchXTCTiq3IzW64+ul7jKSqQBIT5+aj1RuTfmUpunWn7aJJF HswQKE0oNGTN8R3yPFNHBZotOSAAaIPTswvyetwwBi8sF50bH2W6LIm3FwZkiENzv68y OWSs9Is23NY0HCA+QeczgsckP4lnkzdyheq57uCwBzU9rm6E54RgzbwEb/gx9619RFMQ 28aRqkkA89Gt7vAotYamvYgnGqYbcaPd/eMYwFVtjDId+CFfONsahv5/ExKgmAdbdgig ZwpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:autocrypt:from:references:cc:to:content-language :subject:user-agent:mime-version:date:message-id:dkim-signature; bh=JJhC2mLo7M1xrewt5LCijIe6486cl8jsTWSgbKFncqI=; fh=I+J0rKWQwGLA7n6sBhImLie28a5MzXuh+fmn2LkBudo=; b=tIsr9EnvTp2SaXUB2MDCuVNMPRkTTRX5cS3lU6cDHrwkXQ66Fz9/zUzZvJ7tTixJMG Ei3sa1QZy/75lxyJex1ilq3UcZsUBW7YhnDF1Nbwyyp9RFul3Dt66vwDKf0Y79bNRQ82 k2nOg2AuJ0GLjVYizqTpKkoUgPP92RRMU4b4Ud0E4vkRJw4N0/zpN87ZMolH4ft4gMMP n/zBy43UpEPXdk/1lofxT8yHHyoUJ9+GxKlNLu4dl0ViTd1eDB5/Sne2s+66m9amFHs4 RKpln5hHRdhzECFGjQmRDKhcBJhL+9C+eOng0PZip1/W/i8rWZ5hcnp3Clz8uMyWvOmR C/CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=O3M8U46D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id a15-20020a170902eccf00b001cfbf025320si9680487plh.346.2023.12.13.02.04.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 02:04:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=O3M8U46D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id B0D658205FEE; Wed, 13 Dec 2023 02:04:23 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235281AbjLMKEI (ORCPT + 99 others); Wed, 13 Dec 2023 05:04:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235255AbjLMKEE (ORCPT ); Wed, 13 Dec 2023 05:04:04 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 983D911B for ; Wed, 13 Dec 2023 02:04:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1702461848; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=JJhC2mLo7M1xrewt5LCijIe6486cl8jsTWSgbKFncqI=; b=O3M8U46D4F1Fy1m7a+rNl/w+roxi/Y3GJRO89iPtULnbTZmIOBlIrOm9ENT8odHdqt+M0q rmOgn3LHWge8pfEH5tJrWGFbqqArN4CLJQ6+C/jufOGXhKvFdgV3FM8eUm3DxLRMfyX2Eh 9UBBqcGg+ObJ0CpeBgxlyjUGvt+S1w4= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-510-syk0HtzQO4mCpWZyIC47IQ-1; Wed, 13 Dec 2023 05:04:07 -0500 X-MC-Unique: syk0HtzQO4mCpWZyIC47IQ-1 Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-40c3f0f88e3so27205705e9.0 for ; Wed, 13 Dec 2023 02:04:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702461544; x=1703066344; h=content-transfer-encoding:in-reply-to:organization:autocrypt:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=JJhC2mLo7M1xrewt5LCijIe6486cl8jsTWSgbKFncqI=; b=XfWoDzZbzcGvuodX6cITXc4VvxIfJDcAKfuNFG84zEIBX6Bk4v+2t5nKa0ke6AUzpR xmvb4YqYCdA1Xt0Q/xx/cSaKb+DX5dbJZoCOj74FbDN3wQ34rnaT1L8C13hPGDCfkNKn 6k/UhRFHKwKTbDdQYxGP8cLHKFWIT4cw138r/RJA7VcNJNYRbv3YOZ/4P/ukOK5nUQ5N kH/7cEB781qfPnvMBesuSJBKYkZVP2j9HOENz956uvCTKRajwV7aHUNoyn49mof4gaqj 0s/EhqUSdSp11oi1FgxOc+kKZ7bfax+30KjlisM/SX2YfVLpJOYFWSXeHO6Mgu50GFuc 2IxA== X-Gm-Message-State: AOJu0Yz1HfiqCPSfDMjGA+NAkqbj+qLHuYfwrmLQcTuN649DWj49hHd6 ujeYXVZWh7Us3sBglg+Z8+BodLWJupdwVepTCsqDZ/4Ub2fRj04pSHuLkMgqiqzuvSbwzZR+/rj XkBzQhz2zKzl1rVDrHwLxeCIa X-Received: by 2002:a05:600c:1715:b0:40c:2bb5:f86 with SMTP id c21-20020a05600c171500b0040c2bb50f86mr3930718wmn.74.1702461544277; Wed, 13 Dec 2023 01:59:04 -0800 (PST) X-Received: by 2002:a05:600c:1715:b0:40c:2bb5:f86 with SMTP id c21-20020a05600c171500b0040c2bb50f86mr3930684wmn.74.1702461543853; Wed, 13 Dec 2023 01:59:03 -0800 (PST) Received: from ?IPV6:2003:cb:c709:6e00:7e5:5f4d:f300:5d52? (p200300cbc7096e0007e55f4df3005d52.dip0.t-ipconnect.de. [2003:cb:c709:6e00:7e5:5f4d:f300:5d52]) by smtp.gmail.com with ESMTPSA id fc7-20020a05600c524700b0040c44cb251dsm12118228wmb.46.2023.12.13.01.59.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Dec 2023 01:59:03 -0800 (PST) Message-ID: <783a4178-1dec-4e30-989a-5174b8176b09@redhat.com> Date: Wed, 13 Dec 2023 10:59:01 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 5/5] selftests/mm: add UFFDIO_MOVE ioctl test Content-Language: en-US To: John Hubbard , Muhammad Usama Anjum , Mark Brown Cc: Suren Baghdasaryan , akpm@linux-foundation.org, viro@zeniv.linux.org.uk, brauner@kernel.org, shuah@kernel.org, aarcange@redhat.com, lokeshgidra@google.com, peterx@redhat.com, ryan.roberts@arm.com, hughd@google.com, mhocko@suse.com, axelrasmussen@google.com, rppt@kernel.org, willy@infradead.org, Liam.Howlett@oracle.com, jannh@google.com, zhangpeng362@huawei.com, bgeffon@google.com, kaleshsingh@google.com, ngeoffray@google.com, jdduke@google.com, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-team@android.com, Peter Zijlstra References: <50385948-5eb4-47ea-87f8-add4265933d6@redhat.com> <6a34b0c9-e084-4928-b239-7af01c8d4479@sirena.org.uk> <3240f4b5-081b-4075-851a-7d1cd86f4333@redhat.com> <3eadd79c-c02a-495f-92c0-0315046ef59f@nvidia.com> <3d22f342-280f-4a44-87f4-8cca291cfce7@sirena.org.uk> <0f97db9c-5b86-4f56-8463-2520fe79f709@sirena.org.uk> <2e4a719b-f2b3-48db-99db-d96040d78b12@collabora.com> <0d68fe7f-2a96-467d-87b0-52db36704e1d@nvidia.com> <926b42f9-3689-480f-8dd5-78fc0ee6088d@nvidia.com> From: David Hildenbrand Autocrypt: addr=david@redhat.com; keydata= xsFNBFXLn5EBEAC+zYvAFJxCBY9Tr1xZgcESmxVNI/0ffzE/ZQOiHJl6mGkmA1R7/uUpiCjJ dBrn+lhhOYjjNefFQou6478faXE6o2AhmebqT4KiQoUQFV4R7y1KMEKoSyy8hQaK1umALTdL QZLQMzNE74ap+GDK0wnacPQFpcG1AE9RMq3aeErY5tujekBS32jfC/7AnH7I0v1v1TbbK3Gp XNeiN4QroO+5qaSr0ID2sz5jtBLRb15RMre27E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B boaBTPHSy/Nksu0eY7x6HfQJ3xajVH32Ms6t1trDQmPx2iP5+7iDsb7OKAb5eOS8h+BEBDeq 3ecsQDv0fFJOA9ag5O3LLNk+3x3q7e0uo06XMaY7UHS341ozXUUI7wC7iKfoUTv03iO9El5f XpNMx/YrIMduZ2+nd9Di7o5+KIwlb2mAB9sTNHdMrXesX8eBL6T9b+MZJk+mZuPxKNVfEQMQ a5SxUEADIPQTPNvBewdeI80yeOCrN+Zzwy/Mrx9EPeu59Y5vSJOx/z6OUImD/GhX7Xvkt3kq Er5KTrJz3++B6SH9pum9PuoE/k+nntJkNMmQpR4MCBaV/J9gIOPGodDKnjdng+mXliF3Ptu6 3oxc2RCyGzTlxyMwuc2U5Q7KtUNTdDe8T0uE+9b8BLMVQDDfJjqY0VVqSUwImzTDLX9S4g/8 kC4HRcclk8hpyhY2jKGluZO0awwTIMgVEzmTyBphDg/Gx7dZU1Xf8HFuE+UZ5UDHDTnwgv7E th6RC9+WrhDNspZ9fJjKWRbveQgUFCpe1sa77LAw+XFrKmBHXp9ZVIe90RMe2tRL06BGiRZr jPrnvUsUUsjRoRNJjKKA/REq+sAnhkNPPZ/NNMjaZ5b8Tovi8C0tmxiCHaQYqj7G2rgnT0kt WNyWQQ== Organization: Red Hat In-Reply-To: <926b42f9-3689-480f-8dd5-78fc0ee6088d@nvidia.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 13 Dec 2023 02:04:23 -0800 (PST) On 13.12.23 06:55, John Hubbard wrote: > On 12/12/23 21:52, John Hubbard wrote: >> On 12/12/23 19:58, Muhammad Usama Anjum wrote: >>>> ... >>>> Oh, this sounds like it would work nicely. No more "make headers" >>>> required (hooray!). Instead, the new approach would be "selftests are >>>> allowed to include from tools/include", and then we can just start >>>> copying the files that we need to that location, and gradually fix up >>>> all the selftests. >>> No, this wouldn't work. >>> * The selftests are applications which include default header files. The >>> application don't care from where the header files are picked up at >>> compile >>> time. We should be able to build the application on normal system with >>> latest headers installed without any changes. >>> * The header files cannot be included directly as they need to be >>> processed >>> first which is done by `make headers`. Here is a diff between kernel fs.h >>> and processed header file to be used by applications: >> >> Well, that's not the proposal. The idea is to snapshot various uapi/ >> headers >> into tools/include, just like what is already being done: >> >> $ diff ./include/uapi/linux/fs.h ./tools/include/uapi/linux/fs.h >> $ > > Oh sorry, that's exactly what you were saying you don't want. ahem. :) > > Another variation though, would be to run "make headers", and snapshot > some of those files into tools/include. ^ this is what I had in mind If you're writing a test that needs some new fancy thing, update the relevant header. -- Cheers, David / dhildenb