pahole: Consider type members's names when comparing unions, structs
The last one was:
$ btfdiff vmlinux
--- /tmp/btfdiff.dwarf.VUXlsB 2021-08-06 18:11:51.371012024 -0300
+++ /tmp/btfdiff.btf.CeZ7hA 2021-08-06 18:11:51.604017029 -0300
@@ -48226,8 +48226,8 @@ struct intel_ir_data {
/* last cacheline: 56 bytes */
};
struct intel_pad_context {
- u32 padctrl0; /* 0 4 */
- u32 padctrl1; /* 4 4 */
+ u32 conf0; /* 0 4 */
+ u32 val; /* 4 4 */
/* size: 8, cachelines: 1, members: 2 */
/* last cacheline: 8 bytes */
$
That now is covered as well. Please report if you see some other corner
case (some attribute(__aligned__(N)))) perhaps? :)).
Now 'btfdiff vmlinux' is clean.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 file changed