lkml.org 
[lkml]   [2011]   [Oct]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 04/10] Display /proc/stat information per cgroup
From
Date
On Sun, 2011-10-02 at 23:21 +0400, Glauber Costa wrote:
> +struct kernel_stat *task_group_kstat(struct task_struct *p)
> +{
> + struct task_group *tg;
> + struct kernel_stat *kstat;
> +
> + rcu_read_lock();
> + tg = task_group(p);
> + kstat = tg->cpustat;
> + rcu_read_unlock();
> + return kstat;
> +}

Who keeps tg alive and kicking while you poke at its (cpustat) member?


\
 
 \ /
  Last update: 2011-10-05 10:59    [W:1.767 / U:0.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site