2 /* LTTng user-space "fast" tracing header
4 * Copyright 2006 Mathieu Desnoyers
8 #ifndef _LTT_USERTRACE_FAST_H
9 #define _LTT_USERTRACE_FAST_H
12 #include <asm/atomic.h>
14 #ifndef LTT_BUF_SIZE_CPU
15 #define LTT_BUF_SIZE_CPU 1048576
16 #endif //LTT_BUF_SIZE_CPU
18 #ifndef LTT_BUF_SIZE_FACILITIES
19 #define LTT_BUF_SIZE_FACILITIES 4096
20 #endif //LTT_BUF_SIZE_FACILITIES
24 atomic_t reserve_count
;
25 atomic_t commit_count
;
30 struct lttng_trace_info
{
31 struct _pthread_cleanup_buffer cleanup
;
36 struct ltt_buf facilities
;
37 char facilities_buf
[LTT_BUF_SIZE_FACILITIES
] __attribute__ ((aligned (8)));
39 char cpu_buf
[LTT_BUF_SIZE_CPU
] __attribute__ ((aligned (8)));
43 extern __thread
struct lttng_trace_info lttng_trace_info
;
45 void ltt_thread_init(void);
47 #endif //_LTT_USERTRACE_FAST_H