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

commit fa8e714115fcc865ae6d4293167d9c627a110315
Author: Devin Leamy <dle...@twitter.com>
AuthorDate: Wed Mar 27 19:09:56 2024 +0000

    [cgroups2] Introduce build files for the cgroups2 `Controller` abstraction.
---
 src/CMakeLists.txt                                   |  4 +++-
 src/Makefile.am                                      |  2 ++
 .../mesos/isolators/cgroups2/controller.cpp          | 18 ++++++++++++++++++
 .../mesos/isolators/cgroups2/controller.hpp          | 20 ++++++++++++++++++++
 4 files changed, 43 insertions(+), 1 deletion(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index d0dc995b2..93b406a1d 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -352,7 +352,9 @@ endif ()
 if (ENABLE_CGROUPS_v2)
   list(APPEND LINUX_SRC
     linux/cgroups2.cpp
-    linux/ebpf.cpp)
+    linux/ebpf.cpp
+    slave/containerizer/mesos/isolators/cgroups2/controller.cpp)
+
 endif ()
 
 if (ENABLE_LAUNCHER_SEALING)
diff --git a/src/Makefile.am b/src/Makefile.am
index d11fb8aa8..42060cf6b 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1495,6 +1495,8 @@ MESOS_LINUX_FILES +=                                      
                \
   linux/cgroups2.hpp      \
   linux/ebpf.cpp      \
   linux/ebpf.hpp      \
+  slave/containerizer/mesos/isolators/cgroups2/controller.cpp     \
+  slave/containerizer/mesos/isolators/cgroups2/controller.hpp     \
   slave/containerizer/mesos/isolators/cgroups2/cgroups2.cpp     \
   slave/containerizer/mesos/isolators/cgroups2/cgroups2.hpp
 endif
diff --git a/src/slave/containerizer/mesos/isolators/cgroups2/controller.cpp 
b/src/slave/containerizer/mesos/isolators/cgroups2/controller.cpp
new file mode 100644
index 000000000..947691ae2
--- /dev/null
+++ b/src/slave/containerizer/mesos/isolators/cgroups2/controller.cpp
@@ -0,0 +1,18 @@
+// 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 "slave/containerizer/mesos/isolators/cgroups2/controller.hpp"
+
diff --git a/src/slave/containerizer/mesos/isolators/cgroups2/controller.hpp 
b/src/slave/containerizer/mesos/isolators/cgroups2/controller.hpp
new file mode 100644
index 000000000..bafc0e8b4
--- /dev/null
+++ b/src/slave/containerizer/mesos/isolators/cgroups2/controller.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 __CONTROLLERS_HPP__
+#define __CONTROLLERS_HPP__
+
+#endif // __CONTROLLERS_HPP__
\ No newline at end of file

Reply via email to