vcpu监测 #16
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
name: kvm_watcher | |
on: | |
push: | |
branches: | |
- "*" | |
paths: | |
- 'eBPF_Supermarket/kvm_watcher/**' | |
- '.github/workflows/kvm_watcher.yml' | |
pull_request: | |
branches: | |
- "*" | |
paths: | |
- 'eBPF_Supermarket/kvm_watcher/**' | |
- '.github/workflows/kvm_watcher.yml' | |
jobs: | |
kvm_watcher-project-build-and-test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
sudo apt install clang libelf1 libelf-dev zlib1g-dev | |
sudo apt install libbpf-dev | |
sudo apt install linux-tools-$(uname -r) | |
sudo apt install linux-cloud-tools-$(uname -r) | |
sudo modprobe kvm | |
- name: Run kvm_exits | |
run: | | |
cd eBPF_Supermarket/kvm_watcher/vm_exits | |
make | |
sudo ./kvm_exits -t 5 | |
- name: Run kvm_vcpu | |
run: | | |
cd eBPF_Supermarket/kvm_watcher/vcpu | |
make | |
sudo ./kvm_vcpu -w -t 5 |