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
23 #ifndef LTT_USERTRACE_ROOT
24 #define LTT_USERTRACE_ROOT "/tmp/ltt-usertrace"
25 #endif //LTT_USERTRACE_ROOT
29 atomic_t reserve_count
;
30 atomic_t commit_count
;
35 struct ltt_trace_info
{
38 #ifndef LTT_USE_THREADS
42 #endif //LTT_USE_THREADS
45 struct ltt_buf facilities
;
47 char facilities_buf
[LTT_BUF_SIZE_FACILITIES
] __attribute__ ((aligned (8)));
48 char cpu_buf
[LTT_BUF_SIZE_CPU
] __attribute__ ((aligned (8)));
52 extern __thread
struct ltt_trace_info
*thread_trace_info
;
54 void ltt_thread_init(void);
56 void ltt_usertrace_fast_buffer_switch(void);
58 #endif //_LTT_USERTRACE_FAST_H
This page took 0.044472 seconds and 5 git commands to generate.