22 #ifndef _XENO_NUCLEUS_TRACE_H
23 #define _XENO_NUCLEUS_TRACE_H
25 #define __xntrace_op_max_begin 0
26 #define __xntrace_op_max_end 1
27 #define __xntrace_op_max_reset 2
28 #define __xntrace_op_user_start 3
29 #define __xntrace_op_user_stop 4
30 #define __xntrace_op_user_freeze 5
31 #define __xntrace_op_special 6
32 #define __xntrace_op_special_u64 7
34 #if defined(__KERNEL__) || defined(__XENO_SIM__)
36 #include <asm/xenomai/system.h>
38 #define xntrace_max_begin(v) xnarch_trace_max_begin(v)
39 #define xntrace_max_end(v) xnarch_trace_max_end(v)
40 #define xntrace_max_reset() xnarch_trace_max_reset()
41 #define xntrace_user_start() xnarch_trace_user_start()
42 #define xntrace_user_stop(v) xnarch_trace_user_stop(v)
43 #define xntrace_user_freeze(v, once) xnarch_trace_user_freeze(v, once)
44 #define xntrace_special(id, v) xnarch_trace_special(id, v)
45 #define xntrace_special_u64(id, v) xnarch_trace_special_u64(id, v)
46 #define xntrace_pid(pid, prio) xnarch_trace_pid(pid, prio)
47 #define xntrace_panic_freeze() xnarch_trace_panic_freeze()
48 #define xntrace_panic_dump() xnarch_trace_panic_dump()
52 #include <asm-generic/xenomai/syscall.h>
53 #include <asm/xenomai/tsc.h>
55 int xntrace_max_begin(
unsigned long v);
57 int xntrace_max_end(
unsigned long v);
59 int xntrace_max_reset(
void);
61 int xntrace_user_start(
void);
63 int xntrace_user_stop(
unsigned long v);
65 int xntrace_user_freeze(
unsigned long v,
int once);
67 int xntrace_special(
unsigned char id,
unsigned long v);
69 int xntrace_special_u64(
unsigned char id,
unsigned long long v);