bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Eduard Zingerman <eddyz87@gmail.com>
To: Alan Maguire <alan.maguire@oracle.com>,
	andrii@kernel.org, jolsa@kernel.org,  acme@redhat.com,
	quentin@isovalent.com
Cc: mykolal@fb.com, ast@kernel.org, daniel@iogearbox.net,
	martin.lau@linux.dev,  song@kernel.org, yonghong.song@linux.dev,
	john.fastabend@gmail.com,  kpsingh@kernel.org, sdf@google.com,
	haoluo@google.com, houtao1@huawei.com,  bpf@vger.kernel.org,
	masahiroy@kernel.org, mcgrof@kernel.org, nathan@kernel.org
Subject: Re: [PATCH dwarves] btf_encoder: add "distilled_base" BTF feature to split BTF generation
Date: Sat, 11 May 2024 02:24:34 -0700	[thread overview]
Message-ID: <65f5bac3ad49c1136259b0361cfb5180dd372d83.camel@gmail.com> (raw)
In-Reply-To: <20240510104847.858922-1-alan.maguire@oracle.com>

On Fri, 2024-05-10 at 11:48 +0100, Alan Maguire wrote:
> Adding "distilled_base" to --btf_features when generating split BTF will
> create split and .BTF.base BTF - the latter allows us to map references
> from split BTF to base BTF, even if that base BTF has changed.  It does
> this by providing just enough information about the base types in the
> .BTF.base section.
> 
> Patch is applicable on the "next" branch of dwarves, and requires the
> libbpf from the series in [1]
> 
> Signed-off-by: Alan Maguire <alan.maguire@oracle.com>
> 
> [1] https://lore.kernel.org/bpf/20240510103052.850012-1-alan.maguire@oracle.com/
> 
> ---

Acked-by: Eduard Zingerman <eddyz87@gmail.com>

[...]

> diff --git a/btf_encoder.c b/btf_encoder.c

[...]

> @@ -1297,7 +1298,7 @@ static int btf_encoder__write_elf(struct btf_encoder *encoder)
>  		if (shdr == NULL)
>  			continue;
>  		char *secname = elf_strptr(elf, strndx, shdr->sh_name);
> -		if (strcmp(secname, ".BTF") == 0) {
> +		if (strcmp(secname, btf_secname) == 0) {

Nit: comments in this function still refer to '.BTF' section.

>  			btf_data = elf_getdata(scn, btf_data);
>  			break;
>  		}

[...]

  reply	other threads:[~2024-05-11  9:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-10 10:48 [PATCH dwarves] btf_encoder: add "distilled_base" BTF feature to split BTF generation Alan Maguire
2024-05-11  9:24 ` Eduard Zingerman [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-05-17 10:27 Alan Maguire
2024-04-24 15:54 Alan Maguire

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=65f5bac3ad49c1136259b0361cfb5180dd372d83.camel@gmail.com \
    --to=eddyz87@gmail.com \
    --cc=acme@redhat.com \
    --cc=alan.maguire@oracle.com \
    --cc=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=haoluo@google.com \
    --cc=houtao1@huawei.com \
    --cc=john.fastabend@gmail.com \
    --cc=jolsa@kernel.org \
    --cc=kpsingh@kernel.org \
    --cc=martin.lau@linux.dev \
    --cc=masahiroy@kernel.org \
    --cc=mcgrof@kernel.org \
    --cc=mykolal@fb.com \
    --cc=nathan@kernel.org \
    --cc=quentin@isovalent.com \
    --cc=sdf@google.com \
    --cc=song@kernel.org \
    --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;
as well as URLs for NNTP newsgroup(s).