Hello, the tool which do this functionality it is lssubsys: $ lssubsys cpuacct -m cpu,cpuacct /sys/fs/cgroup/cpu,cpuacct
api which can be used for this purpose is: cgroup_get_controller_(begin/next/end) int cgroup_get_controller_begin (void **handle, struct cgroup_mount_point *info) Read the mount table to give a list where each controller is mounted. int cgroup_get_controller_next (void **handle, struct cgroup_mount_point *info) Read the next mounted controller. int cgroup_get_controller_end (void **handle) Release the iterator. Ivana Hutarova Varekova ----- Original Message ----- > From: "Kevin Wilson" <wkev...@gmail.com> > To: libcg-devel@lists.sourceforge.net > Sent: Friday, April 12, 2013 9:11:14 PM > Subject: [Libcg-devel] question: getting the cgroups for a specified > subsystem with libcg > > Hello, > Is there a way to get the cgroups name (or full path) for a a > specified subsystem with libcg/libccg-tools ? > > What I mean is: > by cat /proc/cgroups I see, for example, that for cpuacct the num of > cgroups (num_cgroups) is 36, and for perf_event it is 9. > Can I know the name/path of cgroups for cpuacct? or for perf_event, > for example? > > regards, > Kevin > > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > Libcg-devel mailing list > Libcg-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/libcg-devel > ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel