From nobody Tue Apr 7 13:59:00 2026 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 A2B8B394786 for ; Mon, 6 Apr 2026 18:22:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775499765; cv=none; b=IcFvAIVOW6AiR+vFhWHIMSRZo+MZTLeE7Zc87uHw/ptEHQocXPa9U+jHOtnFmkkRD4juNAiXFfqNHA9s2nJJUFyb79SATFD7yiJEhtfv+Gqm4oU/RW6RfRJvjW85VkKY37L3W3vcyuKUtSiIKRLq6xSiPn2mMaduQxXtrfBoMXE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775499765; c=relaxed/simple; bh=ucptwUIJtqhx8dsrJhSQ9C3w9ScuJ0w9Y+4aIdpjm+8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YhkIs+4bx3vjAFJd6GhK87/QULmqr76NwLWRRP0C2+lbLfzCC3L4cs1OQchAUKgukIHwtKbdUONZd6fldpotc0uVXThbWtPr6lC6LZ/luHu61At/kthgfvTqIqD/4jk5oS1r0qfDGFX5xDwtHw/haT12D1Ir7XFzP8C2RKqzKZs= 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=cQpMFB0T; arc=none smtp.client-ip=209.85.128.47 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="cQpMFB0T" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-488af9fdaa7so6797275e9.1 for ; Mon, 06 Apr 2026 11:22:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1775499762; x=1776104562; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=VtaCX1T0hy3mWY06GsAlGBkN/yaFPOhiixn1CTjMhwc=; b=cQpMFB0TJaAYdE0Vuuouqw71yOWty9L79FfJlLrbrsEpDT5hp5epswGnBHphQHVZzE kfaCUlxYrasn2fVTr+E7CaFFc7TTItDA0n0lbWnraL4QUh6W36HIUg/SLx6A/bGWG6hg HCQFhzESdl9Oj6RnEgBWPhgxG+KbqKxM5syP00qvpkyNnGY0SSlF26VJV8HiFdV7fmKb 4sw1vs1BolgFd3O/g4eXhd1qSrE9GhLKQOsyFeEa2wxDFfjDJK7ygYkOVB01tuoNzXzW wGH7fm0tXuYw4snRyGEQRzcFrBcUsF1/OPEq5y8W/emaq88hZMReZBUnVahnthC8FsEK usbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775499762; x=1776104562; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=VtaCX1T0hy3mWY06GsAlGBkN/yaFPOhiixn1CTjMhwc=; b=NKdLcDDAoFSKYvIUGVunp9WXI8YSOf/RRn0AcOKICFF8Co94p/0NZB+6M5/HSR68hr aQ0TB6PObMV4xeGz29bCU/2Sgg3amJyHu5Gk7RSpzL0hJZn44RBaIV/1asmiGjEkM1Li 9g8dUCU8ci7tEFPvqomdSn6mgXgXTZG8+ZsywEGZSCYMEtYFlwduHAKFVhzBpI7iETUl WEqVAuBKc0oAD/JfBY+iL1RazMvMA0lhhg8qY3MkxREJsXOywMqPE0BaCZm4WSZsWBHx 0dGwyG2TqdzSPL5cvZ4L5RVINQqWvANGOW4s7wSfwaMen2WDZg3dCEks9n8iNEy4hJnV zZnw== X-Forwarded-Encrypted: i=1; AJvYcCUGOYgzd3Z2rcTLpx6wn5f0Rn8ibe696rAJTUGEj+o5jSmO+uuGuR/IHywA6V9zc32/VJRkc9V1j9Mj4Rg=@vger.kernel.org X-Gm-Message-State: AOJu0Yyss9aeZOOOH3jCKwzU/+oCTPmvnCmHlZBpSuHZ7HPpmd5hVXUw +tBClPJWcNBXEvEnJfj9Bt/r8h9mkjUtnHp1Xcc0qOes3iKPfANJkKC4/golmLa0HK8= X-Gm-Gg: AeBDievTug6i+7UVdB3z8mGnOrJiLmtFd3ID8D9F8HLM6F34j8oxGi6aTpOpyR0Jsae qrxS52UFgXoW5VsnG/YN9xNtaGbIHys87LHN9DsvDSg364l6xi+wNJX7EpKz+2lhEd6YtnZAy+G T4C4d/ct7WkelvvmqrZZUFOVqM/MOvF0OkOV1e80qoCqvEUVDtFYk7Z5qiwA1uQdHjJ6jzJJMpf jiFJ2YR6Hc5YX7GRYQC4D7Gz1/vQRa9g5nJnyfUGac9aAM238s7KfI7ml5aW4idjYVdT+t28r4I taV2pxVJgG1l4nF5gA8eOBxrfJJdfZZvafpsuKsdeJh/C8+pdm/TXmoQtSYeIu018NmfCIMyoWS Gm9rbBs5aXx9Yx5vfnXOmbWSZot2x3Or5bPUDrqmc8uJr74KCK/ydgftzcKB82eAC995mN7OOnv Bag2G/fEeomVyu X-Received: by 2002:a05:600c:c8d:b0:486:ffa3:594 with SMTP id 5b1f17b1804b1-488997a6883mr187562235e9.23.1775499762028; Mon, 06 Apr 2026 11:22:42 -0700 (PDT) Received: from localhost ([2804:7f0:b767:120d:a4df:3777:2c55:2b95]) by smtp.gmail.com with ESMTPSA id 71dfb90a1353d-56d9bd2106csm17014057e0c.18.2026.04.06.11.22.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Apr 2026 11:22:41 -0700 (PDT) From: =?utf-8?q?Ricardo_B=2E_Marli=C3=A8re?= Date: Mon, 06 Apr 2026 15:22:19 -0300 Subject: [PATCH v4 07/10] selftests/bpf: Tolerate benchmark build failures Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260406-selftests-bpf_misconfig-v4-7-9914f50efdf7@suse.com> References: <20260406-selftests-bpf_misconfig-v4-0-9914f50efdf7@suse.com> In-Reply-To: <20260406-selftests-bpf_misconfig-v4-0-9914f50efdf7@suse.com> To: Andrii Nakryiko , Eduard Zingerman , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Kumar Kartikeya Dwivedi , Song Liu , Yonghong Song , Jiri Olsa , Shuah Khan , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt Cc: bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, =?utf-8?q?Ricardo_B=2E_Marli=C3=A8re?= X-Mailer: b4 0.15.1 X-Developer-Signature: v=1; a=openssh-sha256; t=1775499736; l=1818; i=rbm@suse.com; h=from:subject:message-id; bh=ucptwUIJtqhx8dsrJhSQ9C3w9ScuJ0w9Y+4aIdpjm+8=; b=U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgguRCc5X8/UX9M40lkMnr//aFGOhce x5ezt8MFNUFlqYAAAAGcGF0YXR0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5AAAA QHRyc3p5anKKcI/W38lb5jswVJrWqewGR0lwA51VbpiHo5xK1mR7Q68dPAHEDbiBGKp3PiIOWQz 8yGfmpM0cuwk= X-Developer-Key: i=rbm@suse.com; a=openssh; fpr=SHA256:pzhe0fJpYLz+3cZ33FFPhIfaUElk9CXPFFXmalIH+1g Benchmark objects depend on skeletons that may be missing when some BPF programs fail to build. In that case, benchmark object compilation or final bench linking should not abort the full selftests/bpf build. Keep both steps non-fatal, emit SKIP-BENCH or SKIP-LINK, and remove failed outputs so stale objects or binaries are not reused by later incremental builds. Signed-off-by: Ricardo B. Marli=C3=A8re --- tools/testing/selftests/bpf/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests= /bpf/Makefile index a12bc9d76f8e..2b0747604d5f 100644 --- a/tools/testing/selftests/bpf/Makefile +++ b/tools/testing/selftests/bpf/Makefile @@ -875,7 +875,8 @@ $(OUTPUT)/test_cpp: test_cpp.cpp $(OUTPUT)/test_core_ex= tern.skel.h $(BPFOBJ) # Benchmark runner $(OUTPUT)/bench_%.o: benchs/bench_%.c bench.h $(BPFOBJ) $(call msg,CC,,$@) - $(Q)$(CC) $(CFLAGS) -O2 -c $(filter %.c,$^) $(LDLIBS) -o $@ + $(Q)$(CC) $(CFLAGS) -O2 -c $(filter %.c,$^) $(LDLIBS) -o $@ || \ + ($(RM) $@; printf ' %-12s %s\n' 'SKIP-BENCH' '$(notdir $@)' 1>&2) $(OUTPUT)/bench_rename.o: $(OUTPUT)/test_overhead.skel.h $(OUTPUT)/bench_trigger.o: $(OUTPUT)/trigger_bench.skel.h $(OUTPUT)/bench_ringbufs.o: $(OUTPUT)/ringbuf_bench.skel.h \ @@ -918,7 +919,8 @@ $(OUTPUT)/bench: $(OUTPUT)/bench.o \ $(OUTPUT)/usdt_2.o \ # $(call msg,BINARY,,$@) - $(Q)$(CC) $(CFLAGS) $(LDFLAGS) $(filter %.a %.o,$^) $(LDLIBS) -o $@ + $(Q)$(CC) $(CFLAGS) $(LDFLAGS) $(filter %.a %.o,$(wildcard $^)) $(LDLIBS)= -o $@ || \ + ($(RM) $@; printf ' %-12s %s\n' 'SKIP-LINK' '$(notdir $@) (some benchma= rks may have been skipped)' 1>&2) =20 # This works around GCC warning about snprintf truncating strings like: # --=20 2.53.0