From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 04CFB23AE for ; Fri, 28 Jul 2023 04:49:50 +0000 (UTC) Received: from out-120.mta1.migadu.com (out-120.mta1.migadu.com [IPv6:2001:41d0:203:375::78]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6211F3AB7 for ; Thu, 27 Jul 2023 21:49:49 -0700 (PDT) Message-ID: <940426b4-4b1f-b006-c7a9-d64a650b27e7@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1690519786; h=from:from:reply-to: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; bh=QTkI/7q8Lo8zuYoY7t73auHwbzs10OTQq453iqKTCWQ=; b=iNe09zY5I77cWWsavYa26xMFFE8MXPBgDt/WQUrqg3zN0lEKBdp7ap3GZX8zCUNwYmL7wk sBJDvQanh1zk2eUfBU6pCqZaM9Ll/b+WfvUSy8Ju/xjdz2x0aVcqkSvNjX0KDa7jAa0zEJ EeyP1NUyNhlHBXfbh4Gzsoev9GvYooQ= Date: Thu, 27 Jul 2023 21:49:38 -0700 Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-To: yonghong.song@linux.dev Subject: Re: [PATCH bpf-next v5 10/17] selftests/bpf: Add a cpuv4 test runner for cpu=v4 testing Content-Language: en-US To: Alexei Starovoitov Cc: Alexei Starovoitov , Andrii Nakryiko , bpf , Daniel Borkmann , Martin KaFai Lau , David Faust , Fangrui Song , "Jose E . Marchesi" , Kernel Team References: <20230728011143.3710005-1-yonghong.song@linux.dev> <20230728011250.3718252-1-yonghong.song@linux.dev> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Yonghong Song In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net On 7/27/23 7:18 PM, Alexei Starovoitov wrote: > On Thu, Jul 27, 2023 at 6:13 PM Yonghong Song wrote: >> >> -# Silence some warnings when compiled with clang >> ifneq ($(LLVM),) >> +# Silence some warnings when compiled with clang >> CFLAGS += -Wno-unused-command-line-argument >> +# Check whether cpu=v4 is supported or not by clang >> +ifneq ($(shell $(CLANG) --target=bpf -mcpu=help 2>&1 | grep 'v4'),) >> +CLANG_CPUV4 := 1 >> +endif >> endif > > Gating cpu=v4 testing by LLVM=1 is unnecessary. > The kernel can be built by GCC, but we should still build > test_progs-cpuv4 when clang supports it. > > Please consider a follow up. Agree. Will do a follow-up for cpu-v4 not depending on LLVM=1. > > I've applied the set, since the rest looks great!