diff options
author | Namhyung Kim <namhyung@kernel.org> | 2020-01-27 19:00:31 +0900 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2020-03-04 10:34:09 -0300 |
commit | 7982a898515064ba180d958bfc89ed22d13905ee (patch) | |
tree | 6bdc83844fbf9854fc97c1f155f370636917afb0 /tools/lib/api/fs/Build | |
parent | d46eec8e975a8180e178e01ba505801c44bc9a6c (diff) |
tools lib api fs: Move cgroupsfs_find_mountpoint()
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 <jolsa@redhat.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lore.kernel.org/lkml/20200127100031.1368732-1-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/lib/api/fs/Build')
-rw-r--r-- | tools/lib/api/fs/Build | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/lib/api/fs/Build b/tools/lib/api/fs/Build index f4ed9629ae85d..0f75b28654deb 100644 --- a/tools/lib/api/fs/Build +++ b/tools/lib/api/fs/Build @@ -1,2 +1,3 @@ libapi-y += fs.o libapi-y += tracing_path.o +libapi-y += cgroup.o |