linux-stable/tools/lib/api/fs
Namhyung Kim 27ab1c1c06 tools api fs: Prefer cgroup v1 path in cgroupfs_find_mountpoint()
The cgroupfs_find_mountpoint() looks up the /proc/mounts file to find
a directory for the given cgroup subsystem.  It keeps both cgroup v1
and v2 path since there's a possibility of the mixed hierarchly.

But we can simply use v1 path if it's found as it will override the v2
hierarchy.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lore.kernel.org/lkml/20201216090556.813996-1-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2021-02-17 15:06:22 -03:00
..
Build tools lib api fs: Move cgroupsfs_find_mountpoint() 2020-03-04 10:34:09 -03:00
cgroup.c tools api fs: Prefer cgroup v1 path in cgroupfs_find_mountpoint() 2021-02-17 15:06:22 -03:00
fs.c tools api fs: Make xxx__mountpoint() more scalable 2020-04-16 12:19:12 -03:00
fs.h tools api fs: Make xxx__mountpoint() more scalable 2020-04-16 12:19:12 -03:00
tracing_path.c perf tools: Fix tracing_path_mount proper path 2018-10-16 12:27:46 -03:00
tracing_path.h tools lib api fs tracing_path: Make tracing_events_path private 2018-05-17 14:51:23 -03:00