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 AABBB31A89 for ; Fri, 7 Feb 2025 02:14:58 +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=1738894500; cv=none; b=cPxOoDBVfyELWD9byEsL82bZDHkVvVypKHO+uOuP1NQdNybhhkngwWSGrkh167Ws3+qooACypuj8Kan9EN71lR3Kz3Q9BeT9VFfnbS2Uk2Gn00PQdp+ZpvFqWRs6LjahD0M9bb4pxvCd2Vg3hi0wWa/2jSnKa6s2Gl73DlZoPUU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738894500; c=relaxed/simple; bh=tHWxYTXXghS8lUNHhvRCHiXiHYTiapfFlzJ3GpeJMu0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HN3Oo5JZhmIt7J9i+E3aB2sjuzZf/CDoBHNw6Y7Y+C+gbTneHsoDrlpJZ19USuRmB6EWjV+0vYUvs9utEpTJIYhMv281phr2G7WdDzs+UX+ttoygN6pV+Q4q0HhE+F7EESTfj1Cov4g635ReVP8mdl/z4z/pAEnNRs+je8xvmYw= 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=Mc9U3B3J; 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="Mc9U3B3J" 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=1738894496; 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=ufOzeXDANJk02xtsuzgAdHSpbbZFi3WmezQKBuPU3jA=; b=Mc9U3B3JaoY/unvV/3N9kN/KuxNbvm6MII+2kdQ9jSS0b5hlOMnvRe8M9BC8/GADAz6TbT 1EQThhpvoK5ITq8OiaGDtd88xoNFdyvG9k47leJoochZpsknZQAypdpMnfkE7CPQ/PgQBo xFsOqRC9Z2I2V+5fEUnjwKnQwc8oQ7I= From: Ihor Solodrai To: dwarves@vger.kernel.org, bpf@vger.kernel.org Cc: acme@kernel.org, alan.maguire@oracle.com, ast@kernel.org, andrii@kernel.org, eddyz87@gmail.com, mykolal@fb.com, kernel-team@meta.com Subject: [PATCH dwarves 0/3] btf_encoder: emit type tags for bpf_arena pointers Date: Thu, 6 Feb 2025 18:14:39 -0800 Message-ID: <20250207021442.155703-1-ihor.solodrai@linux.dev> Precedence: bulk X-Mailing-List: dwarves@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT This patch series implements emitting appropriate BTF type tags for argument and return types of kfuncs marked with KF_ARENA_* flags. For additional context see the description of BPF patch "bpf: define KF_ARENA_* flags for bpf_arena kfuncs" [1]. The feature depends on recent changes in libbpf [2]. [1] https://lore.kernel.org/bpf/20250206003148.2308659-1-ihor.solodrai@linux.dev/ [2] https://lore.kernel.org/bpf/20250130201239.1429648-1-ihor.solodrai@linux.dev/ Ihor Solodrai (3): btf_encoder: collect kfuncs info in btf_encoder__new btf_encoder: emit type tags for bpf_arena pointers pahole: introduce --btf_feature=attributes btf_encoder.c | 190 ++++++++++++++++++++++++++++++++++++++++++++------ dwarves.h | 1 + pahole.c | 11 +++ 3 files changed, 179 insertions(+), 23 deletions(-) -- 2.48.1