Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[linux-2.6.git] / include / trace / events / context_tracking.h
blobce8007cf29cf41a104b1864152502178536264c4
1 #undef TRACE_SYSTEM
2 #define TRACE_SYSTEM context_tracking
4 #if !defined(_TRACE_CONTEXT_TRACKING_H) || defined(TRACE_HEADER_MULTI_READ)
5 #define _TRACE_CONTEXT_TRACKING_H
7 #include <linux/tracepoint.h>
9 DECLARE_EVENT_CLASS(context_tracking_user,
11 TP_PROTO(int dummy),
13 TP_ARGS(dummy),
15 TP_STRUCT__entry(
16 __field( int, dummy )
19 TP_fast_assign(
20 __entry->dummy = dummy;
23 TP_printk("%s", "")
26 /**
27 * user_enter - called when the kernel resumes to userspace
28 * @dummy: dummy arg to make trace event macro happy
30 * This event occurs when the kernel resumes to userspace after
31 * an exception or a syscall.
33 DEFINE_EVENT(context_tracking_user, user_enter,
35 TP_PROTO(int dummy),
37 TP_ARGS(dummy)
40 /**
41 * user_exit - called when userspace enters the kernel
42 * @dummy: dummy arg to make trace event macro happy
44 * This event occurs when userspace enters the kernel through
45 * an exception or a syscall.
47 DEFINE_EVENT(context_tracking_user, user_exit,
49 TP_PROTO(int dummy),
51 TP_ARGS(dummy)
55 #endif /* _TRACE_CONTEXT_TRACKING_H */
57 /* This part must be outside protection */
58 #include <trace/define_trace.h>