X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=ltt-tracer-core.h;h=5abc432d24a0a6bebd210d7a304c325eb131c9d7;hb=b76dc1a0b1f4eb9f7ae754d2b44a431d9a24b1a5;hp=cb82658b19c0ea014f5823ae434d1259cfe668bf;hpb=1c25284c690cd38b71789c4024089d28de21caea;p=lttng-modules.git diff --git a/ltt-tracer-core.h b/ltt-tracer-core.h index cb82658b..5abc432d 100644 --- a/ltt-tracer-core.h +++ b/ltt-tracer-core.h @@ -1,29 +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 + +#ifndef CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS +/* Align data on its natural alignment */ +#define RING_BUFFER_ALIGN +#endif + +#include "wrapper/ringbuffer/config.h" struct ltt_session; struct ltt_channel; struct ltt_event; -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; - -extern void ltt_filter_register(ltt_run_filter_functor func); -extern void ltt_filter_unregister(void); - #endif /* LTT_TRACER_CORE_H */