Re: [PATCH 04/10] Display /proc/stat information per cgroup

From: Peter Zijlstra
Date: Wed Oct 05 2011 - 04:56:17 EST


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?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/