From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (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 3C6913B3C18 for ; Fri, 10 Jul 2026 22:09:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783721396; cv=none; b=bVMSU1ZFC8oB+LFjMcZKwdTEDBiLG+ZlVIbz0XUUu+U0dsucZppRWfr17kNaFCdpsYGeMBmsM9PWeu55QvuNQfWUIwQRhxFjsp6JMvCzP7VST2pFapqIyd7vzJ8gltSaEt5fqCyUnKhAue0cevKo3HJA3/f50uYN00rdLGrVW0A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783721396; c=relaxed/simple; bh=2ub4nWDm0UVYQYyGDF1toKijPevZATTh6AvmX5L9lCU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=AHp8sGsq66hJ3UXarvvPPMcrH/0Q6tVoB5Jbqi2Jo4pej63tIEzf/KbxJ3Yx5YfOGUK5wr3wpeIJrUYmyh0jAnMaLlTMV+FYoByEYkSRPmMfXfg4aR2Mz9O1v47oNViXGGHuJBf7ZAnIx58LGcSkUTrAk5+KROwjTDpsPcrg90A= 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=VHkrpIcs; arc=none smtp.client-ip=209.85.128.44 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="VHkrpIcs" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-493c19bad03so12028435e9.2 for ; Fri, 10 Jul 2026 15:09:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1783721394; x=1784326194; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=n0QBgcMLklUoQmlz1/UnBhglC0ubS7JdAEvyzC3RRRc=; b=VHkrpIcscChXkRbOjLQtWOBEA2Pg00onM8yH9ckR8koab6lEZfyPkBpuZTD3QXuLfw q6YuSYLCvDv9lV36dChmmnY9N8KQwhtGcNsdOwM0dtKXKNMbm1LAffeBXlUZxA0dsEIm 8hH/QMZm7VdHcplZZMXf3T63qgVSZ8qrz1ai8RJWBBOvsp2u5psIZn0eRJNpChQjYOw+ PLUMtrE546ttRAomPImmvD82iwFBxuQyB7bcsmIVOX3a2Y7IrRvaHCn0K8OWpgRkZyc2 K3H3yZnSAnhONaUxp0KcvgFqOMd5inGDqmleiVuL2AAYzT1fPNa5+E3h7qJoa3myh0X9 h6Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783721394; x=1784326194; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=n0QBgcMLklUoQmlz1/UnBhglC0ubS7JdAEvyzC3RRRc=; b=iSMUcHIs5tYRmC1lRTS0nZMr7Evam73seAYj1xN2aHn4ZFpMBlSocfKw+ry3kTd3CT LSvUbDRkOnrQDlGpJ9eADi4MqwzTEMlPYSzo7/owl5qavGA9Q7BTzxw6vsnGHuH0hXG2 sQ5uW2Q5uVJutI9yxXnYhalZEJ7yiXzD8ctkeWYJkmcDKoD7oakcv1TzvsMT9WRwyZpV Gee7vkBiqxZy6CYyAJd64bvHWXHWm/HVusGe+ppR1LSo3Cl8bVd/CRUjHyBSr4ovDai6 6t/5mdrEP7thmxcReMCxpJN+8/wnyWh7ixk0C4LpjVNBfbY2veAtzYC5RFA5rZDqaNQo LWLQ== X-Forwarded-Encrypted: i=1; AHgh+RqQac6GwFhx3IfspxkdgYanMKoiUpQ30j8u6jrR+2Orbe1k4RoUwt81EC0lR29E0XqMPoOHzkkuCVHxA64=@vger.kernel.org X-Gm-Message-State: AOJu0YwxiWKle554bJYDbGRFCdGAeD1ClvL0AdsBNuHkLs8hnp5t6S0W AgHndJnTU3cL1iwsFk5n1UMWSBwJ+72v9nFYIdsi5zj3n9O6ZLl4dhiGFQJ8r+yn0/o= X-Gm-Gg: AfdE7ckHoQckQ9w0xhGVtbJ+7y8KRi9dqOqg/JQ4a1wN+aPXGMyYWj07crxYyEVjQgM o+fkGgerOq8rjIhdISgDXvDE383uS3ajZoqCCHxENBbY0JRSeuyqAMAFcAp34ERj2101G3zU4bS ddV5khCVHxKnGDFxZLczjK4L86sz/OpNsi2gBE58rDagpKGB97X65UaYixYi3X8ptO1ofTxfGAM 8y/ZU9JKhU6olWdyenYNb5RXwXoNSQnDD4dQjdnCZ6PAndDbhx0TOyIrolNYqh+wLHH5KM0dM1k aCC2XD6Hpz8Ai1O8GgsAvezL3notp2BveK3H1drbISVD7A2dy9Ig+7yo27C4EoY9DBFgjow1U4a x7eEdq5L9w4exLU+GcwAlfWtJvStQccxIug966m+9QvZi/WE5qjYmHEUfIHtg6a4OqIhLle1+0q hO2g== X-Received: by 2002:a05:600c:6287:b0:490:d354:bcf4 with SMTP id 5b1f17b1804b1-493f882e125mr5064455e9.27.1783721393697; Fri, 10 Jul 2026 15:09:53 -0700 (PDT) Received: from localhost ([2804:7f0:b765:157e:cc5f:6c4b:db0a:5d2a]) by smtp.gmail.com with ESMTPSA id 00721157ae682-81e7795988dsm42915837b3.26.2026.07.10.15.09.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jul 2026 15:09:53 -0700 (PDT) From: =?utf-8?q?Ricardo_B=2E_Marli=C3=A8re?= Date: Fri, 10 Jul 2026 19:09:38 -0300 Subject: [PATCH 2/4] selftests/bpf: Install resolve_btfids.test.o.BTF where the test expects it 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: 8bit Message-Id: <20260710-selftests-bpf_fixes-v1-2-aa24dfd6f4f9@suse.com> References: <20260710-selftests-bpf_fixes-v1-0-aa24dfd6f4f9@suse.com> In-Reply-To: <20260710-selftests-bpf_fixes-v1-0-aa24dfd6f4f9@suse.com> To: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Eduard Zingerman , Kumar Kartikeya Dwivedi , Martin KaFai Lau , Song Liu , Yonghong Song , Jiri Olsa , Emil Tsalapatis , Shuah Khan , =?utf-8?q?Alexis_Lothor=C3=A9_=28eBPF_Foundation=29?= , Ihor Solodrai , Christian Brauner Cc: bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Ricardo_B=2E_Marli=C3=A8re?= X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=openssh-sha256; t=1783721384; l=1976; i=rbm@suse.com; h=from:subject:message-id; bh=2ub4nWDm0UVYQYyGDF1toKijPevZATTh6AvmX5L9lCU=; b=U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgguRCc5X8/UX9M40lkMnr//aFGOhce x5ezt8MFNUFlqYAAAAGcGF0YXR0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5AAAA QOBhfC+l8ie8j9ab6J7tqHpnUdPRaXL4guicfZGuv6jrHoPEPsthfAwD1PR1pH5vNhyESzDS8ov YdJ/SpwAvxAw= X-Developer-Key: i=rbm@suse.com; a=openssh; fpr=SHA256:pzhe0fJpYLz+3cZ33FFPhIfaUElk9CXPFFXmalIH+1g prog_tests/resolve_btfids.c looks for "resolve_btfids.test.o.BTF" relative to the running test_progs binary. resolve_btfids always writes .BTF next to the object it processes, so building resolve_btfids.test.o also produces resolve_btfids.test.o.BTF in the build output directory as a side effect. INSTALL_RULE never carries it over: it is not part of TEST_FILES, TEST_GEN_FILES or TRUNNER_EXTRA_FILES, and it is not copied by the *.bpf.o rsync used for TEST_INST_SUBDIRS. After "make install", every flavor of test_progs, including the default one, fails with "Failed to load BTF from resolve_btfids.test.o.BTF", even though the file built fine and BTF ID resolution itself works correctly. Install it next to the rest of the per-flavor build output, using an explicit rsync in INSTALL_RULE like the one already used for bpftool. Fixes: 522397d05e7d ("resolve_btfids: Change in-place update with raw binary output") Signed-off-by: Ricardo B. Marlière --- tools/testing/selftests/bpf/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile index 47911c9b4977..7260d672acf7 100644 --- a/tools/testing/selftests/bpf/Makefile +++ b/tools/testing/selftests/bpf/Makefile @@ -1057,10 +1057,11 @@ override define INSTALL_RULE $(DEFAULT_INSTALL_RULE) @mkdir -p $(INSTALL_PATH)/tools/sbin @rsync -a $(if $(PERMISSIVE),--ignore-missing-args) $(TRUNNER_BPFTOOL) $(INSTALL_PATH)/tools/sbin/ + @rsync -a $(if $(PERMISSIVE),--ignore-missing-args) $(OUTPUT)/resolve_btfids.test.o.BTF $(INSTALL_PATH)/ @for DIR in $(TEST_INST_SUBDIRS); do \ mkdir -p $(INSTALL_PATH)/$$DIR; \ rsync -a $(if $(PERMISSIVE),--ignore-missing-args) \ - $(OUTPUT)/$$DIR/*.bpf.o \ + $(OUTPUT)/$$DIR/*.bpf.o $(OUTPUT)/$$DIR/resolve_btfids.test.o.BTF \ $(INSTALL_PATH)/$$DIR; \ done endef -- 2.54.0