2 /* LTTng user-space tracing header
4 * Copyright 2006 Mathieu Desnoyers
8 #ifndef _LTTNG_USERTRACE_H
9 #define _LTTNG_USERTRACE_H
14 #include <asm/atomic.h>
16 //Put in asm-i486/unistd.h
17 #define __NR_ltt_update 294
18 #define __NR_ltt_switch 295
21 #define NR_syscalls 296
24 // Put in bits/syscall.h
25 #define SYS_ltt_update __NR_ltt_update
26 #define SYS_ltt_switch __NR_ltt_switch
33 atomic_t reserve_count
;
34 atomic_t commit_count
;
39 struct lttng_trace_info
{
45 struct ltt_buf facilities
;
51 void __lttng_sig_trace_handler(int signo
);
53 /* Call this at the beginning of a new thread, except for the main() */
54 void lttng_thread_init(void);
56 void lttng_free_trace_info(struct lttng_trace_info
*info
);
58 static inline _syscall1(int, ltt_switch
, unsigned long, addr
)
59 static inline _syscall5(int, ltt_update
, unsigned long *, cpu_addr
, unsigned long *, fac_addr
, int *, active
, int *, filter
, int *, destroy
)
61 #endif //_LTTNG_USERTRACE_H
This page took 0.046033 seconds and 5 git commands to generate.