Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp18850rdb; Mon, 22 Jan 2024 10:28:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IEoTnk3/5v/SO5wDqxKZNkB4p1TEUolzKmzAlWQ0Bfk63Vn+0H5MetN+sGPWQDfQVj576nW X-Received: by 2002:a17:907:d509:b0:a28:d7b2:b9b with SMTP id wb9-20020a170907d50900b00a28d7b20b9bmr2849235ejc.32.1705948135284; Mon, 22 Jan 2024 10:28:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705948135; cv=pass; d=google.com; s=arc-20160816; b=b9tqveUaPi6fIE7qkfPrMCsa2ZA806nq4+7PRt3fcEqya27EmpJ228QAF7etiAlsTW yLftG4PGrhicpoRgwfE5ltdpTBoSCWgUeJaTCubCHbyZL8EimR5BkGHMtpSzcg+mdLrd 3r3Io4fUKKUkNqcKwT49SSXH3ykux6/b78+jWFBtwdpDUZDp9GKMcmDBSe/usYnj9gqh KuXGMhj1VhF7HZgVSx+SBESDrfZ1qtTMnj7vt2i1UyDg4y6b5xbrFDUB7GpSXOaxKFjo mnNn6Ao7wc+NjS41VQnjXGwpuHUdYURn8vINyztRWDv8O0/UoSm4s53ROl7uPpYDNRQs PXTA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=s9fIVUDS4JPjZqnrZBBkM7zrxIcZN1SBne4vcNi0x/g=; fh=fpUHlZ/nZQlt2MahjMrj3qqYvEK+ckjY0PoF+gxV41g=; b=qlanRcfg6FJ5Kw2EgY52lclpTmW2PRvLp46J8mPu53+jea940cSs3UUv6DfUzuP1vK Cq4YmTnDBYIl39xL0sEzF/AALNqYI6EhpDYG3HZWE2GY3cDktKN0shgbaKT8UpJc48ps 23LaMViJC3U96oD2JNLyBtTz994U498FJfdggbsA3EmeYAImlZ3dV+e8bATIfBR6v+W3 iPBWd4TidWjZkaCphboXQeIunJ/edjhkyAsKBqxGuYHn5MVci8tU3X/z/uwBLrC3wWtn e2xH3DFk5lvkzET199Iubq2yw54jj1zr33b1hb5Py/hS03OLu4yo9FSrZwl0bY7+QYea FEIQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=google header.b=BfY0v7rd; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-33837-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33837-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id jt11-20020a170906ca0b00b00a28d1339733si10878941ejb.674.2024.01.22.10.28.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 10:28:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33837-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=google header.b=BfY0v7rd; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-33837-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33837-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 221B21F2ABC5 for ; Mon, 22 Jan 2024 18:12:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 88A0758AD5; Mon, 22 Jan 2024 17:37:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="BfY0v7rd" Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9581059B69 for ; Mon, 22 Jan 2024 17:37:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705945042; cv=none; b=V2s5J7iVHtWTJHuuCcbdLFo87RODfR7NZGh6Z8i/02vMqYSaxPl4XJRjje6k3MzVCHT+/Z40YJ+eiCi9NLTFMtT7wZgZxkrhFbjheWQvIGga4IVwscWSfyUM1J9xx/CArPfbisnMX5neP0ld6m1tEiQvFdy0r4w5Arz17foXQyA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705945042; c=relaxed/simple; bh=m8kPm/j1LsdrYXYN+YQDJ7r2rWymD6BOjcIeRkuQtHQ=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=cMyZCcKfnHiKjkY+Eqa3a8Nkzqz+7cz7Z+5iQPVX/h916gxGvkTLJXHjfyIyjBRs1Cmrt56YfukiVTRNR6/XnZSDH1fkFG6xja5W6O4lXT/uV1/0Qqs0X6mu3fdffDVg3cUOwgvLmDkutV5Xv/TbmLj53dAZxHR+zeyvAmurSzk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=BfY0v7rd; arc=none smtp.client-ip=209.85.208.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Received: by mail-lj1-f174.google.com with SMTP id 38308e7fff4ca-2ccae380df2so33438761fa.1 for ; Mon, 22 Jan 2024 09:37:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1705945038; x=1706549838; darn=vger.kernel.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=s9fIVUDS4JPjZqnrZBBkM7zrxIcZN1SBne4vcNi0x/g=; b=BfY0v7rdDpiZmmLYYWoDuF0YGEp4K60GdHWqajby71boVGC+Cx4MCVWe2LEGjUDLSF W3PgujIF3cQnKaeevPdoqwDC4p6jFFYyZC89Tcpww66tRVUTjpmO19rM2IVK4h9YavVy 9mbH4cJuneSFhXQkUvwKzqhmvxCqSEmMIQKFGPsvDMxGvVVTPzJrdeEn6xME3pz3EIFF XbobTiM2JA5pM8Bov8H4Bd+3voY0WLU95PnjM5MZmHUxd5ZwsYQxSJVmgnb5HCsSfxYt pEbW56jgInd/J19p/bpeQ9bRZEezjH6CP2j93CvjnuNANu4L4357o86RMqe23ct+Si3A rf1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705945038; x=1706549838; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=s9fIVUDS4JPjZqnrZBBkM7zrxIcZN1SBne4vcNi0x/g=; b=J2m3jjChfkiHC7ShytuZ1Ap+05x6aaEy9YqaSf9un3hKr82+TRVNbsJk+OoZ+V16en SL9D7+M/N/NUREwzzqkf9GQ47AisSer+QgZas5LkyJauxaui3r8D1vp+rWj6ny7URdZP I52IbUxXzbCLFwZmQzE70pj7vdqHYSpoHiylGrDzXmOxqHGSd1F8v8IzaogWajZEZqHI /t7Ck9cbEfg8qCxE630jvf5/vZ+nKQWZMOZubB83tkcvP6ToQEZKSJ8QJPYh2BJJRfKm gUuxQ9FyzB/lUQKM4jLdgPR7cuvISw8YslzN3K+NKVioW0y6HPpFoTbwakoiukBp6znb 9CoQ== X-Gm-Message-State: AOJu0Yz9tej+0uTiXqSEXTrkjlf52bJvs5ECSn3VMQv19uI8U/MkNhTc xLgHErwKDGNFMClVlW6EXSuj9MWZbESWtqHvxfqUwfUPFXmIbakK6jZ1167Shuo= X-Received: by 2002:a2e:a4a7:0:b0:2cc:ceb2:372a with SMTP id g7-20020a2ea4a7000000b002ccceb2372amr1541040ljm.96.1705945038673; Mon, 22 Jan 2024 09:37:18 -0800 (PST) Received: from ?IPv6:2804:30c:974:ac00:1b02:e2fd:23be:79bc? ([2804:30c:974:ac00:1b02:e2fd:23be:79bc]) by smtp.gmail.com with ESMTPSA id j26-20020a056e02221a00b00361a166564csm3015628ilf.4.2024.01.22.09.37.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 09:37:18 -0800 (PST) Message-ID: Subject: Re: [PATCH v6 1/3] kselftests: lib.mk: Add TEST_GEN_MODS_DIR variable From: Marcos Paulo de Souza To: Shuah Khan , Shuah Khan , Jonathan Corbet , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Josh Poimboeuf , Jiri Kosina , Miroslav Benes , Petr Mladek , Joe Lawrence Cc: linux-kselftest@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, live-patching@vger.kernel.org Date: Mon, 22 Jan 2024 14:37:09 -0300 In-Reply-To: <5aceb855-2862-4d53-b27b-50e2956e099b@linuxfoundation.org> References: <20240112-send-lp-kselftests-v6-0-79f3e9a46717@suse.com> <20240112-send-lp-kselftests-v6-1-79f3e9a46717@suse.com> <5aceb855-2862-4d53-b27b-50e2956e099b@linuxfoundation.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Mon, 2024-01-22 at 10:15 -0700, Shuah Khan wrote: > On 1/12/24 10:43, Marcos Paulo de Souza wrote: > > Add TEST_GEN_MODS_DIR variable for kselftests. It can point to > > a directory containing kernel modules that will be used by > > selftest scripts. > >=20 > > The modules are built as external modules for the running kernel. > > As a result they are always binary compatible and the same tests > > can be used for older or newer kernels. > >=20 > > The build requires "kernel-devel" package to be installed. > > For example, in the upstream sources, the rpm devel package > > is produced by "make rpm-pkg" > >=20 > > The modules can be built independently by > >=20 > > =C2=A0=C2=A0 make -C tools/testing/selftests/livepatch/ > >=20 > > or they will be automatically built before running the tests via > >=20 > > =C2=A0=C2=A0 make -C tools/testing/selftests/livepatch/ run_tests > >=20 > > Note that they are _not_ built when running the standalone > > tests by calling, for example, ./test-state.sh. > >=20 > > Along with TEST_GEN_MODS_DIR, it was necessary to create a new > > install > > rule. INSTALL_MODS_RULE is needed because INSTALL_SINGLE_RULE would > > copy the entire TEST_GEN_MODS_DIR directory to the destination, > > even > > the files created by Kbuild to compile the modules. The new install > > rule copies only the .ko files, as we would expect the gen_tar to > > work. > >=20 > > Reviewed-by: Joe Lawrence > > Reviewed-by: Petr Mladek > > Signed-off-by: Marcos Paulo de Souza > > --- > > =C2=A0 Documentation/dev-tools/kselftest.rst |=C2=A0 4 ++++ > > =C2=A0 tools/testing/selftests/lib.mk=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 | 26 +++++++++++++++++++++- > > ---- >=20 >=20 > Hi Marcos, >=20 > I would like the doc patch and lib.mk patch separate. If lib.mk needs > changes > we don't have to touch the doc patch. Hi Shuah, on patch 2/3 you also said that you would like to have the documentation changes split in the future, and that you picked the changes into a testing branch. Does it also applies to this patch? Do I need to resend the three patches and separate the documentation part into a new one, or can I apply this rationale to future changes to lib.mk? Sorry, I'm confused. Thanks in advance, Marcos >=20 > thanks, > -- Shuah