Re: [RFC PATCH bpf-next 4/8] libbpf: identify maps by section index in addition to offset

2019-06-17 Thread Song Liu
> On Jun 17, 2019, at 11:06 AM, Andrii Nakryiko > wrote: > > On Sat, Jun 15, 2019 at 2:08 PM Song Liu wrote: >> >> On Mon, Jun 10, 2019 at 9:37 PM Andrii Nakryiko wrote: >>> >>> To support maps to be defined in multiple sections, it's important to >>> identify map not just by offset withi

Re: [RFC PATCH bpf-next 4/8] libbpf: identify maps by section index in addition to offset

2019-06-17 Thread Andrii Nakryiko
On Sat, Jun 15, 2019 at 2:08 PM Song Liu wrote: > > On Mon, Jun 10, 2019 at 9:37 PM Andrii Nakryiko wrote: > > > > To support maps to be defined in multiple sections, it's important to > > identify map not just by offset within its section, but section index as > > well. This patch adds tracking

Re: [RFC PATCH bpf-next 4/8] libbpf: identify maps by section index in addition to offset

2019-06-15 Thread Song Liu
On Mon, Jun 10, 2019 at 9:37 PM Andrii Nakryiko wrote: > > To support maps to be defined in multiple sections, it's important to > identify map not just by offset within its section, but section index as > well. This patch adds tracking of section index. > > For global data, we record section inde

[PATCH bpf-next 4/8] libbpf: identify maps by section index in addition to offset

2019-06-10 Thread Andrii Nakryiko
To support maps to be defined in multiple sections, it's important to identify map not just by offset within its section, but section index as well. This patch adds tracking of section index. For global data, we record section index of corresponding .data/.bss/.rodata ELF section for uniformity, a

[RFC PATCH bpf-next 4/8] libbpf: identify maps by section index in addition to offset

2019-06-10 Thread Andrii Nakryiko
To support maps to be defined in multiple sections, it's important to identify map not just by offset within its section, but section index as well. This patch adds tracking of section index. For global data, we record section index of corresponding .data/.bss/.rodata ELF section for uniformity, a

[RFC PATCH bpf-next 4/8] libbpf: identify maps by section index in addition to offset

2019-05-31 Thread Andrii Nakryiko
To support maps to be defined in multiple sections, it's important to identify map not just by offset within its section, but section index as well. This patch adds tracking of section index. For global data, we record section index of corresponding .data/.bss/.rodata ELF section for uniformity, a