🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #4602

Re: [PATCH bpf-next 4/6] libbpf: Factor out __bpf_sys_fd helper

#4602
From: Leon Hwang
Date: Sun, 18 Oct 2026 16:32
42 lines
7682 bytes
On 2026/10/17 22:53, bot+bpf-ci@kernel.org wrote:
>> libbpf: Factor out __bpf_sys_fd helper
> 
> TL;DR: Commit message nit only: subject and body call the new helper
> __bpf_sys_fd, but the code names it __sys_bpf_fd. Should the message match?
> 
>> libbpf: Factor out __bpf_sys_fd helper
>>
>> In the next patch, it also needs to use the extended BPF syscall to
>> receive the reported log.
>>
>> So, factor out __bpf_sys_fd helper.
>>
>> No functional changes intended.
>>
>> Signed-off-by: Leon Hwang <leon.hwang@linux.dev>
> 
> This isn't a bug, but the subject and body name the helper __bpf_sys_fd,
> while the function the patch adds is:
> 
> +static int __sys_bpf_fd(union bpf_attr *attr, const size_t attr_sz, enum bpf_cmd cmd,
> +			struct bpf_log_opts *log_opts)
> 
> which follows the existing sys_bpf(), sys_bpf_fd() and sys_bpf_ext_fd()
> naming.
> 
> Should the subject and body say __sys_bpf_fd instead, so that searching the
> log for the real function name finds this commit?

Will change __bpf_sys_fd to __sys_bpf_fd in the subject and body.

Thanks,
Leon

> 
> 
> ---
> AI reviewed your patch. Please fix the bug or email reply why it's not a bug.
> See: https://github.com/kernel-patches/vmtest/blob/master/ci/claude/README.md
> 
> CI run summary: https://github.com/kernel-patches/bpf/actions/runs/39042048581
Technical Details
Message-ID: <6ea0eae1-9183-4da4-be7a-3e9436dda5b7@linux.dev>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-348099-linux-kernel-netdev=dewy.ru
References: <20261017142649.51047-5-leon.hwang@linux.dev> <eb32cc32c29af7d8ad5a342bbd9a0da19c8b53d31a71754b98953a5be62638f0@mail.kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-348099-linux-kernel-netdev=dewy.ru
From: leon.hwang@linux.dev (Leon Hwang)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH bpf-next 4/6] libbpf: Factor out __bpf_sys_fd helper
Date: Mon, 19 Oct 2026 00:32:37 +0800
Organization: Usenet Network
Message-ID: <6ea0eae1-9183-4da4-be7a-3e9436dda5b7@linux.dev>
References: <20261017142649.51047-5-leon.hwang@linux.dev>
 <eb32cc32c29af7d8ad5a342bbd9a0da19c8b53d31a71754b98953a5be62638f0@mail.kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="3371438"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:UwTb0J9Yz4zjBEdTKyyKDfH9F5M= sha256:meP43exsnK4z2d2xdEIJsih9JxGl25B48P765+hp00w=
	sha1:ePXoXlOR7raYsdAXjfGJWxDHAb0= sha256:V32mIjlg9F69lVSsCsdtq9G/tcs3Bdj5GT+mPPdaZpU=
Content-Language: en-US
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 0E61E11084C; Sun, 18 Oct 2026 19:33:44 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=linux.dev
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 12-LFXLguI73;
	Sun, 18 Oct 2026 19:33:40 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-348099-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linux.dev
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 45822110837; Sun, 18 Oct 2026 19:33:31 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sin.lore.kernel.org (Postfix) with ESMTP id A03672651E; Sun, 18 Oct 2026 16:32:52 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 426563DB31A;
	Sun, 18 Oct 2026 16:32:51 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="B8XLanQP"
X-Received: from mta0.migadu.com (out-33.mta0.migadu.com [91.218.175.33])
	(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 5558C3DAACB
	for <netdev@vger.kernel.org>; Sun, 18 Oct 2026 16:32:49 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.33
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1792341171; cv=none; b=h7cHMeUyBBxxFsehvCTelFxWJoUlxSpobaRNCg2X7zh+yWjNz5unopP4WSvKmUE8SmciKQNcVyOMm0z85tIVvM4s+x5AjnI1WGFrI+WuKMf071fQdC02FUAKngCCLnFA9qIlki2LlBYux7HrECPGWLntvjBCL9A2dw79tGva7uI=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1792341171; c=relaxed/simple;
	bh=cYFV4Zhdqv7Lx4ML754VZ5O4c2k3efDLoxAKMMwG9uM=;
	h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From:
	 In-Reply-To:Content-Type; b=s4NE0h8u/5MJ9qPxenCi7s/+srnwC2yJ/A0b+I+ZWc4IR0NSbJtHdFpvTzF/UGuGgD0/YUnG/uyPULHIrt1pETtZEV+e8JQ7PXQ8b5cT8tCSq8FlDoOlRa7/XvADNxxKejeiAyYkLwkwGAABoro5PRagH/SAE/0nBwu+rWlLxmE=
X-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=B8XLanQP; arc=none smtp.client-ip=91.218.175.33
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev
X-Envelope-To: netdev@vger.kernel.org
X-DKIM-Signature: a=rsa-sha256; bh=cYFV4Zhdqv7Lx4ML754VZ5O4c2k3efDLoxAKMMwG9uM=;
 c=simple/simple; d=linux.dev;
 h=from:to:subject:date:message-id:mime-version:content-type; s=key1;
 t=1792341167; v=1; x=1792945967;
 b=B8XLanQPcolyiNDtb8rGaSuoh1BTjafb45ilE8yTOBEAEUu705+4Whwri5WNGiJ0qJrCNCUA
 m+3Za3jVZRQ6L1f8/jseNcr/7Q794Pkmrh3l/bSwZEdt7BUzEqOLs2V/82KzF79G9HMh0ZTbp7G
 uiacywW2Ojzx/kYgILtRoGnw=
X-Envelope-To: netdev@vger.kernel.org
X-Received: by smtp.migadu.com with ESMTPS id 1c9fe71dca233eac;
	Sun, 18 Oct 2026 16:32:46 +0000
X-Mizu-Trace-ID: 1c9fe71dca233eac
X-Migadu-Flow: FLOW_OUT
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-User-Agent: Mozilla Thunderbird
X-Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org,
 kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, ast@kernel.org,
 daniel@iogearbox.net, andrii@kernel.org, eddyz87@gmail.com,
 memxor@gmail.com, martin.lau@linux.dev, song@kernel.org,
 yonghong.song@linux.dev, jolsa@kernel.org, emil@etsalapatis.com,
 ihor.solodrai@linux.dev, hawk@kernel.org, john.fastabend@gmail.com,
 sdf@fomichev.me, rostedt@goodmis.org, mhiramat@kernel.org,
 mathieu.desnoyers@efficios.com, shuah@kernel.org, kuniyu@google.com,
 liuhangbin@gmail.com, mkarsten@uwaterloo.ca, masashi.honma@gmail.com,
 linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
 linux-trace-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org,
 martin.lau@kernel.org, mason@kernel.org
X-In-Reply-To: <eb32cc32c29af7d8ad5a342bbd9a0da19c8b53d31a71754b98953a5be62638f0@mail.kernel.org>