From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-174.mta1.migadu.com (out-174.mta1.migadu.com [95.215.58.174]) (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 140243CBE96 for ; Wed, 17 Jun 2026 21:06:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781730406; cv=none; b=CmS0eEvvvtzeKYxX53fHx0zp+uRqRnnRgnzuDx/cLp0hHiTYE7rZExNyfvsK9JInQzCA+xwPbjxAtiltZ9VAoJ5lhIYoEqxlMzpyzxESx/YDBvsKYwIkF9OOGcZYZNQCwGF0Qc2IcHyZAJ+WM7HQoq8CcyfxyfAvFr86hPTx1Hg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781730406; c=relaxed/simple; bh=ImCorexCHKs3wwtgqmautq9poNOhtuTIaO10LwNFEEc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NgGEWEgGgzou1ocZJsuqRdEi4vpeV0kXmjbOJbV4H49fj5nrROn8kkFJagp7gEdrdhqAKAlCwMiNi29CELPLC9CcmAUVqAX6FnTrSVOUSzAW2pn0izl0RbLtdoZuWwEUVyPUsLlEgfFCu3pt4jvlTk201aGRDjwqshWggXQTWUw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=gVAULkYD; arc=none smtp.client-ip=95.215.58.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="gVAULkYD" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1781730393; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=FzKkvAI6IDkJ/GSGce1kn1qarUTe5R9d6P9gmh7cRMo=; b=gVAULkYDp0L5VsteP/punwjgrdDl0mYCQvmLDtf+D1IBsKMUAtvmIgf1yGak/LLHEwLunk oCE2dzF508nSl8SkNCRzED8Op1s5zu8qWjeA+1to24y2dpj96hP2d0GIuA14GwytcAbWDm 0C1kvSiPisu2dNXyLX3KroAvOqfLwcs= From: Ihor Solodrai To: Alexei Starovoitov , Andrii Nakryiko , Daniel Borkmann , Eduard Zingerman , Kumar Kartikeya Dwivedi Cc: Alan Maguire , Jiri Olsa , Emil Tsalapatis , bpf@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: [PATCH bpf-next v1 0/4] Modernize resolve_btfids selftest Date: Wed, 17 Jun 2026 14:06:15 -0700 Message-ID: <20260617210619.1562858-1-ihor.solodrai@linux.dev> Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT This series updates resolve_btfids selftests to use latest selftest helpers API and add kfunc set testing. This series was split from a bigger series [1]. It's general selftest improvements that don't have to be entangled with resolve_btfids development, and makes the main series a bit smaller. [1] https://lore.kernel.org/bpf/20260601221805.821394-1-ihor.solodrai@linux.dev/ Changes compared to original 4 patches: * various nits from Jiri, Andrii and Emil * in patch #3 (that adds gcc pragma) definitions are moved such that .local BTF_ID_* containers are grouped together and we have a single pragma scope --- Ihor Solodrai (4): tools/bpf: Sync btf_ids.h to tools selftests/bpf: Modernize resolve_btfids test scaffolding selftests/bpf: Fix resolve_btfids test reads of BTF ID sets in PIE builds selftests/bpf: Add kfunc set test to resolve_btfids tools/include/linux/btf_ids.h | 78 +++++++++- .../selftests/bpf/prog_tests/resolve_btfids.c | 140 ++++++++++++------ tools/testing/selftests/bpf/progs/btf_data.c | 10 ++ 3 files changed, 177 insertions(+), 51 deletions(-) -- 2.54.0