diff options
author | Markus Metzger <markus.t.metzger@intel.com> | 2008-01-30 07:31:09 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:31:09 -0500 |
commit | eee3af4a2c83a97fff107ddc445d9df6fded9ce4 (patch) | |
tree | a7e9179b82b4df9e4cf6e810c54309324589395b /include/asm-x86/thread_info_64.h | |
parent | 7796931f542518092d1fd2fb7cf1f1d96e0cd4b5 (diff) |
x86, ptrace: support for branch trace store(BTS)
Resend using different mail client
Changes to the last version:
- split implementation into two layers: ds/bts and ptrace
- renamed TIF's
- save/restore ds save area msr in __switch_to_xtra()
- make block-stepping only look at BTF bit
Signed-off-by: Markus Metzger <markus.t.metzger@intel.com>
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86/thread_info_64.h')
-rw-r--r-- | include/asm-x86/thread_info_64.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/asm-x86/thread_info_64.h b/include/asm-x86/thread_info_64.h index ee35fd12b541..c2911a99cc32 100644 --- a/include/asm-x86/thread_info_64.h +++ b/include/asm-x86/thread_info_64.h | |||
@@ -123,6 +123,8 @@ static inline struct thread_info *stack_thread_info(void) | |||
123 | #define TIF_FREEZE 23 /* is freezing for suspend */ | 123 | #define TIF_FREEZE 23 /* is freezing for suspend */ |
124 | #define TIF_FORCED_TF 24 /* true if TF in eflags artificially */ | 124 | #define TIF_FORCED_TF 24 /* true if TF in eflags artificially */ |
125 | #define TIF_DEBUGCTLMSR 25 /* uses thread_struct.debugctlmsr */ | 125 | #define TIF_DEBUGCTLMSR 25 /* uses thread_struct.debugctlmsr */ |
126 | #define TIF_DS_AREA_MSR 25 /* uses thread_struct.ds_area_msr */ | ||
127 | #define TIF_BTS_TRACE_TS 26 /* record scheduling event timestamps */ | ||
126 | 128 | ||
127 | #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) | 129 | #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) |
128 | #define _TIF_SIGPENDING (1<<TIF_SIGPENDING) | 130 | #define _TIF_SIGPENDING (1<<TIF_SIGPENDING) |
@@ -142,6 +144,8 @@ static inline struct thread_info *stack_thread_info(void) | |||
142 | #define _TIF_FREEZE (1<<TIF_FREEZE) | 144 | #define _TIF_FREEZE (1<<TIF_FREEZE) |
143 | #define _TIF_FORCED_TF (1<<TIF_FORCED_TF) | 145 | #define _TIF_FORCED_TF (1<<TIF_FORCED_TF) |
144 | #define _TIF_DEBUGCTLMSR (1<<TIF_DEBUGCTLMSR) | 146 | #define _TIF_DEBUGCTLMSR (1<<TIF_DEBUGCTLMSR) |
147 | #define _TIF_DS_AREA_MSR (1<<TIF_DS_AREA_MSR) | ||
148 | #define _TIF_BTS_TRACE_TS (1<<TIF_BTS_TRACE_TS) | ||
145 | 149 | ||
146 | /* work to do on interrupt/exception return */ | 150 | /* work to do on interrupt/exception return */ |
147 | #define _TIF_WORK_MASK \ | 151 | #define _TIF_WORK_MASK \ |
@@ -153,7 +157,10 @@ static inline struct thread_info *stack_thread_info(void) | |||
153 | (_TIF_SIGPENDING|_TIF_SINGLESTEP|_TIF_MCE_NOTIFY|_TIF_HRTICK_RESCHED) | 157 | (_TIF_SIGPENDING|_TIF_SINGLESTEP|_TIF_MCE_NOTIFY|_TIF_HRTICK_RESCHED) |
154 | 158 | ||
155 | /* flags to check in __switch_to() */ | 159 | /* flags to check in __switch_to() */ |
156 | #define _TIF_WORK_CTXSW (_TIF_DEBUG|_TIF_IO_BITMAP|_TIF_DEBUGCTLMSR) | 160 | #define _TIF_WORK_CTXSW \ |
161 | (_TIF_IO_BITMAP|_TIF_DEBUGCTLMSR|_TIF_DS_AREA_MSR|_TIF_BTS_TRACE_TS) | ||
162 | #define _TIF_WORK_CTXSW_PREV _TIF_WORK_CTXSW | ||
163 | #define _TIF_WORK_CTXSW_NEXT (_TIF_WORK_CTXSW|_TIF_DEBUG) | ||
157 | 164 | ||
158 | #define PREEMPT_ACTIVE 0x10000000 | 165 | #define PREEMPT_ACTIVE 0x10000000 |
159 | 166 | ||