b8b00688 |
1 | |
2 | /* LTTng user-space tracing header |
3 | * |
4 | * Copyright 2006 Mathieu Desnoyers |
5 | * |
6 | */ |
7 | |
8 | #ifndef _LTTNG_USERTRACE_H |
9 | #define _LTTNG_USERTRACE_H |
10 | |
11 | #include <errno.h> |
12 | #include <syscall.h> |
13 | |
14 | //Put in asm-i486/unistd.h |
15 | #define __NR_ltt_update 294 |
16 | #define __NR_ltt_switch 295 |
17 | |
18 | #undef NR_syscalls |
19 | #define NR_syscalls 296 |
20 | |
21 | #ifndef _LIBC |
22 | // Put in bits/syscall.h |
23 | #define SYS_ltt_update __NR_ltt_update |
24 | #define SYS_ltt_switch __NR_ltt_switch |
25 | #endif |
26 | |
27 | void __lttng_sig_trace_handler(int signo); |
28 | |
1a1e2a8c |
29 | /* Call this at the beginning of a new thread, except for the main() */ |
30 | void lttng_thread_init(void); |
31 | |
92f441a7 |
32 | static inline _syscall1(int, ltt_switch, unsigned long, addr) |
9d45fe0f |
33 | static inline _syscall4(int, ltt_update, unsigned long *, cpu_addr, unsigned long *, fac_addr, int *, active, int *, filter) |
b8b00688 |
34 | |
35 | #endif //_LTTNG_USERTRACE_H |