RE: [PATCH bpf-next 1/3] libbpf: fix struct end padding in btf_dump

2019-10-08 Thread John Fastabend
Andrii Nakryiko wrote: > Fix a case where explicit padding at the end of a struct is necessary > due to non-standart alignment requirements of fields (which BTF doesn't > capture explicitly). > > Fixes: 351131b51c7a ("libbpf: add btf_dump API for BTF-to-C conversion") > Reported-by: John Fastabend

[PATCH bpf-next 1/3] libbpf: fix struct end padding in btf_dump

2019-10-08 Thread Andrii Nakryiko
Fix a case where explicit padding at the end of a struct is necessary due to non-standart alignment requirements of fields (which BTF doesn't capture explicitly). Fixes: 351131b51c7a ("libbpf: add btf_dump API for BTF-to-C conversion") Reported-by: John Fastabend Signed-off-by: Andrii Nakryiko -