Re: [Xen-devel] [PATCH v4 8/9] symbols: Generate an xen-sym.map
On 08/24/2016 03:22 AM, Konrad Rzeszutek Wilk wrote: You could construct _most_ of the names of the functions by doing 'nm --defined' but unfortunatly you do not get the prefix that is added on in Xen . For example: $ cat xen-syms.symbols |grep do_domain_pause 0x82d080104920 t domain.c#do_domain_pause $ nm --defined xen-syms|grep do_domain_pause 82d080104920 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 82d080104920 t domain.c#do_domain_pause But one may not want to build and verify a livepatch on the same host. Signed-off-by: Konrad Rzeszutek Wilk --- Reviewed-by: Ross Lagerwall ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel
Re: [Xen-devel] [PATCH v4 8/9] symbols: Generate an xen-sym.map
>>> On 24.08.16 at 04:22, wrote: > You could construct _most_ of the names of the functions > by doing 'nm --defined' but unfortunatly you do not get the > prefix that is added on in Xen . For example: > > $ cat xen-syms.symbols |grep do_domain_pause > 0x82d080104920 t domain.c#do_domain_pause > $ nm --defined xen-syms|grep do_domain_pause > 82d080104920 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 > 82d080104920 t domain.c#do_domain_pause > > But one may not want to build and verify a livepatch on the same host. > > Signed-off-by: Konrad Rzeszutek Wilk Reviewed-by: Jan Beulich ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel