diff options
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index e18473f0eb78..61b4ecf1da50 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -1160,6 +1160,13 @@ struct sched_rt_entity { | |||
1160 | 1160 | ||
1161 | struct rcu_node; | 1161 | struct rcu_node; |
1162 | 1162 | ||
1163 | enum perf_event_task_context { | ||
1164 | perf_invalid_context = -1, | ||
1165 | perf_hw_context = 0, | ||
1166 | perf_sw_context, | ||
1167 | perf_nr_task_contexts, | ||
1168 | }; | ||
1169 | |||
1163 | struct task_struct { | 1170 | struct task_struct { |
1164 | volatile long state; /* -1 unrunnable, 0 runnable, >0 stopped */ | 1171 | volatile long state; /* -1 unrunnable, 0 runnable, >0 stopped */ |
1165 | void *stack; | 1172 | void *stack; |
@@ -1433,7 +1440,7 @@ struct task_struct { | |||
1433 | struct futex_pi_state *pi_state_cache; | 1440 | struct futex_pi_state *pi_state_cache; |
1434 | #endif | 1441 | #endif |
1435 | #ifdef CONFIG_PERF_EVENTS | 1442 | #ifdef CONFIG_PERF_EVENTS |
1436 | struct perf_event_context *perf_event_ctxp; | 1443 | struct perf_event_context *perf_event_ctxp[perf_nr_task_contexts]; |
1437 | struct mutex perf_event_mutex; | 1444 | struct mutex perf_event_mutex; |
1438 | struct list_head perf_event_list; | 1445 | struct list_head perf_event_list; |
1439 | #endif | 1446 | #endif |