signals ok
[lttv.git] / usertrace / lttng_usertrace.h
CommitLineData
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
27void __lttng_sig_trace_handler(int signo);
28
1a1e2a8c 29/* Call this at the beginning of a new thread, except for the main() */
30void lttng_thread_init(void);
31
92f441a7 32static inline _syscall1(int, ltt_switch, unsigned long, addr)
b8b00688 33static inline _syscall3(int, ltt_update, unsigned long, addr, int *, active, int *, filter)
34
35#endif //_LTTNG_USERTRACE_H
This page took 0.023112 seconds and 4 git commands to generate.