From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 02880CA9ECB for ; Thu, 31 Oct 2019 18:31:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BDA3021734 for ; Thu, 31 Oct 2019 18:31:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=nvidia.com header.i=@nvidia.com header.b="kw/uaPkD" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729288AbfJaSbK (ORCPT ); Thu, 31 Oct 2019 14:31:10 -0400 Received: from hqemgate15.nvidia.com ([216.228.121.64]:11080 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729275AbfJaSbK (ORCPT ); Thu, 31 Oct 2019 14:31:10 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Thu, 31 Oct 2019 11:31:16 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Thu, 31 Oct 2019 11:31:09 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Thu, 31 Oct 2019 11:31:09 -0700 Received: from rcampbell-dev.nvidia.com (172.20.13.39) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 31 Oct 2019 18:31:09 +0000 From: Ralph Campbell Subject: Question about where to put test drivers X-Nvconfidentiality: public To: Message-ID: <6123a6b8-5726-862a-dcea-0a7a90acbc19@nvidia.com> Date: Thu, 31 Oct 2019 11:31:09 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.0 MIME-Version: 1.0 X-Originating-IP: [172.20.13.39] X-ClientProxiedBy: HQMAIL107.nvidia.com (172.20.187.13) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1572546676; bh=OMBJ/nWGNXycE2q/AxDRA4P9ZYNTY0rwdjqx5QdTK+k=; h=X-PGP-Universal:From:Subject:X-Nvconfidentiality:To:Message-ID: Date:User-Agent:MIME-Version:X-Originating-IP:X-ClientProxiedBy: Content-Type:Content-Language:Content-Transfer-Encoding; b=kw/uaPkD7Qo/L4iQc9tr2SDQiY8GMqLRcTPGBuF37SFEQSNk4wyiQf1+1VdoatsRM YOlRgxxVDp1skycAcBvuR7DX77GPXuuFgXn4WQh7ECnpThnyQSz3pnW/Ngqetm99uM ZKudmLuOR8uWspR56hqfbqrkUCPP7U0Zf/m5xs06B/x3VEyI1qdO7lYsQAo68ZFK/9 3rrz9wZvVF9GdFvwZT+G/uiY89Ov7+Jabq9tckCq/TMOYpsZAU3iuJr6IEx1dqlV6i u1RdxyKjr2pV0z+ZXSioeYXCxgdwyER8nid140Peerm3Y+lDUVyy29hzlHVa65CFiX Np6UN4HiqpX5g== Sender: linux-kselftest-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org I'm planning to add some kernel self tests which use a user level program in tools/testing/selftests/vm/ and a kernel module. See: https://lore.kernel.org/linux-mm/20191023195515.13168-1-rcampbell@nvidia.com/ The question is where to put the kernel module source code. I see some test modules that are in lib/test_*.ko and my patch initially placed the hmm-dmirror module in drivers/char/ since it creates a character device. Any advice?