diff options
author | Arun R Bharadwaj <arun@linux.vnet.ibm.com> | 2008-12-01 20:49:05 +0530 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-12-01 20:39:50 +0100 |
commit | 6c415b9234a8c71f290e5d4fddc467f103f32719 (patch) | |
tree | d7ba28aab68b5b38952ccc6256b7ecb701b23ed5 /kernel/sched.c | |
parent | 70574a996fc7a70c5586eb56bd92a544eccf18b6 (diff) | |
download | op-kernel-dev-6c415b9234a8c71f290e5d4fddc467f103f32719.zip op-kernel-dev-6c415b9234a8c71f290e5d4fddc467f103f32719.tar.gz |
sched: add uid information to sched_debug for CONFIG_USER_SCHED
Impact: extend information in /proc/sched_debug
This patch adds uid information in sched_debug for CONFIG_USER_SCHED
Signed-off-by: Arun R Bharadwaj <arun@linux.vnet.ibm.com>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 6a99703..4c7388e 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -261,6 +261,10 @@ struct task_group { struct cgroup_subsys_state css; #endif +#ifdef CONFIG_USER_SCHED + uid_t uid; +#endif + #ifdef CONFIG_FAIR_GROUP_SCHED /* schedulable entities of this group on each cpu */ struct sched_entity **se; @@ -286,6 +290,12 @@ struct task_group { #ifdef CONFIG_USER_SCHED +/* Helper function to pass uid information to create_sched_user() */ +void set_tg_uid(struct user_struct *user) +{ + user->tg->uid = user->uid; +} + /* * Root task group. * Every UID task group (including init_task_group aka UID-0) will |