BPF List
 help / color / mirror / Atom feed
From: Daniel Borkmann <daniel@iogearbox.net>
To: Yonghong Song <yhs@fb.com>, bpf@vger.kernel.org
Cc: Alexei Starovoitov <ast@kernel.org>,
	Andrii Nakryiko <andrii@kernel.org>,
	kernel-team@fb.com
Subject: Re: [PATCH bpf-next] bpf: rename BTF_KIND_TAG to BTF_KIND_DECL_TAG
Date: Mon, 11 Oct 2021 16:25:43 +0200	[thread overview]
Message-ID: <c91ece3f-ec7e-bd3c-9b3d-19952b2d21e7@iogearbox.net> (raw)
In-Reply-To: <20211011040608.3031468-1-yhs@fb.com>

On 10/11/21 6:06 AM, Yonghong Song wrote:
> Patch set [1] introduced BTF_KIND_TAG to allow tagging
> declarations for struct/union, struct/union field, var, func
> and func arguments and these tags will be encoded into
> dwarf. They are also encoded to btf by llvm for the bpf target.
> 
> After BTF_KIND_TAG is introduced, we intended to use it
> for kernel __user attributes. But kernel __user is actually
> a type attribute. Upstream and internal discussion showed
> it is not a good idea to mix declaration attribute and
> type attribute. So we proposed to introduce btf_type_tag
> as a type attribute and existing btf_tag renamed to
> btf_decl_tag ([2]).
> 
> This patch renamed BTF_KIND_TAG to BTF_KIND_DECL_TAG and some
> other declarations with *_tag to *_decl_tag to make it clear
> the tag is for declaration. In the future, BTF_KIND_TYPE_TAG
> might be introduced per [2].
> 
>   [1] https://lore.kernel.org/bpf/20210914223004.244411-1-yhs@fb.com/
>   [2] https://reviews.llvm.org/D111199
> 

Just a small nit: no objections to the rename as its only in bpf-next, but
lets add proper Fixes tags to the three main commits from the series in [1]
(which adds it to core, libbpf, bpftool). Given these are in bpf-next, the
commit shas are more useful for searching in the git log compared to links
to lore in this case. Thanks!

> Signed-off-by: Yonghong Song <yhs@fb.com>

  reply	other threads:[~2021-10-11 14:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-11  4:06 [PATCH bpf-next] bpf: rename BTF_KIND_TAG to BTF_KIND_DECL_TAG Yonghong Song
2021-10-11 14:25 ` Daniel Borkmann [this message]
2021-10-11 14:36   ` Yonghong Song

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=c91ece3f-ec7e-bd3c-9b3d-19952b2d21e7@iogearbox.net \
    --to=daniel@iogearbox.net \
    --cc=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=kernel-team@fb.com \
    --cc=yhs@fb.com \
    /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