Re: [PATCH bpf-next 5/9] libbpf: allow modification of BTF and add btf__add_str API

2020-09-24 Thread Andrii Nakryiko
On Thu, Sep 24, 2020 at 8:56 AM John Fastabend wrote: > > Andrii Nakryiko wrote: > > Allow internal BTF representation to switch from default read-only mode, in > > which raw BTF data is a single non-modifiable block of memory with BTF > > header, > > types, and strings layed out sequentially and

RE: [PATCH bpf-next 5/9] libbpf: allow modification of BTF and add btf__add_str API

2020-09-24 Thread John Fastabend
Andrii Nakryiko wrote: > Allow internal BTF representation to switch from default read-only mode, in > which raw BTF data is a single non-modifiable block of memory with BTF header, > types, and strings layed out sequentially and contiguously in memory, into > a writable representation with types a

[PATCH bpf-next 5/9] libbpf: allow modification of BTF and add btf__add_str API

2020-09-23 Thread Andrii Nakryiko
Allow internal BTF representation to switch from default read-only mode, in which raw BTF data is a single non-modifiable block of memory with BTF header, types, and strings layed out sequentially and contiguously in memory, into a writable representation with types and strings data split out into