19 #ifndef _COBALT_KERNEL_TRACE_H 20 #define _COBALT_KERNEL_TRACE_H 22 #include <linux/types.h> 23 #include <linux/ipipe_trace.h> 24 #include <cobalt/uapi/kernel/trace.h> 26 static inline int xntrace_max_begin(
unsigned long v)
32 static inline int xntrace_max_end(
unsigned long v)
38 static inline int xntrace_max_reset(
void)
40 ipipe_trace_max_reset();
44 static inline int xntrace_user_start(
void)
46 return ipipe_trace_frozen_reset();
49 static inline int xntrace_user_stop(
unsigned long v)
51 ipipe_trace_freeze(v);
55 static inline int xntrace_user_freeze(
unsigned long v,
int once)
60 ret = ipipe_trace_frozen_reset();
62 ipipe_trace_freeze(v);
67 static inline int xntrace_special(
unsigned char id,
unsigned long v)
69 ipipe_trace_special(
id, v);
73 static inline int xntrace_special_u64(
unsigned char id,
76 ipipe_trace_special(
id, (
unsigned long)(v >> 32));
77 ipipe_trace_special(
id, (
unsigned long)(v & 0xFFFFFFFF));
81 static inline int xntrace_pid(pid_t pid,
short prio)
83 ipipe_trace_pid(pid, prio);
87 static inline int xntrace_tick(
unsigned long delay_ticks)
89 ipipe_trace_event(0, delay_ticks);
93 static inline int xntrace_panic_freeze(
void)
95 ipipe_trace_panic_freeze();
99 static inline int xntrace_panic_dump(
void)
101 ipipe_trace_panic_dump();