From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (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 9083E27462 for ; Thu, 18 Dec 2025 21:05:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766091909; cv=none; b=U9byeN5++cidCGDwq6gJMHC/AMLU69DpQjgvEDMueTHWjUEDgNCcXTKFyTFBC5qwoW7SlJyZ4WhGLcl5WLOtI7eV+i4biNEYvPBhxv08yFdU9c4XZ0qNyyhIZCtuveEa+4EBDqsiVnYvUjVtFTTxc2Dj1fc7e6RCB60cvFEy7hE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766091909; c=relaxed/simple; bh=Wk9qv34inWutk0debgHw5c52MI0wE6RiXjFrTeu/W50=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=YipXikaWnzwBahZX2Z3NgE8xLiBdU4V4pyPyrNYJjYT3uWuzjR/DzaWORmFQVUS8DsEkYzRaE5y0nshiv2EeZbWUFFyHdzXGIAWc/VL106+PVtZCaSqcsrimO1teOSShfare6+aY+pyymTQH4PXCYoN3bBSPflo6OKokaYbG4yM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=EanRfDGE; arc=none smtp.client-ip=209.85.214.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="EanRfDGE" Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-2a137692691so12911995ad.0 for ; Thu, 18 Dec 2025 13:05:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1766091907; x=1766696707; 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=Wk9qv34inWutk0debgHw5c52MI0wE6RiXjFrTeu/W50=; b=EanRfDGE4ArG/nnHCXA7ZJ9P9bcsKo1GjbZQ7d1k5Y4QSDnMn5hD7FceRiRzyFOWb5 /zibacOGm6Yz/a57okj1XTQwXRoVOnxaEksFbwo5Nhqn3Nqlt5vgcz+NAxmSQQ4tqrkh MZ4341IomiLMd6pw3xEDQN5NxxVdSPXDS5FhR6Ayz4YFaOGdUocAWqCmf8u1j8klS3DX twh+Rx/4RRlTCWUibhABlcPJjeHHHPkkuVL7uiZdF3AUBOfRoHBomnMHdbR13xaH1CU9 euqWzR8H/b/y2VAKL5NJ0XEu7bMaviiWa7MRdB0UiwD0DwZlSfBgJcvGdiGgPYj7g+oD 676g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766091907; x=1766696707; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Wk9qv34inWutk0debgHw5c52MI0wE6RiXjFrTeu/W50=; b=sXeUDH1Q8fCuyva6Q3hLOoQl0dDEilAutfgxHWdIoyuJnRVKm4NLU/SdBJgRsBcjQo h61oAVeSxwmnMO0tm+aC1OILhQ/TSzj8XQ5rjuJfveWMh8xK1Tt6HCPoDngJzJhCu+tP wccX+ZllCcjgrfCYBZZlCKZ+XZOtd+0LlnFaqflUPaod0vcUg82btEWKmjJhNhEaEh7+ DfhyoJFkrPF3hZQvHOUQMAYMxyy/kSM8eduk/nPpBgsn4eokl8ZBDDaQ6MBKceK9wOSp WOmy9rEqb5Q0N2xS9JcQZm0HZaO0bePKq975ykVHKuCsD1f3ywPI7QzNfDu1sgztTtHs +DoA== X-Forwarded-Encrypted: i=1; AJvYcCUV2bxTW/RqunqXZJ8Vn458bmWfvK5u+ioiZ4qCqt5OeZSRV6Qc/Oq1mTU2hc4SEmi7Xwz+E91OsPc9ECQ=@vger.kernel.org X-Gm-Message-State: AOJu0Yx0phxOFhW97Cqchwf5BxR8vXHO6ufaSQxKLJ7BgdHSgRM/v7E0 OSLv3Dvs0i+h1oGWfzW8GbGxiXJ/hdNkUdKJ8GpqHNY3HhLH2x4ZjVV+TgtGlMGnIiY= X-Gm-Gg: AY/fxX7ESjc8qS6UD2najtDcI4c8jH0a6xZg6lpW7AIpHYLgjud94yxEhr90C/OY3oP eNcDjO93FblgCksNICVS9spaIe3eupuKAsXEzAhv4Ol0vkR0ZdLa7QhbT2mdtaiTnDmNqXV63Ml uwPKdmHvra3QQcwE8P93HVHZC7GedbnAmUuggg0scfsAjeYpInlw0CBt4lqvqQxFanYp3jjNLop /j3udtWyL1icEg6IG3D8NaW1dKvHerNHQ7lQq0BkqHbEoDrILTcS9K+BUgCS49nhAVyb4Z/WBVr e/zGWBjbwd3wThOAMqtzcMMTX34K+CgscPuYjdZp9+6U9XQd9NHXX6BDmO4P8GiaWz4jXwKyiWT CW+3XjJTRf2HgUChOooUPghknuEU/MYSLIiKK9gVaVZZiKAS6Rem2w1sB4VA+nD31XDUBgbg9yJ w+uCcitsNBGClPw2d8udjD1Jru2v/9Xxre5hwU X-Google-Smtp-Source: AGHT+IE5wqF1Ur/4n0bAKqhUgwQpIAW7BXffJ7Vx2YXELxiT7ohVhw05y1v6Iu0zG3ReeHlWkO5oUA== X-Received: by 2002:a05:6a00:4006:b0:7e8:4398:b362 with SMTP id d2e1a72fcca58-7ff6667949dmr378405b3a.53.1766085763362; Thu, 18 Dec 2025 11:22:43 -0800 (PST) Received: from ?IPv6:2a03:83e0:115c:1:d912:2088:c593:6daa? ([2620:10d:c090:500::7:e642]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7ff7b127b00sm99807b3a.21.2025.12.18.11.22.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Dec 2025 11:22:43 -0800 (PST) Message-ID: <0be0a3b4d39e31653ce38c16b413d717921f2ced.camel@gmail.com> Subject: Re: [PATCH bpf-next v4 7/8] selftests/bpf: Run resolve_btfids only for relevant .test.o objects From: Eduard Zingerman To: Ihor Solodrai , Alan Maguire , Alexei Starovoitov , Andrea Righi , Andrew Morton , Andrii Nakryiko , Bill Wendling , Changwoo Min , Daniel Borkmann , David Vernet , Donglin Peng , Hao Luo , Jiri Olsa , John Fastabend , Jonathan Corbet , Justin Stitt , KP Singh , Martin KaFai Lau , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Shuah Khan , Song Liu , Stanislav Fomichev , Tejun Heo , Yonghong Song Cc: bpf@vger.kernel.org, dwarves@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, sched-ext@lists.linux.dev Date: Thu, 18 Dec 2025 11:22:40 -0800 In-Reply-To: <20251218003314.260269-8-ihor.solodrai@linux.dev> References: <20251218003314.260269-1-ihor.solodrai@linux.dev> <20251218003314.260269-8-ihor.solodrai@linux.dev> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2 (3.56.2-2.fc42) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Wed, 2025-12-17 at 16:33 -0800, Ihor Solodrai wrote: > A selftest targeting resolve_btfids functionality relies on a resolved > .BTF_ids section to be available in the TRUNNER_BINARY. The underlying > BTF data is taken from a special BPF program (btf_data.c), and so > resolve_btfids is executed as a part of a TRUNNER_BINARY build recipe > on the final binary. >=20 > Subsequent patches in this series allow resolve_btfids to modify BTF > before resolving the symbols, which means that the test needs access > to that modified BTF [1]. Currently the test simply reads in > btf_data.bpf.o on the assumption that BTF hasn't changed. >=20 > Implement resolve_btfids call only for particular test objects (just > resolve_btfids.test.o for now). The test objects are linked into the > TRUNNER_BINARY, and so .BTF_ids section will be available there. >=20 > This will make it trivial for the resolve_btfids test to access BTF > modified by resolve_btfids. >=20 > [1] https://lore.kernel.org/bpf/CAErzpmvsgSDe-QcWH8SFFErL6y3p3zrqNri5-UHJ= 9iK2ChyiBw@mail.gmail.com/ >=20 > Signed-off-by: Ihor Solodrai > --- Acked-by: Eduard Zingerman [...]