Re: [PATCH 2/4] Move the cgroup debug subsys into cgroup.c to accessinternal state

From: Li Zefan
Date: Thu Jul 23 2009 - 02:22:39 EST


Paul Menage wrote:
> Move the cgroup debug subsys into cgroup.c to access internal state
>
> While it's architecturally clean to have the cgroup debug subsystem be
> completely independent of the cgroups framework, it limits its
> usefulness for debugging the contents of internal data structures.
> Move the debug subsystem code into the scope of all the cgroups data
> structures to make more detailed debugging possible.
>
> Signed-off-by: Paul Menage <menage@xxxxxxxxxx>
>

Reviewed-by: Li Zefan <lizf@xxxxxxxxxxxxxx>

...

> +static u64 current_css_set_read(struct cgroup *cont, struct cftype *cft)
> +{
> + return (u64)(long)current->cgroups;

I think it should be (unsigned long), otherwise:

# cat debug.current_css_set
18446744072653386208

That is: ffffffffc10c31e0

> +}
--
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/