[sheepdog] [PATCH 4/4] sheep: dump cluster info when exiting unexpectedly
MORITA Kazutaka
morita.kazutaka at gmail.com
Thu Feb 28 07:51:39 CET 2013
At Thu, 28 Feb 2013 14:18:08 +0800,
Liu Yuan wrote:
>
> On 02/28/2013 01:15 AM, MORITA Kazutaka wrote:
> > +#define sd_dump_variable(var) ({ \
> > + register void *current_sp asm("rsp"); \
> > + __sd_dump_variable(#var, current_sp); \
> > +})
> > +int __sd_dump_variable(const char *var, const void *base_sp);
>
> Why use macro instead of a inline funciton? We'll lose type check for it.
To pass the stack pointer of the caller of sd_dump_variable. I think
the function that uses inline assembly doesn't inlined even if we add
__always_inline.
Thanks,
Kazutaka
More information about the sheepdog
mailing list