X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt-tracer-core.h;h=5abc432d24a0a6bebd210d7a304c325eb131c9d7;hb=90f96adf9b02ecdb8c982bfda64fbfd4b11c34a8;hp=1ac8c5b32eb36f35238ce60db23f43a7f4d0c9d2;hpb=1c8284ebdbd119314b8f01e442e64cf5fd4b9fe6;p=lttng-modules.git diff --git a/ltt-tracer-core.h b/ltt-tracer-core.h index 1ac8c5b3..5abc432d 100644 --- a/ltt-tracer-core.h +++ b/ltt-tracer-core.h @@ -1,50 +1,28 @@ +#ifndef LTT_TRACER_CORE_H +#define LTT_TRACER_CORE_H + /* - * Copyright (C) 2005,2006 Mathieu Desnoyers (mathieu.desnoyers@polymtl.ca) + * ltt-tracer-core.h + * + * Copyright (C) 2005-2011 Mathieu Desnoyers * * This contains the core definitions for the Linux Trace Toolkit. * * Dual LGPL v2.1/GPL v2 license. */ -#ifndef LTT_TRACER_CORE_H -#define LTT_TRACER_CORE_H - #include #include -#include - -/* ltt's root dir in debugfs */ -#define LTT_ROOT "ltt" - -/* - * 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); +#ifndef CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS +/* Align data on its natural alignment */ +#define RING_BUFFER_ALIGN +#endif -extern ltt_run_filter_functor ltt_run_filter; +#include "wrapper/ringbuffer/config.h" -extern void ltt_filter_register(ltt_run_filter_functor func); -extern void ltt_filter_unregister(void); +struct ltt_session; +struct ltt_channel; +struct ltt_event; #endif /* LTT_TRACER_CORE_H */