This is an automated email from the ASF dual-hosted git repository.
bmahler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git
The following commit(s) were added to refs/heads/master by this push:
new bdf6cc199 [cgroups2] Add cgroups2.hpp and cgroups2.cpp to Mesos build.
bdf6cc199 is described below
commit bdf6cc199e72715243e9aeb2a2c2ce29793fb71d
Author: Devin Leamy <[email protected]>
AuthorDate: Mon Feb 19 22:40:14 2024 -0500
[cgroups2] Add cgroups2.hpp and cgroups2.cpp to Mesos build.
This patch introduces the linux/cgroups2.hpp and linux/cgroups2.cpp
source files that will be storing the cgroups v2 Linux API.
Review: https://reviews.apache.org/r/74869/
---
src/CMakeLists.txt | 1 +
src/Makefile.am | 2 ++
src/linux/cgroups2.cpp | 17 +++++++++++++++++
src/linux/cgroups2.hpp | 20 ++++++++++++++++++++
4 files changed, 40 insertions(+)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index f5105c787..d3483d141 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -299,6 +299,7 @@ set(INTERNAL_SRC
set(LINUX_SRC
linux/capabilities.cpp
linux/cgroups.cpp
+ linux/cgroups2.cpp
linux/fs.cpp
linux/ldcache.cpp
linux/ldd.cpp
diff --git a/src/Makefile.am b/src/Makefile.am
index d1e16d1c9..f6b0a6b9a 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1388,6 +1388,8 @@ MESOS_LINUX_FILES =
\
linux/capabilities.hpp
\
linux/cgroups.cpp
\
linux/cgroups.hpp
\
+ linux/cgroups2.cpp
\
+ linux/cgroups2.hpp \
linux/fs.cpp
\
linux/fs.hpp
\
linux/ldcache.cpp
\
diff --git a/src/linux/cgroups2.cpp b/src/linux/cgroups2.cpp
new file mode 100644
index 000000000..2b9ae0318
--- /dev/null
+++ b/src/linux/cgroups2.cpp
@@ -0,0 +1,17 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+#include "linux/cgroups2.hpp"
diff --git a/src/linux/cgroups2.hpp b/src/linux/cgroups2.hpp
new file mode 100644
index 000000000..ab1e4be3c
--- /dev/null
+++ b/src/linux/cgroups2.hpp
@@ -0,0 +1,20 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+#ifndef __CGROUPS_V2_HPP__
+#define __CGROUPS_V2_HPP__
+
+#endif // __CGROUPS_V2_HPP__
\ No newline at end of file