Skip to content
This repository has been archived by the owner on Oct 24, 2020. It is now read-only.

kinvolk-archives/cgroup-ebpf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository experiments with Daniel Mack's eBPF hooks for cgroups.

Dependencies

  • Linux >= v4.10-rc
  • CONFIG_CGROUP_BPF=y
  • cgroup2 hierarchy mounted (mount -t cgroup2 none <mount point>)

Usage

Example:

#### cd into cgroup v2 hierarchy
cd /sys/fs/cgroup/unified

#### create new cgroup
mkdir demo

#### add a process
echo 1234 >>demo/cgroup.procs

sudo ./cgroup-ebpf out/ebpf.o /sys/fs/cgroup/unified/demo/

Vendoring

We use gvt.

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •