aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-12-28 15:21:10 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2008-12-28 15:21:10 -0500
commitb0f4b285d7ed174804658539129a834270f4829a (patch)
treebe7f8dca58075aba2c6a137fcfd4d44c5c333efc /include/linux/sched.h
parentbe9c5ae4eeec2e85527e95647348b8ea4eb25128 (diff)
parent5250d329e38cdf7580faeb9c53c17d3588d7d19c (diff)
Merge branch 'tracing-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'tracing-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (241 commits) sched, trace: update trace_sched_wakeup() tracing/ftrace: don't trace on early stage of a secondary cpu boot, v3 Revert "x86: disable X86_PTRACE_BTS" ring-buffer: prevent false positive warning ring-buffer: fix dangling commit race ftrace: enable format arguments checking x86, bts: memory accounting x86, bts: add fork and exit handling ftrace: introduce tracing_reset_online_cpus() helper tracing: fix warnings in kernel/trace/trace_sched_switch.c tracing: fix warning in kernel/trace/trace.c tracing/ring-buffer: remove unused ring_buffer size trace: fix task state printout ftrace: add not to regex on filtering functions trace: better use of stack_trace_enabled for boot up code trace: add a way to enable or disable the stack tracer x86: entry_64 - introduce FTRACE_ frame macro v2 tracing/ftrace: add the printk-msg-only option tracing/ftrace: use preempt_enable_no_resched_notrace in ring_buffer_time_stamp() x86, bts: correctly report invalid bts records ... Fixed up trivial conflict in scripts/recordmcount.pl due to SH bits being already partly merged by the SH merge.
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/*