aboutsummaryrefslogtreecommitdiff
path: root/tools/lib/api/fs/cgroup.c
AgeCommit message (Collapse)AuthorFilesLines
2020-03-04tools lib api fs: Move cgroupsfs_find_mountpoint()Namhyung Kim1-0/+67
Move it from tools/perf/util/cgroup.c as it can be used by other places. Note that cgroup filesystem is different from others since it's usually mounted separately (in v1) for each subsystem. I just copied the code with a little modification to pass a name of subsystem. Suggested-by: Jiri Olsa <[email protected]> Signed-off-by: Namhyung Kim <[email protected]> Cc: Jiri Olsa <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>