diff options
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index bf953932e676..423830b6e6e9 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -96,6 +96,7 @@ 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; | ||
99 | 100 | ||
100 | /* | 101 | /* |
101 | * List of flags we want to share for kernel threads, | 102 | * List of flags we want to share for kernel threads, |
@@ -1176,6 +1177,18 @@ struct task_struct { | |||
1176 | struct list_head ptraced; | 1177 | struct list_head ptraced; |
1177 | struct list_head ptrace_entry; | 1178 | struct list_head ptrace_entry; |
1178 | 1179 | ||
1180 | #ifdef CONFIG_X86_PTRACE_BTS | ||
1181 | /* | ||
1182 | * This is the tracer handle for the ptrace BTS extension. | ||
1183 | * This field actually belongs to the ptracer task. | ||
1184 | */ | ||
1185 | struct bts_tracer *bts; | ||
1186 | /* | ||
1187 | * The buffer to hold the BTS data. | ||
1188 | */ | ||
1189 | void *bts_buffer; | ||
1190 | #endif /* CONFIG_X86_PTRACE_BTS */ | ||
1191 | |||
1179 | /* PID/PID hash table linkage. */ | 1192 | /* PID/PID hash table linkage. */ |
1180 | struct pid_link pids[PIDTYPE_MAX]; | 1193 | struct pid_link pids[PIDTYPE_MAX]; |
1181 | struct list_head thread_group; | 1194 | struct list_head thread_group; |
@@ -1367,7 +1380,7 @@ struct task_struct { | |||
1367 | unsigned long default_timer_slack_ns; | 1380 | unsigned long default_timer_slack_ns; |
1368 | 1381 | ||
1369 | struct list_head *scm_work_list; | 1382 | struct list_head *scm_work_list; |
1370 | #ifdef CONFIG_FUNCTION_RET_TRACER | 1383 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER |
1371 | /* Index of current stored adress in ret_stack */ | 1384 | /* Index of current stored adress in ret_stack */ |
1372 | int curr_ret_stack; | 1385 | int curr_ret_stack; |
1373 | /* Stack of return addresses for return function tracing */ | 1386 | /* Stack of return addresses for return function tracing */ |
@@ -1377,6 +1390,12 @@ struct task_struct { | |||
1377 | * because of depth overrun. | 1390 | * because of depth overrun. |
1378 | */ | 1391 | */ |
1379 | atomic_t trace_overrun; | 1392 | atomic_t trace_overrun; |
1393 | /* Pause for the tracing */ | ||
1394 | atomic_t tracing_graph_pause; | ||
1395 | #endif | ||
1396 | #ifdef CONFIG_TRACING | ||
1397 | /* state flags for use by tracers */ | ||
1398 | unsigned long trace; | ||
1380 | #endif | 1399 | #endif |
1381 | }; | 1400 | }; |
1382 | 1401 | ||