Skip to content

[ebpf][cgroups2] Fetch the program ids of the eBPF programs attached to a cgroup#509

Closed
DevinLeamy wants to merge 1 commit intoapache:masterfrom
DevinLeamy:ebpf-staging
Closed

[ebpf][cgroups2] Fetch the program ids of the eBPF programs attached to a cgroup#509
DevinLeamy wants to merge 1 commit intoapache:masterfrom
DevinLeamy:ebpf-staging

Conversation

@DevinLeamy
Copy link
Contributor

Removing programs that are attached to a cgroup is a three step process.

  1. We fetch the program ids that are attached to the cgroup.
  2. We fetch the file descriptors of the attached programs, using their program ids.
  3. We use the file descriptors of the attached programs to detach them.

This patch introduces the function ebpf::cgroups2::attached() to carry out the first step. This will be followed by patches for the subsequent two steps.

…to a cgroup.

Removing programs that are attached to a cgroup is a three step process.
1. We fetch the program ids that are attached to the cgroup.
2. We fetch the file descriptors of the attached programs, using their
   program ids.
3. We use the file descriptors of the attached programs to detach them.

This patch introduces the function `ebpf::cgroups2::attached()` to
carry out the first step. This will be followed by patches for the
subsequent two steps.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants