diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-05-07 05:18:34 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-05-07 07:36:22 -0400 |
commit | 0ad5d703c6c0fcd385d956555460df95dff7eb7e (patch) | |
tree | 4b777100f9be4fe90ca4bd043b9f98df672b5b3b /include/linux/sched.h | |
parent | 44347d947f628060b92449702071bfe1d31dfb75 (diff) | |
parent | 1cb81b143fa8f0e4629f10690862e2e52ca792ff (diff) |
Merge branch 'tracing/hw-branch-tracing' into tracing/core
Merge reason: this topic is ready for upstream now. It passed
Oleg's review and Andrew had no further mm/*
objections/observations either.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 7ede5e490913..1ed4ef520680 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -96,8 +96,8 @@ struct exec_domain; | |||
96 | struct futex_pi_state; | 96 | struct futex_pi_state; |
97 | struct robust_list_head; | 97 | struct robust_list_head; |
98 | struct bio; | 98 | struct bio; |
99 | struct bts_tracer; | ||
100 | struct fs_struct; | 99 | struct fs_struct; |
100 | struct bts_context; | ||
101 | 101 | ||
102 | /* | 102 | /* |
103 | * List of flags we want to share for kernel threads, | 103 | * List of flags we want to share for kernel threads, |
@@ -1209,18 +1209,11 @@ struct task_struct { | |||
1209 | struct list_head ptraced; | 1209 | struct list_head ptraced; |
1210 | struct list_head ptrace_entry; | 1210 | struct list_head ptrace_entry; |
1211 | 1211 | ||
1212 | #ifdef CONFIG_X86_PTRACE_BTS | ||
1213 | /* | 1212 | /* |
1214 | * This is the tracer handle for the ptrace BTS extension. | 1213 | * This is the tracer handle for the ptrace BTS extension. |
1215 | * This field actually belongs to the ptracer task. | 1214 | * This field actually belongs to the ptracer task. |
1216 | */ | 1215 | */ |
1217 | struct bts_tracer *bts; | 1216 | struct bts_context *bts; |
1218 | /* | ||
1219 | * The buffer to hold the BTS data. | ||
1220 | */ | ||
1221 | void *bts_buffer; | ||
1222 | size_t bts_size; | ||
1223 | #endif /* CONFIG_X86_PTRACE_BTS */ | ||
1224 | 1217 | ||
1225 | /* PID/PID hash table linkage. */ | 1218 | /* PID/PID hash table linkage. */ |
1226 | struct pid_link pids[PIDTYPE_MAX]; | 1219 | struct pid_link pids[PIDTYPE_MAX]; |
@@ -2003,8 +1996,10 @@ extern void set_task_comm(struct task_struct *tsk, char *from); | |||
2003 | extern char *get_task_comm(char *to, struct task_struct *tsk); | 1996 | extern char *get_task_comm(char *to, struct task_struct *tsk); |
2004 | 1997 | ||
2005 | #ifdef CONFIG_SMP | 1998 | #ifdef CONFIG_SMP |
1999 | extern void wait_task_context_switch(struct task_struct *p); | ||
2006 | extern unsigned long wait_task_inactive(struct task_struct *, long match_state); | 2000 | extern unsigned long wait_task_inactive(struct task_struct *, long match_state); |
2007 | #else | 2001 | #else |
2002 | static inline void wait_task_context_switch(struct task_struct *p) {} | ||
2008 | static inline unsigned long wait_task_inactive(struct task_struct *p, | 2003 | static inline unsigned long wait_task_inactive(struct task_struct *p, |
2009 | long match_state) | 2004 | long match_state) |
2010 | { | 2005 | { |