Re: [PATCH] x86/kbuild: enable modversions for symbols exported from asm
From: Stanislav Kozina
Date: Mon Dec 12 2016 - 20:08:11 EST
That said, a dwarf based checker tool should be able to do as good a job
So, Nicholas was kind enough to send me the two Linux Kernel binaries
(maybe a bit better because report is very informative and it may pick up
compiler alignments or padding options).
that he built with the tiny little interface change that we were
discussing earlier. Here is what the abidiff tools says about that
Thanks Nicholas and Dodji for this great example, for comparison I think
it would be nice to share the example run with kabi-dw too.
kabi-dw first dumps and unifies all type information into a set of text
files, the unification takes a significant time. Then the two sets of
these text files can be compared.
An example run would look like:
$ time ~/Code/kabi-dw/kabi-dw generate -o abi1 vmlinux.abi1
Generating symbol defs from vmlinux.abi1...
$ time ~/Code/kabi-dw/kabi-dw generate -o abi2 vmlinux.abi2
Generating symbol defs from vmlinux.abi2...
$ time ~/Code/kabi-dw/kabi-dw compare abi1 abi2
Changes detected in:
+0x0 int y;
-0x0 int x;
+0x4 int x;
The size of the generated text files with all the relevant type
information is as follows:
$ du -hs abi1
$ find abi1 -type f | wc -l