Re: [PR] [ebpf] Introduced API for loading eBPF programs into the kernel. [mesos]

2024-03-08 Thread via GitHub
DevinLeamy commented on code in PR #501: URL: https://github.com/apache/mesos/pull/501#discussion_r1517800854 ## src/linux/ebpf.cpp: ## @@ -14,4 +14,99 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include

Re: [PR] [ebpf] Introduced API for loading eBPF programs into the kernel. [mesos]

2024-03-08 Thread via GitHub
DevinLeamy commented on code in PR #501: URL: https://github.com/apache/mesos/pull/501#discussion_r1517860015 ## src/linux/ebpf.cpp: ## @@ -14,4 +14,99 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include

[PR] [cgroups2] Add missing imports [mesos]

2024-03-08 Thread via GitHub
DevinLeamy opened a new pull request, #502: URL: https://github.com/apache/mesos/pull/502 (no comment) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe,

Re: [PR] [ebpf] Introduced API for loading eBPF programs into the kernel. [mesos]

2024-03-08 Thread via GitHub
DevinLeamy commented on code in PR #501: URL: https://github.com/apache/mesos/pull/501#discussion_r1517783917 ## src/linux/ebpf.cpp: ## @@ -14,4 +14,99 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include

Re: [PR] [ebpf] Introduced API for loading eBPF programs into the kernel. [mesos]

2024-03-08 Thread via GitHub
DevinLeamy commented on code in PR #501: URL: https://github.com/apache/mesos/pull/501#discussion_r1517858068 ## src/linux/ebpf.hpp: ## @@ -17,4 +17,136 @@ #ifndef __EBPF_HPP__ #define __EBPF_HPP__ +#include + +#include +#include + +#include "stout/nothing.hpp" +#include

Re: [PR] [cgroups2] Add missing imports [mesos]

2024-03-08 Thread via GitHub
bmahler merged PR #502: URL: https://github.com/apache/mesos/pull/502 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail:

Review Request 74918: [cgroups2] Add utility to list all the available subsystems in a cgroup.

2024-03-08 Thread Devin Leamy via Review Board
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/74918/ --- Review request for mesos. Repository: mesos Description --- [cgroups2]

Re: [PR] [ebpf] Introduced API for loading eBPF programs into the kernel. [mesos]

2024-03-08 Thread via GitHub
bmahler commented on code in PR #501: URL: https://github.com/apache/mesos/pull/501#discussion_r1518223153 ## src/linux/ebpf.cpp: ## @@ -14,4 +14,90 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include

Re: [PR] [cgroups2] Add utility to list all the available subsystems in a cgroup. [mesos]

2024-03-08 Thread via GitHub
bmahler closed pull request #503: [cgroups2] Add utility to list all the available subsystems in a cgroup. URL: https://github.com/apache/mesos/pull/503 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go

Re: [PR] [cgroups2] Add utility to list all the available subsystems in a cgroup. [mesos]

2024-03-08 Thread via GitHub
bmahler commented on code in PR #503: URL: https://github.com/apache/mesos/pull/503#discussion_r1518213231 ## src/linux/cgroups2.cpp: ## @@ -72,6 +72,27 @@ const std::string TYPE = "cgroup.type"; } // namespace control { +namespace controllers { + +// Find the available

Re: [PR] [ebpf] Introduced API for loading eBPF programs into the kernel. [mesos]

2024-03-08 Thread via GitHub
bmahler commented on code in PR #501: URL: https://github.com/apache/mesos/pull/501#discussion_r1518222165 ## src/linux/ebpf.cpp: ## @@ -14,4 +14,90 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include

Re: [PR] [ebpf] Introduced API for loading eBPF programs into the kernel. [mesos]

2024-03-08 Thread via GitHub
DevinLeamy commented on code in PR #501: URL: https://github.com/apache/mesos/pull/501#discussion_r1518170538 ## src/linux/ebpf.cpp: ## @@ -14,4 +14,126 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include

Re: [PR] [ebpf] Introduced API for loading eBPF programs into the kernel. [mesos]

2024-03-08 Thread via GitHub
DevinLeamy commented on code in PR #501: URL: https://github.com/apache/mesos/pull/501#discussion_r1518170872 ## src/linux/ebpf.cpp: ## @@ -14,4 +14,126 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include

Re: [PR] [ebpf] Introduced API for loading eBPF programs into the kernel. [mesos]

