diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-04 12:36:54 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-04 12:36:54 -0400 |
| commit | 6832d9652f395f7d13003e3884942c40f52ac1fa (patch) | |
| tree | 40555ad5eda9700cb973dac4db136ad97f5e8b19 /include/trace | |
| parent | 228abe73ad67665d71eacd6a8a347dd76b0115ae (diff) | |
| parent | c2e7fcf53c3cb02b4ada1c66a9bc8a4d97d58aba (diff) | |
Merge branch 'timers-nohz-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull timers/nohz changes from Ingo Molnar:
"It mostly contains fixes and full dynticks off-case optimizations, by
Frederic Weisbecker"
* 'timers-nohz-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (24 commits)
nohz: Include local CPU in full dynticks global kick
nohz: Optimize full dynticks's sched hooks with static keys
nohz: Optimize full dynticks state checks with static keys
nohz: Rename a few state variables
vtime: Always debug check snapshot source _before_ updating it
vtime: Always scale generic vtime accounting results
vtime: Optimize full dynticks accounting off case with static keys
vtime: Describe overriden functions in dedicated arch headers
m68k: hardirq_count() only need preempt_mask.h
hardirq: Split preempt count mask definitions
context_tracking: Split low level state headers
vtime: Fix racy cputime delta update
vtime: Remove a few unneeded generic vtime state checks
context_tracking: User/kernel broundary cross trace events
context_tracking: Optimize context switch off case with static keys
context_tracking: Optimize guest APIs off case with static key
context_tracking: Optimize main APIs off case with static key
context_tracking: Ground setup for static key use
context_tracking: Remove full dynticks' hacky dependency on wide context tracking
nohz: Only enable context tracking on full dynticks CPUs
...
Diffstat (limited to 'include/trace')
| -rw-r--r-- | include/trace/events/context_tracking.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/include/trace/events/context_tracking.h b/include/trace/events/context_tracking.h new file mode 100644 index 000000000000..ce8007cf29cf --- /dev/null +++ b/include/trace/events/context_tracking.h | |||
| @@ -0,0 +1,58 @@ | |||
| 1 | #undef TRACE_SYSTEM | ||
| 2 | #define TRACE_SYSTEM context_tracking | ||
| 3 | |||
| 4 | #if !defined(_TRACE_CONTEXT_TRACKING_H) || defined(TRACE_HEADER_MULTI_READ) | ||
| 5 | #define _TRACE_CONTEXT_TRACKING_H | ||
| 6 | |||
| 7 | #include <linux/tracepoint.h> | ||
| 8 | |||
| 9 | DECLARE_EVENT_CLASS(context_tracking_user, | ||
| 10 | |||
| 11 | TP_PROTO(int dummy), | ||
| 12 | |||
| 13 | TP_ARGS(dummy), | ||
| 14 | |||
| 15 | TP_STRUCT__entry( | ||
| 16 | __field( int, dummy ) | ||
| 17 | ), | ||
| 18 | |||
| 19 | TP_fast_assign( | ||
| 20 | __entry->dummy = dummy; | ||
| 21 | ), | ||
| 22 | |||
| 23 | TP_printk("%s", "") | ||
| 24 | ); | ||
| 25 | |||
| 26 | /** | ||
| 27 | * user_enter - called when the kernel resumes to userspace | ||
| 28 | * @dummy: dummy arg to make trace event macro happy | ||
| 29 | * | ||
| 30 | * This event occurs when the kernel resumes to userspace after | ||
| 31 | * an exception or a syscall. | ||
| 32 | */ | ||
| 33 | DEFINE_EVENT(context_tracking_user, user_enter, | ||
| 34 | |||
| 35 | TP_PROTO(int dummy), | ||
| 36 | |||
| 37 | TP_ARGS(dummy) | ||
| 38 | ); | ||
| 39 | |||
| 40 | /** | ||
| 41 | * user_exit - called when userspace enters the kernel | ||
| 42 | * @dummy: dummy arg to make trace event macro happy | ||
| 43 | * | ||
| 44 | * This event occurs when userspace enters the kernel through | ||
| 45 | * an exception or a syscall. | ||
| 46 | */ | ||
| 47 | DEFINE_EVENT(context_tracking_user, user_exit, | ||
| 48 | |||
| 49 | TP_PROTO(int dummy), | ||
| 50 | |||
| 51 | TP_ARGS(dummy) | ||
| 52 | ); | ||
| 53 | |||
| 54 | |||
| 55 | #endif /* _TRACE_CONTEXT_TRACKING_H */ | ||
| 56 | |||
| 57 | /* This part must be outside protection */ | ||
| 58 | #include <trace/define_trace.h> | ||
