X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=ltt-tracer-core.h;h=cb82658b19c0ea014f5823ae434d1259cfe668bf;hb=1c25284c690cd38b71789c4024089d28de21caea;hp=1ac8c5b32eb36f35238ce60db23f43a7f4d0c9d2;hpb=57a13317407af307da09f519799a860f88ae7246;p=deliverable%2Flttng-modules.git diff --git a/ltt-tracer-core.h b/ltt-tracer-core.h index 1ac8c5b3..cb82658b 100644 --- a/ltt-tracer-core.h +++ b/ltt-tracer-core.h @@ -13,34 +13,13 @@ #include #include -/* ltt's root dir in debugfs */ -#define LTT_ROOT "ltt" +struct ltt_session; +struct ltt_channel; +struct ltt_event; -/* - * All modifications of ltt_traces must be done by ltt-tracer.c, while holding - * the semaphore. Only reading of this information can be done elsewhere, with - * the RCU mechanism : the preemption must be disabled while reading the - * list. - */ -struct ltt_traces { - struct list_head setup_head; /* Pre-allocated traces list */ - struct list_head head; /* Allocated Traces list */ - unsigned int num_active_traces; /* Number of active traces */ -} ____cacheline_aligned; - -extern struct ltt_traces ltt_traces; - -/* - * get dentry of ltt's root dir - */ -struct dentry *get_ltt_root(void); - -void put_ltt_root(void); - -/* Keep track of trap nesting inside LTT */ -DECLARE_PER_CPU(unsigned int, ltt_nesting); - -typedef int (*ltt_run_filter_functor)(void *trace, uint16_t eID); +typedef int (*ltt_run_filter_functor)(struct ltt_session *session, + struct ltt_channel *chan, + struct ltt_event *event); extern ltt_run_filter_functor ltt_run_filter;