2024-03-08 Thread via GitHub
DevinLeamy commented on code in PR #501: URL: https://github.com/apache/mesos/pull/501#discussion_r1518185616 ## src/linux/ebpf.cpp: ## @@ -14,4 +14,126 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include

[PR] [cgroups2] Add utility to list all the available subsystems in a cgroup. [mesos]

2024-03-08 Thread via GitHub
DevinLeamy opened a new pull request, #503: URL: https://github.com/apache/mesos/pull/503 Interface to the "cgroup.controllers" control file. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the

Re: [PR] [ebpf] Introduced API for loading eBPF programs into the kernel. [mesos]

2024-03-08 Thread via GitHub
bmahler commented on code in PR #501: URL: https://github.com/apache/mesos/pull/501#discussion_r1518049989 ## src/linux/ebpf.hpp: ## @@ -14,7 +14,128 @@ // See the License for the specific language governing permissions and // limitations under the License. +//

Re: [PR] [ebpf] Introduced API for loading eBPF programs into the kernel. [mesos]

2024-03-08 Thread via GitHub
bmahler commented on code in PR #501: URL: https://github.com/apache/mesos/pull/501#discussion_r1518226542 ## src/linux/ebpf.cpp: ## @@ -14,4 +14,90 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include

Re: [PR] [ebpf] Introduced API for loading eBPF programs into the kernel. [mesos]

2024-03-08 Thread via GitHub
DevinLeamy commented on code in PR #501: URL: https://github.com/apache/mesos/pull/501#discussion_r1518024442 ## src/linux/ebpf.hpp: ## @@ -17,4 +17,136 @@ #ifndef __EBPF_HPP__ #define __EBPF_HPP__ +#include + +#include +#include + +#include "stout/nothing.hpp" +#include

Re: [PR] [ebpf] Introduced API for loading eBPF programs into the kernel. [mesos]

2024-03-08 Thread via GitHub
bmahler commented on code in PR #501: URL: https://github.com/apache/mesos/pull/501#discussion_r1518162434 ## src/linux/ebpf.cpp: ## @@ -14,4 +14,126 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include

Re: [PR] [ebpf][cgroups2] Attaching a eBFP programs to a cgroups. [mesos]

2024-03-08 Thread via GitHub
bmahler closed pull request #505: [ebpf][cgroups2] Attaching a eBFP programs to a cgroups. URL: https://github.com/apache/mesos/pull/505 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific

Re: [PR] [cgroups2] Rename all 'subsystems' to 'controllers'. [mesos]

2024-03-08 Thread via GitHub
bmahler merged PR #506: URL: https://github.com/apache/mesos/pull/506 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail:

[PR] [ebpf][cgroups2] Attaching a eBFP programs to a cgroups. [mesos]

2024-03-08 Thread via GitHub
DevinLeamy opened a new pull request, #505: URL: https://github.com/apache/mesos/pull/505 Introduces `ebpf::cgroups2::attach()` which allows an `ebpf::Program()` to be attached to a cgroup, given the absolute path to the cgroup and the file descriptor of the loaded program. This

Re: [PR] [ebpf] Introduced API for loading eBPF programs into the kernel. [mesos]

2024-03-08 Thread via GitHub
bmahler merged PR #501: URL: https://github.com/apache/mesos/pull/501 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail:

[PR] [cgroups2] Check if a list of subsystems are available to a cgroup. [mesos]

2024-03-08 Thread via GitHub
DevinLeamy opened a new pull request, #504: URL: https://github.com/apache/mesos/pull/504 Introduces a utility to check if a list of subsystems can be enabled by a provided cgroup. This is equivalent to checking if the subsystems are listed the cgroup's "cgroup.controllers" file. --

Re: [PR] [cgroups2] Check if a list of subsystems are available to a cgroup. [mesos]

2024-03-08 Thread via GitHub
DevinLeamy closed pull request #504: [cgroups2] Check if a list of subsystems are available to a cgroup. URL: https://github.com/apache/mesos/pull/504 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go

Re: [PR] [ebpf][cgroups2] Attaching a eBFP programs to a cgroups. [mesos]

2024-03-08 Thread via GitHub
bmahler commented on code in PR #505: URL: https://github.com/apache/mesos/pull/505#discussion_r1518354832 ## src/linux/ebpf.cpp: ## @@ -96,4 +98,51 @@ Try load(const Program& program) return *fd; } +namespace cgroups2 { + +Try attach(int fd, const string& cgroup) +{ +