v2: https://lore.kernel.org/bpf/20211013160902.428340-1-iii@xxxxxxxxxxxxx/ v2 -> v3: - Drop committed patches. - Handle potential division by zero when using btf__align_of(). Use btf__align_of() in btf_dump_ptr_data() instead of the direct ptr_sz access: although it's slightly slower, the result is the same and the resulting code is more uniform. v1: https://lore.kernel.org/bpf/20211012023218.399568-1-iii@xxxxxxxxxxxxx/ v1 -> v2: - Remove redundant local variables, use t->size directly instead. - Add btf__align_of() patch. Ilya Leoshkevich (1): libbpf: Fix ptr_is_aligned() usages tools/lib/bpf/btf_dump.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) -- 2.31.1