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>
15 #ifndef LTT_BUF_SIZE_CPU
16 #define LTT_BUF_SIZE_CPU 1048576
17 #endif //LTT_BUF_SIZE_CPU
19 #ifndef LTT_BUF_SIZE_FACILITIES
20 #define LTT_BUF_SIZE_FACILITIES 4096
21 #endif //LTT_BUF_SIZE_FACILITIES
25 atomic_t reserve_count
;
26 atomic_t commit_count
;
31 struct ltt_trace_info
{
34 #ifndef LTT_USE_THREADS
38 #endif //LTT_USE_THREADS
41 struct ltt_buf facilities
;
43 char facilities_buf
[LTT_BUF_SIZE_FACILITIES
] __attribute__ ((aligned (8)));
44 char cpu_buf
[LTT_BUF_SIZE_CPU
] __attribute__ ((aligned (8)));
48 extern __thread
struct ltt_trace_info
*thread_trace_info
;
50 void ltt_thread_init(void);
52 void ltt_usertrace_fast_buffer_switch(void);
54 #endif //_LTT_USERTRACE_FAST_H
This page took 0.035554 seconds and 5 git commands to generate.