summaryrefslogtreecommitdiffhomepage
path: root/test/util/cgroup_util.h
diff options
context:
space:
mode:
authorRahat Mahmood <rahat@google.com>2021-04-22 15:50:01 -0700
committergVisor bot <gvisor-bot@google.com>2021-04-22 15:52:24 -0700
commitd93907110eebdfb1e51dacd9ccffd0f0c2633a81 (patch)
tree5941c19d879269244b71031bffa437af895728a6 /test/util/cgroup_util.h
parentdbfdb31e8a014e5e11092de121e825b21c2804c3 (diff)
Also report mount options through /proc/<pid>/mounts.
PiperOrigin-RevId: 369967629
Diffstat (limited to 'test/util/cgroup_util.h')
-rw-r--r--test/util/cgroup_util.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/util/cgroup_util.h b/test/util/cgroup_util.h
index c6e4303e1..b797a8b24 100644
--- a/test/util/cgroup_util.h
+++ b/test/util/cgroup_util.h
@@ -30,10 +30,12 @@ namespace testing {
// Cgroup represents a cgroup directory on a mounted cgroupfs.
class Cgroup {
public:
- Cgroup(std::string path);
+ Cgroup(std::string_view path);
uint64_t id() const { return id_; }
+ const std::string& Path() const { return cgroup_path_; }
+
std::string Relpath(absl::string_view leaf) const {
return JoinPath(cgroup_path_, leaf);
}