Commit | Line | Data |
---|---|---|
1c8284eb MD |
1 | /* |
2 | * Copyright (C) 2005,2006 Mathieu Desnoyers (mathieu.desnoyers@polymtl.ca) | |
3 | * | |
4 | * This contains the core definitions for the Linux Trace Toolkit. | |
5 | * | |
6 | * Dual LGPL v2.1/GPL v2 license. | |
7 | */ | |
8 | ||
9 | #ifndef LTT_TRACER_CORE_H | |
10 | #define LTT_TRACER_CORE_H | |
11 | ||
12 | #include <linux/list.h> | |
13 | #include <linux/percpu.h> | |
14 | #include <linux/ltt-core.h> | |
15 | ||
6db3d13b MD |
16 | #ifndef CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS |
17 | /* Align data on its natural alignment */ | |
18 | #define RING_BUFFER_ALIGN | |
19 | #endif | |
20 | ||
21 | #include <linux/ringbuffer/config.h> | |
22 | ||
1c25284c MD |
23 | struct ltt_session; |
24 | struct ltt_channel; | |
25 | struct ltt_event; | |
1c8284eb | 26 | |
1c25284c MD |
27 | typedef int (*ltt_run_filter_functor)(struct ltt_session *session, |
28 | struct ltt_channel *chan, | |
29 | struct ltt_event *event); | |
1c8284eb MD |
30 | |
31 | extern ltt_run_filter_functor ltt_run_filter; | |
32 | ||
33 | extern void ltt_filter_register(ltt_run_filter_functor func); | |
34 | extern void ltt_filter_unregister(void); | |
35 | ||
36 | #endif /* LTT_TRACER_CORE_H */ |