symbols: Generate an xen-sym.map
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 18 Jul 2016 16:36:24 +0000 (12:36 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 8 Sep 2016 01:10:41 +0000 (21:10 -0400)
commit6ea24e53f12352ecb581816bd9fe18bb38dd756c
tree541b1db75aeb39fa1aa45d568dc01144a371e229
parented32327715288fca9176e2fb24887c43a90fb845
symbols: Generate an xen-sym.map

You could construct _most_ of the names of the functions
by doing 'nm --defined' but unfortunatly you do not get the
<file> prefix that is added on in Xen . For example:

$ cat xen-syms.symbols |grep do_domain_pause
0xffff82d080104920 t domain.c#do_domain_pause
$ nm --defined xen-syms|grep do_domain_pause
ffff82d080104920 t do_domain_pause

This is normally not an issue, but if one is doing livepatching and
wants during build-time verify that the symbols the livepatch payloads
will patch do correspond to the one the hypervisor has built - this helps a lot.

Note that during runtime one can do:
[root@localhost xen]# cat /proc/xen/xensyms |grep do_domain_pause
ffff82d080104920 t domain.c#do_domain_pause

But one may not want to build and verify a livepatch on the same host.

Reviewed-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
.gitignore
xen/Makefile
xen/arch/arm/Makefile
xen/arch/x86/Makefile
xen/tools/symbols.c