From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="E032alIf" X-Greylist: delayed 366 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 12 Dec 2023 17:44:06 PST Received: from out-175.mta0.migadu.com (out-175.mta0.migadu.com [IPv6:2001:41d0:1004:224b::af]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FD79CA for ; Tue, 12 Dec 2023 17:44:06 -0800 (PST) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1702431476; 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=QR2VSsFCexoYoHMfOMQBYvflj8tNx0RG9xJyXqIMWgg=; b=E032alIfX9+oqA1vQ8NPUQP8BXQQdd4z0effO2ed7bpJU4KR6h1Dx+vF0XiNgeJUw+F0Au 4rHGpNUz8ct/ep1PdVyRqCFl8WZ0jZHxHFhqCGit52bEPaixmZGbpz6zzQTVAaCL62FMeI qjw1ZHb0Vek67tpczRcmr59hXttBQvo= Date: Tue, 12 Dec 2023 17:37:47 -0800 Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH RFC bpf-next 1/3] bpf: add mapper macro for bpf_cmd enum Content-Language: en-US To: Alexei Starovoitov , Andrii Nakryiko , Daniel Borkmann Cc: Andrii Nakryiko , bpf , Network Development , Paul Moore , Christian Brauner , Linux-Fsdevel , LSM List , Kees Cook , Kernel Team , Sargun Dhillon , Martin KaFai Lau References: <20231207222755.3920286-1-andrii@kernel.org> <20231207222755.3920286-2-andrii@kernel.org> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Martin KaFai Lau In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT On 12/11/23 8:06 PM, Alexei Starovoitov wrote: > On Mon, Dec 11, 2023 at 8:01 PM Andrii Nakryiko > wrote: >> >> >>> While I can preemptively answer that in the case vmlinux BTF >>> is not available it's fine not to parse names and rely on hex. >> >> It's fine, I can do optional BTF-based parsing, if that's what you prefer. > > I prefer to keep uapi/bpf.h as-is and use BTF. > But I'd like to hear what Daniel's and Martin's preferences are. I think user will find it useful to have a more readable uapi header file. It would be nice to keep the current uapi/bpf.h form if there is another solution.