[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] tools/livepatch: recognize functions in livepatch.ignore.functions



On 12/14/2017 07:18 AM, Elena Ufimtseva wrote:
Hi Ross

Thanks for the info.
I actually did look into the KPATCH_IGNORE_FUNCTION code. But.. I
somehow ended up having this:

#define KPATCH_IGNORE_FUNCTION(_fn) \
void *__kpatch_ignore_func_##_fn __section(.kpatch.ignore.functions) = (#_fn);

Which apparently caused the symbol not being a function type, but a string(?).


You've got a single # before _fn which causes stringification of the macro parameter. Therefore the symbol became a string and not a function.

Cheers,
--
Ross Lagerwall

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.