From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-188.mta1.migadu.com (out-188.mta1.migadu.com [95.215.58.188]) (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 053F6380FD1 for ; Wed, 24 Jun 2026 04:12:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.188 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782274330; cv=none; b=HiapOvEjv+1B8di7AjA39qjlzxq06fAKzSOnq5BXF/FHtDCASNe59OP+y1/whmC84Vcn+iXHH4T5Fy+3e3cj5XlRtwfdPafwoet5lad5bBRetDPJIMJaJdxJLRr+8qjArt12ZvWbnXGE8HpKhFGZAOUvXGFZlII7EMBn2y2Qa2k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782274330; c=relaxed/simple; bh=bBG1n+imcuvQSVkq82q/due+HFqznLosHpnq5suYMck=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=m4sB4AWV6yhi2FVa41YiQ+Dz+dH8xNHjNBUUH4fa8aNgy/LTNIZ4FVJz9x+9gYxPw+e4SkRk9RSM2rJua33FyV6u5yUJ50r8k0wt+wq63u7sQfXmuaPJgYccWuysRJoiipeeqWa+pU/BmEqMz+5B93hzNEPLSuoAhoP6i8Gh+JU= 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=xcOjqmm3; arc=none smtp.client-ip=95.215.58.188 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="xcOjqmm3" Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1782274325; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Tq67/RLWdr4UXVlNhGEPGP1ZSAdu4cOta2u4Qou8dLU=; b=xcOjqmm3wbspEUbJZquZOVxeTnNV079S14FBjCbrB10L4NUqjZszu+4JtceqBG4JnPqdL7 TQ5qhzH/JZ0ubrRxV2/A2F3dqpzxwI3OR1+xIzOrgWtyNLicWibs4MkpvzSjgpZzmTUuU+ MgJBqrPA2Suz3vlc8dMPhtGdQKzIWT4= Date: Wed, 24 Jun 2026 12:11:35 +0800 Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH bpf-next v7 05/11] libbpf: Probe percpu data feature Content-Language: en-US To: Andrii Nakryiko Cc: bpf@vger.kernel.org, Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Kumar Kartikeya Dwivedi , Song Liu , Yonghong Song , Jiri Olsa , John Fastabend , Quentin Monnet , Shuah Khan , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-patches-bot@fb.com References: <20260622143557.22955-1-leon.hwang@linux.dev> <20260622143557.22955-6-leon.hwang@linux.dev> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Leon Hwang In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT On 24/6/26 06:45, Andrii Nakryiko wrote: > On Mon, Jun 22, 2026 at 7:37 AM Leon Hwang wrote: >> >> libbpf needs a reliable way to distinguish kernels that can support >> global percpu data from those that cannot. >> >> Add a dedicated feature probe, so libbpf can make capability decisions >> early and fail predictably when global percpu data is unavailable. >> >> Signed-off-by: Leon Hwang >> --- >> tools/lib/bpf/features.c | 35 +++++++++++++++++++++++++++++++++ >> tools/lib/bpf/libbpf_internal.h | 2 ++ >> 2 files changed, 37 insertions(+) >> > > lgtm > > Acked-by: Andrii Nakryiko > Thanks for your review and Acked-by. Leon