[sheepdog] [PATCH v2 04/10] trace: add support for stackable tracers

Liu Yuan namei.unix at gmail.com
Fri Aug 9 06:51:35 CEST 2013


On Fri, Aug 09, 2013 at 12:21:58PM +0900, MORITA Kazutaka wrote:
> From: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
> 
> This adds support for calling multiple tracers at entry/exit points of
> functions.  The benefits of this change is as follows:
> 
>  - This moves complicated codes of tracers into trace/tracer.c and
>    simplifies trace/graph.c.  It makes it very easy to add another
>    tracer.

trace.h need clean up following unused typedefs

typedef void (*trace_func_t)(unsigned long ip, unsigned long *parent_ip);
/* Type of the callback handlers for function entry and return */
typedef void (*trace_func_graph_ret_t)(struct trace_graph_item *);
typedef void (*trace_func_graph_ent_t)(struct trace_graph_item *);

/* graph.c */

Thanks
Yuan



More information about the sheepdog mailing list