projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0.8.28
[lttv.git]
/
usertrace
/
lttng_usertrace.h
diff --git
a/usertrace/lttng_usertrace.h
b/usertrace/lttng_usertrace.h
index 944e8a0f51e1e548544145c74eb53599395aba19..600be4ffbb5915464e7874eab64b037cc7a6f95e 100644
(file)
--- a/
usertrace/lttng_usertrace.h
+++ b/
usertrace/lttng_usertrace.h
@@
-11,6
+11,8
@@
#include <errno.h>
#include <syscall.h>
#include <errno.h>
#include <syscall.h>
+#include <asm/atomic.h>
+
//Put in asm-i486/unistd.h
#define __NR_ltt_update 294
#define __NR_ltt_switch 295
//Put in asm-i486/unistd.h
#define __NR_ltt_update 294
#define __NR_ltt_switch 295
@@
-24,12
+26,36
@@
#define SYS_ltt_switch __NR_ltt_switch
#endif
#define SYS_ltt_switch __NR_ltt_switch
#endif
+struct ltt_buf {
+ void *start;
+ size_t length;
+ atomic_t offset;
+ atomic_t reserve_count;
+ atomic_t commit_count;
+
+ atomic_t events_lost;
+};
+
+struct lttng_trace_info {
+ int active:1;
+ int destroy:1;
+ int filter;
+ atomic_t nesting;
+ struct {
+ struct ltt_buf facilities;
+ struct ltt_buf cpu;
+ } channel;
+};
+
+
void __lttng_sig_trace_handler(int signo);
/* Call this at the beginning of a new thread, except for the main() */
void lttng_thread_init(void);
void __lttng_sig_trace_handler(int signo);
/* Call this at the beginning of a new thread, except for the main() */
void lttng_thread_init(void);
+void lttng_free_trace_info(struct lttng_trace_info *info);
+
static inline _syscall1(int, ltt_switch, unsigned long, addr)
static inline _syscall1(int, ltt_switch, unsigned long, addr)
-static inline _syscall
3(int, ltt_update, unsigned long, addr, int *, active, int *, filter
)
+static inline _syscall
5(int, ltt_update, unsigned long *, cpu_addr, unsigned long *, fac_addr, int *, active, int *, filter, int *, destroy
)
#endif //_LTTNG_USERTRACE_H
#endif //_LTTNG_USERTRACE_H
This page took
0.023393 seconds
and
4
git commands to generate.