OSDN Git Service

Merge branch 'libbpf: BTF typed dump cleanups'
authorAndrii Nakryiko <andrii@kernel.org>
Sat, 17 Jul 2021 00:22:05 +0000 (17:22 -0700)
committerAndrii Nakryiko <andrii@kernel.org>
Sat, 17 Jul 2021 00:30:22 +0000 (17:30 -0700)
commit78e4a955928ef4a3e68cc371ac8c70fd150f873b
tree6c8b85f1aef8f28ef64175e20b8fa09212d00cd6
parent068dfc655b666b54e08fc3d7108b309d7f906d34
parentadd192f81ab21b58471577c75e7be9c9add98223
Merge branch 'libbpf: BTF typed dump cleanups'

Alan Maguire says:

====================

Fix issues with libbpf BTF typed dump code.  Patch 1 addresses handling
of unaligned data. Patch 2 fixes issues Andrii noticed when compiling
on ppc64le.  Patch 3 simplifies typed dump by getting rid of allocation
of dump data structure which tracks dump state etc.

Changes since v1:

 - Andrii suggested using a function instead of a macro for checking
   alignment of data, and pointed out that we need to consider dump
   ptr size versus native pointer size (patch 1)
====================

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>