This repository has been archived by the owner on Feb 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KVM: add tracing & ebpf support in kernel
This allows me to use rkt to test ebpf-kprobes without impacting the host kernel. The KVM flavor currently includes the kernel version 4.8.6rkt-v1, which is enough for my current needs. tracefs is normally available in /sys/kernel/debug/tracing/ and is necessary for kprobe support. I could test in the following way: ``` sudo ./build-rkt-1.21.0+git/target/bin/rkt \ run --interactive \ --insecure-options=image,all-run \ --dns=8.8.8.8 \ --stage1-path=./build-rkt-1.21.0+git/target/bin/stage1-kvm.aci \ --volume=ebpf,kind=host,source=$GOPATH/src/github.com/kinvolk/gobpf-elf-loader/ \ docker://debian \ --mount=volume=ebpf,target=/ebpf ``` And inside rkt: ``` mount -t tmpfs tmpfs /tmp # workaround rkt#1917 mount -t debugfs debugfs /sys/kernel/debug/ cd /ebpf ./gobpf-elf-loader ./ebpf.o ``` This patch increases the size of stage1-kvm.aci by 5MB (from 43MB to 48MB). Is it acceptable?
- Loading branch information
Showing
1 changed file
with
42 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters