initial usertrace syscall and signal
[lttv.git] / usertrace / lttng_usertrace.h
diff --git a/usertrace/lttng_usertrace.h b/usertrace/lttng_usertrace.h
new file mode 100644 (file)
index 0000000..c16aa78
--- /dev/null
@@ -0,0 +1,31 @@
+
+/* LTTng user-space tracing header
+ *
+ * Copyright 2006 Mathieu Desnoyers
+ *
+ */
+
+#ifndef _LTTNG_USERTRACE_H
+#define _LTTNG_USERTRACE_H
+
+#include <errno.h>
+#include <syscall.h>
+
+//Put in asm-i486/unistd.h
+#define __NR_ltt_update        294
+#define __NR_ltt_switch        295
+
+#undef NR_syscalls
+#define NR_syscalls 296
+
+#ifndef _LIBC
+// Put in bits/syscall.h
+#define SYS_ltt_update __NR_ltt_update
+#define SYS_ltt_switch __NR_ltt_switch
+#endif
+
+void __lttng_sig_trace_handler(int signo);
+
+static inline _syscall3(int, ltt_update, unsigned long, addr, int *, active, int *, filter)
+
+#endif //_LTTNG_USERTRACE_H
This page took 0.036922 seconds and 4 git commands to generate.