diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-10 22:53:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-10 22:53:40 -0400 |
commit | 862366118026a358882eefc70238dbcc3db37aac (patch) | |
tree | 4eb62bc10327a5afac064a95a091ea05ecd2acc1 /include/linux/sched.h | |
parent | 57eee9ae7bbcfb692dc96c739a5184adb6349733 (diff) | |
parent | 511b01bdf64ad8a38414096eab283c7784aebfc4 (diff) |
Merge branch 'tracing-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'tracing-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (244 commits)
Revert "x86, bts: reenable ptrace branch trace support"
tracing: do not translate event helper macros in print format
ftrace/documentation: fix typo in function grapher name
tracing/events: convert block trace points to TRACE_EVENT(), fix !CONFIG_BLOCK
tracing: add protection around module events unload
tracing: add trace_seq_vprint interface
tracing: fix the block trace points print size
tracing/events: convert block trace points to TRACE_EVENT()
ring-buffer: fix ret in rb_add_time_stamp
ring-buffer: pass in lockdep class key for reader_lock
tracing: add annotation to what type of stack trace is recorded
tracing: fix multiple use of __print_flags and __print_symbolic
tracing/events: fix output format of user stack
tracing/events: fix output format of kernel stack
tracing/trace_stack: fix the number of entries in the header
ring-buffer: discard timestamps that are at the start of the buffer
ring-buffer: try to discard unneeded timestamps
ring-buffer: fix bug in ring_buffer_discard_commit
ftrace: do not profile functions when disabled
tracing: make trace pipe recognize latency format flag
...
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index d4646ae300f0..d1399660b776 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -97,8 +97,8 @@ struct exec_domain; | |||
97 | struct futex_pi_state; | 97 | struct futex_pi_state; |
98 | struct robust_list_head; | 98 | struct robust_list_head; |
99 | struct bio; | 99 | struct bio; |
100 | struct bts_tracer; | ||
101 | struct fs_struct; | 100 | struct fs_struct; |
101 | struct bts_context; | ||
102 | 102 | ||
103 | /* | 103 | /* |
104 | * List of flags we want to share for kernel threads, | 104 | * List of flags we want to share for kernel threads, |
@@ -1230,18 +1230,11 @@ struct task_struct { | |||
1230 | struct list_head ptraced; | 1230 | struct list_head ptraced; |
1231 | struct list_head ptrace_entry; | 1231 | struct list_head ptrace_entry; |
1232 | 1232 | ||
1233 | #ifdef CONFIG_X86_PTRACE_BTS | ||
1234 | /* | 1233 | /* |
1235 | * This is the tracer handle for the ptrace BTS extension. | 1234 | * This is the tracer handle for the ptrace BTS extension. |
1236 | * This field actually belongs to the ptracer task. | 1235 | * This field actually belongs to the ptracer task. |
1237 | */ | 1236 | */ |
1238 | struct bts_tracer *bts; | 1237 | struct bts_context *bts; |
1239 | /* | ||
1240 | * The buffer to hold the BTS data. | ||
1241 | */ | ||
1242 | void *bts_buffer; | ||
1243 | size_t bts_size; | ||
1244 | #endif /* CONFIG_X86_PTRACE_BTS */ | ||
1245 | 1238 | ||
1246 | /* PID/PID hash table linkage. */ | 1239 | /* PID/PID hash table linkage. */ |
1247 | struct pid_link pids[PIDTYPE_MAX]; | 1240 | struct pid_link pids[PIDTYPE_MAX]; |
@@ -1449,7 +1442,9 @@ struct task_struct { | |||
1449 | #ifdef CONFIG_TRACING | 1442 | #ifdef CONFIG_TRACING |
1450 | /* state flags for use by tracers */ | 1443 | /* state flags for use by tracers */ |
1451 | unsigned long trace; | 1444 | unsigned long trace; |
1452 | #endif | 1445 | /* bitmask of trace recursion */ |
1446 | unsigned long trace_recursion; | ||
1447 | #endif /* CONFIG_TRACING */ | ||
1453 | }; | 1448 | }; |
1454 | 1449 | ||
1455 | /* Future-safe accessor for struct task_struct's cpus_allowed. */ | 1450 | /* Future-safe accessor for struct task_struct's cpus_allowed. */ |
@@ -2022,8 +2017,10 @@ extern void set_task_comm(struct task_struct *tsk, char *from); | |||
2022 | extern char *get_task_comm(char *to, struct task_struct *tsk); | 2017 | extern char *get_task_comm(char *to, struct task_struct *tsk); |
2023 | 2018 | ||
2024 | #ifdef CONFIG_SMP | 2019 | #ifdef CONFIG_SMP |
2020 | extern void wait_task_context_switch(struct task_struct *p); | ||
2025 | extern unsigned long wait_task_inactive(struct task_struct *, long match_state); | 2021 | extern unsigned long wait_task_inactive(struct task_struct *, long match_state); |
2026 | #else | 2022 | #else |
2023 | static inline void wait_task_context_switch(struct task_struct *p) {} | ||
2027 | static inline unsigned long wait_task_inactive(struct task_struct *p, | 2024 | static inline unsigned long wait_task_inactive(struct task_struct *p, |
2028 | long match_state) | 2025 | long match_state) |
2029 | { | 2026 | { |