Re: [PATCH] Simplify /proc/cgroups

2007-10-17 Thread KAMEZAWA Hiroyuki
On Wed, 17 Oct 2007 19:56:36 -0700 (PDT) [EMAIL PROTECTED] (Paul Menage) wrote: > + seq_printf(m, "%s\t%d\t%d\n", > +ss->name, ss->root->subsys_bits, > +ss->root->number_of_cgroups); > } Because subsys_bits is unsigned long, then %l

[PATCH] Simplify /proc/cgroups

2007-10-17 Thread Paul Menage
This patch simplifies /proc/cgroups by removing pointers and some debugging information, and simply presenting a list of subsystems, which hierarchy they are part of (if any) and the number of cgroups created for that subsystem. Hierarchy id is determined by the bitmask of subsystem ids attached to