aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 9624e2cfc2dc..0a1094d84b77 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -96,6 +96,7 @@ struct exec_domain;
96struct futex_pi_state; 96struct futex_pi_state;
97struct robust_list_head; 97struct robust_list_head;
98struct bio; 98struct bio;
99struct 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,
@@ -1130,6 +1131,19 @@ struct task_struct {
1130 struct list_head ptraced; 1131 struct list_head ptraced;
1131 struct list_head ptrace_entry; 1132 struct list_head ptrace_entry;
1132 1133
1134#ifdef CONFIG_X86_PTRACE_BTS
1135 /*
1136 * This is the tracer handle for the ptrace BTS extension.
1137 * This field actually belongs to the ptracer task.
1138 */
1139 struct bts_tracer *bts;
1140 /*
1141 * The buffer to hold the BTS data.
1142 */
1143 void *bts_buffer;
1144 size_t bts_size;
1145#endif /* CONFIG_X86_PTRACE_BTS */
1146
1133 /* PID/PID hash table linkage. */ 1147 /* PID/PID hash table linkage. */
1134 struct pid_link pids[PIDTYPE_MAX]; 1148 struct pid_link pids[PIDTYPE_MAX];
1135 struct list_head thread_group; 1149 struct list_head thread_group;
@@ -1313,6 +1327,23 @@ struct task_struct {
1313 unsigned long default_timer_slack_ns; 1327 unsigned long default_timer_slack_ns;
1314 1328
1315 struct list_head *scm_work_list; 1329 struct list_head *scm_work_list;
1330#ifdef CONFIG_FUNCTION_GRAPH_TRACER
1331 /* Index of current stored adress in ret_stack */
1332 int curr_ret_stack;
1333 /* Stack of return addresses for return function tracing */
1334 struct ftrace_ret_stack *ret_stack;
1335 /*
1336 * Number of functions that haven't been traced
1337 * because of depth overrun.
1338 */
1339 atomic_t trace_overrun;
1340 /* Pause for the tracing */
1341 atomic_t tracing_graph_pause;
1342#endif
1343#ifdef CONFIG_TRACING
1344 /* state flags for use by tracers */
1345 unsigned long trace;
1346#endif
1316}; 1347};
1317 1348
1318/* 1349/*