[sheepdog] [PATCH 00/10] refine tracer

Liu Yuan namei.unix at gmail.com
Wed Aug 7 19:56:07 CEST 2013


On Thu, Aug 08, 2013 at 12:48:58AM +0900, MORITA Kazutaka wrote:
> From: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
> 
> The current tracer has the following problems:
> 
>  - We cannot use the tracer with debug build.
>  - GDB doesn't print a line number if we link tracer.ld.
>  - We cannot trace the function which were not called before starting
>    tracer.
>  - There are some race conditions.
> 
> This series fixes these problem.
> 
> This series is a bit big, but helps us lot to debug codes and find a
> bottleneck.  In addition, it doesn't hurt the sheep core codes at all.
> I'd like to include this series in the 0.7.0 release if possible.

I think we need refine the 'collie debug' too:

1 simplify it as 'collie trace [command]'
2 support
  - collie trace enable <thread_checker|loop_checker|graph|all>
  - collie trace disable <thread_checker|loop_checker|graph|all>
  - collie trace status # list current enabled tracer for now
  - collie trace cat # output of tracers if any

When we optimize and stablize the tracer as good enough, then we can enable
some tracers by default.

Thanks
Yuan



More information about the sheepdog mailing list