[sheepdog] [PATCH v2 06/10] add notrace to only entry point and exit point

MORITA Kazutaka morita.kazutaka at gmail.com
Fri Aug 9 10:51:27 CEST 2013


At Fri, 9 Aug 2013 12:45:52 +0800,
Liu Yuan wrote:
> 
> On Fri, Aug 09, 2013 at 12:22:00PM +0900, MORITA Kazutaka wrote:
> > From: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
> > 
> > It is difficult to know which function needs a notrace directive.  We
> > are using notrace to avoid starting tracer recursively while tracing,
> > but we can do the similar thing by using a thread local variable.
> > With this patch, notrace is necessary only to the entry point
> > (tracer_call) and the exit point (tracer_return_call).
> 
> How about rename as
> 
> trace_call --> trace_function_entry
> trace_return_call --> trace_function_exit

Looks good to me.

Thanks,

Kazutaka



More information about the sheepdog mailing list