BPF List
 help / color / mirror / Atom feed
From: Ihor Solodrai <ihor.solodrai@linux.dev>
To: bot+bpf-ci@kernel.org, ast@kernel.org, andrii@kernel.org,
	daniel@iogearbox.net, eddyz87@gmail.com, memxor@gmail.com,
	qmo@kernel.org
Cc: bpf@vger.kernel.org, alan.maguire@oracle.com,
	cupertino.miranda@oracle.com, david.faust@oss.qualcomm.com,
	irogers@google.com, jose.marchesi@oracle.com,
	vineet.gupta@linux.dev, yonghong.song@linux.dev,
	martin.lau@kernel.org, mason@kernel.org
Subject: Re: [PATCH bpf-next v3 03/13] docs, libbpf: Document complete BTF annotation strings
Date: Fri, 30 Oct 2026 17:27:00 -0700	[thread overview]
Message-ID: <c9fe17cf-a321-4a70-ba32-dc99225559dd@linux.dev> (raw)
In-Reply-To: <68d4cce002dd78be96cb549d4d228cec0fca46ae9be77a82b7521bd56c06f684@mail.kernel.org>

On 10/30/26 5:16 PM, bot+bpf-ci@kernel.org wrote:
>> docs, libbpf: Document complete BTF annotation strings
> 
> TL;DR: The BTF docs drop the old bare attribute-list form for kflagged tags
> without noting it. Older kernel BTF uses it, so consumers following the new
> text may print "address_space(1)" uncompilably. Should btf.rst mention it?
> 
>> diff --git a/Documentation/bpf/btf.rst b/Documentation/bpf/btf.rst
>> index 29de1222c3e7..98c1f0440f8b 100644
>> --- a/Documentation/bpf/btf.rst
>> +++ b/Documentation/bpf/btf.rst
> 
> [ ... ]
> 
>> @@ -539,8 +540,9 @@ normal type tag, and the ``name_off`` encodes btf_type_tag attribute
>>  string.
>>
>>  If ``info.kind_flag`` is 1, then the type tag represents an arbitrary
>> -__attribute__, and the ``name_off`` encodes a string representing the
>> -attribute-list of the attribute specifier.
>> +annotation. As with decl tags, ``name_off`` encodes the complete annotation
>> +string, which ``btf_dump`` prints unchanged. An attribute specifier must
>> +include its wrapper, for example ``__attribute__((address_space(1)))``.
>>
>>  2.2.19 BTF_KIND_ENUM64
>>  ~~~~~~~~~~~~~~~~~~~~~~
> 
> The old text, which described the string as the attribute-list (for example
> aligned(4)), is removed without any note that BTF in that older form exists.
> Should the format reference say something about it?

I don't think so, because the only significant consumer of the old
format is bpftool, and it handles it correctly.

> 
> [...]

  reply	other threads:[~2026-10-31  0:27 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-30 23:33 [PATCH bpf-next v3 00/13] bpftool: Per-record CO-RE attributes in the C dump Ihor Solodrai
2026-10-30 23:33 ` [PATCH bpf-next v3 01/13] libbpf: Look up BTF strings without making BTF modifiable Ihor Solodrai
2026-10-30 23:33 ` [PATCH bpf-next v3 02/13] libbpf: Dump kflagged BTF tags as is Ihor Solodrai
2026-10-31  0:16   ` bot+bpf-ci
2026-10-31  0:36     ` Ihor Solodrai
2026-10-30 23:33 ` [PATCH bpf-next v3 03/13] docs, libbpf: Document complete BTF annotation strings Ihor Solodrai
2026-10-31  0:16   ` bot+bpf-ci
2026-10-31  0:27     ` Ihor Solodrai [this message]
2026-10-30 23:33 ` [PATCH bpf-next v3 04/13] bpftool: Normalize legacy arena type tags before C dumps Ihor Solodrai
2026-10-31  0:16   ` bot+bpf-ci
2026-10-31  0:31     ` Ihor Solodrai
2026-10-30 23:33 ` [PATCH bpf-next v3 05/13] selftests/bpf: Build BTF fixtures in btf_to_tmpfile() Ihor Solodrai
2026-10-30 23:33 ` [PATCH bpf-next v3 06/13] selftests/bpf: Cover legacy arena type tags in bpftool C dumps Ihor Solodrai
2026-10-30 23:33 ` [PATCH bpf-next v3 07/13] selftests/bpf: Cover unknown BTF header-extension bytes in btf dump Ihor Solodrai
2026-10-30 23:33 ` [PATCH bpf-next v3 08/13] bpftool: Apply __bpf_relocatable per record on BTF dump Ihor Solodrai
2026-10-30 23:33 ` [PATCH bpf-next v3 09/13] bpftool: Skip __bpf_relocatable on verifier-rewritten context types Ihor Solodrai
2026-10-30 23:33 ` [PATCH bpf-next v3 10/13] bpftool: Emit __bpf_static_offset " Ihor Solodrai
2026-10-30 23:33 ` [PATCH bpf-next v3 11/13] selftests/bpf: Cover record attributes in bpftool BTF dumps Ihor Solodrai
2026-10-30 23:33 ` [PATCH bpf-next v3 12/13] selftests/bpf: Cover context and socket accesses through vmlinux.h Ihor Solodrai
2026-10-30 23:33 ` [PATCH bpf-next v3 13/13] bpftool: Document __bpf_relocatable and __bpf_static_offset Ihor Solodrai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c9fe17cf-a321-4a70-ba32-dc99225559dd@linux.dev \
    --to=ihor.solodrai@linux.dev \
    --cc=alan.maguire@oracle.com \
    --cc=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=bot+bpf-ci@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=cupertino.miranda@oracle.com \
    --cc=daniel@iogearbox.net \
    --cc=david.faust@oss.qualcomm.com \
    --cc=eddyz87@gmail.com \
    --cc=irogers@google.com \
    --cc=jose.marchesi@oracle.com \
    --cc=martin.lau@kernel.org \
    --cc=mason@kernel.org \
    --cc=memxor@gmail.com \
    --cc=qmo@kernel.org \
    --cc=vineet.gupta@linux.dev \
    --cc=yonghong.song@linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox