Received: by 2002:a05:7412:3210:b0:e2:908c:2ebd with SMTP id eu16csp317086rdb; Thu, 31 Aug 2023 10:07:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEoT9RnHS+59qVjlhM4NZv8vXNZHnJj+hLA30opJuKDPcVK9aS905c6JSMAKxhbg8J0xx8I X-Received: by 2002:ac2:51a4:0:b0:4ff:7ecb:a810 with SMTP id f4-20020ac251a4000000b004ff7ecba810mr3905072lfk.33.1693501639643; Thu, 31 Aug 2023 10:07:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693501639; cv=none; d=google.com; s=arc-20160816; b=ifZE9k/Egoo3d6Dbz6LFv9UIvQUjfAzjKTBDiGlhttAQWPYkDP0dEDFujYuhl9f8NM T/2N/pW8uo+JmHdIFrkFtwIYYyC0yeob8F2XKwHYDgQ7E9e9dgkOCGlE9jptoCPHYhiO i+JO7CE7We1+u76I1NoKplziJj1f67sj/WgdAp3cIhvYdlpQJA6sKSv50XgMEI+d6jkH IgMbTF1YB8ckbUEz+HWKGJBtc8QE04yayuZQHlwV1L1Wt0tO0jbs0mLJzNZRM2kJVydv ZqFsiKevkYv1CUux0uJzP1A4eVSl3fzPuhbdsVFVHr5iaiHQgRSQjnKlpNcn2t4x1oC/ L6VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=MC5yR7rdFgJ1+KxinZ0n4tTKC2mhghoxjBUzXO1Ivj8=; fh=DBhiHirD/CDgUdmNirrHqsMtmuvIn9Z5Y+/NvUaugUk=; b=1ICx2QvRgK4V6Y9Y0glHgzsK1HWtz4cuvrke4OL47LwQ05UUh8BSQBXne0k2AX75VN mYPl2xFQql5QjGk4hL+kZKZGhvu4mKYJwvXi91zahReWOigd8HDRPThDxAEid2dKdfOT oOEdak1Q+W39RU502IzVDsx+44fas/EhBpx4shoRyPDVOhY2varL0CSFi7TDA9AzclSb 8kVoF/hWjW6n+hwOKeQCuXFVnFtr44r5rEfWyBMUt2BJruUN/tdB/UonlYb9Chdmh6lp 0PvSfgnCbzGcUtDK/U7CSJa1+Ej4FPQ/nNiu0lRckR5qyqlGQpyFBm8rpZysfFmSsQBS FvvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cm+dXHMY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r11-20020aa7d58b000000b00525677058c3si1299834edq.573.2023.08.31.10.06.19; Thu, 31 Aug 2023 10:07:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cm+dXHMY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346764AbjHaQSi (ORCPT + 99 others); Thu, 31 Aug 2023 12:18:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239540AbjHaQSh (ORCPT ); Thu, 31 Aug 2023 12:18:37 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7D0CB0; Thu, 31 Aug 2023 09:18:30 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 62E9AB82324; Thu, 31 Aug 2023 16:18:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BE41BC433C8; Thu, 31 Aug 2023 16:18:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1693498708; bh=8mihFSvYYGejx9N0MfZQyqwmoRIFUqz4THpIXBeJ4gQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=cm+dXHMYOMpdB+oqp24HHZI0Q743h4HkYXXgCxcV4b0Mq7lVAiVowaIp7S1asTz1Y 3HAfbYzQAlgq27ijXObLqIDuufPNgVD2Wcfdp1ges0xBS+e5vW0AciQQmx864OJuqY k5rM7816ErCmqGgU4MdL/awjMDZ8O/xIpAnOmSV7euW0XpczSKxgeru0rkAKyVgdRW P+xKYKL64qdrNt08/R3Mpq1imNqpZ1FtaQmWFokjCFP2FhNiLF1fdC4J8Fy1Q8NIbX +XG0puuzhWK7Eqi8tS3qrRScgUk2YxOx6lO4rDK/k2myORRkNsoLPlb3kz6uMlBysX LsXxV9ZGH8C2g== From: =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= To: Daniel Borkmann , Andrii Nakryiko , Mykola Lysenko , bpf@vger.kernel.org Cc: =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= , Alexei Starovoitov , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH bpf-next] selftests/bpf: Include build flavors for install target In-Reply-To: References: <20230828183329.546959-1-bjorn@kernel.org> Date: Thu, 31 Aug 2023 18:18:25 +0200 Message-ID: <87ttsf18z2.fsf@all.your.base.are.belong.to.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Daniel Borkmann writes: > On 8/28/23 8:33 PM, Bj=C3=B6rn T=C3=B6pel wrote: >> From: Bj=C3=B6rn T=C3=B6pel >>=20 >> When using the "install" or targets depending on install, >> e.g. "gen_tar", the BPF machine flavors weren't included. >>=20 >> A command like: >> | make ARCH=3Driscv CROSS_COMPILE=3Driscv64-linux-gnu- O=3D/workspace= /kbuild \ >> | HOSTCC=3Dgcc FORMAT=3D SKIP_TARGETS=3D"arm64 ia64 powerpc sparc6= 4 x86 sgx" \ >> | -C tools/testing/selftests gen_tar >> would not include bpf/no_alu32, bpf/cpuv4, or bpf/bpf-gcc. >>=20 >> Include the BPF machine flavors for "install" make target. >>=20 >> Signed-off-by: Bj=C3=B6rn T=C3=B6pel > > Looks good and BPF CI also seems to be fine with it, wrt INSTDIRS could w= e use > a more appropriate location where we define it? Was thinking sth like: > > diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftes= ts/bpf/Makefile > index 7c77a21c3371..8b724efb8b7f 100644 > --- a/tools/testing/selftests/bpf/Makefile > +++ b/tools/testing/selftests/bpf/Makefile > @@ -50,14 +50,17 @@ TEST_GEN_PROGS =3D test_verifier test_tag test_maps t= est_lru_map test_lpm_map test > test_cgroup_storage \ > test_tcpnotify_user test_sysctl \ > test_progs-no_alu32 > +TEST_INST_SUBDIRS :=3D no_alu32 > > # Also test bpf-gcc, if present > ifneq ($(BPF_GCC),) > TEST_GEN_PROGS +=3D test_progs-bpf_gcc > +TEST_INST_SUBDIRS +=3D bpf_gcc > endif > > ifneq ($(CLANG_CPUV4),) > TEST_GEN_PROGS +=3D test_progs-cpuv4 > +TEST_INST_SUBDIRS +=3D cpuv4 > endif > > [...] Ok! I'll spin a v2!