From e3a5da8ce62826f56c0b531590bb472ea717eeac Mon Sep 17 00:00:00 2001 From: Rahat Mahmood Date: Wed, 21 Apr 2021 13:34:51 -0700 Subject: Stub the custom "job" controller required by some workloads. PiperOrigin-RevId: 369724358 --- test/util/cgroup_util.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/util/cgroup_util.h') diff --git a/test/util/cgroup_util.h b/test/util/cgroup_util.h index b049559df..c6e4303e1 100644 --- a/test/util/cgroup_util.h +++ b/test/util/cgroup_util.h @@ -45,6 +45,14 @@ class Cgroup { // to parse it as an integer. PosixErrorOr ReadIntegerControlFile(absl::string_view name) const; + // Writes a string to a cgroup control file. + PosixError WriteControlFile(absl::string_view name, + const std::string& value) const; + + // Writes an integer value to a cgroup control file. + PosixError WriteIntegerControlFile(absl::string_view name, + int64_t value) const; + // Returns the thread ids of the leaders of thread groups managed by this // cgroup. PosixErrorOr> Procs() const; -- cgit v1.2.3