mem_watcher:将eBPF工具合入Memory_Subsystem文件夹中 #38
Workflow file for this run
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: Memory Subsystem | |
on: | |
push: | |
branches: | |
- "*" | |
paths: | |
- 'eBPF_Supermarket/Memory_Subsystem/**' | |
- '.github/workflows/system_memory.yml' | |
pull_request: | |
branches: | |
- "*" | |
paths: | |
- 'eBPF_Supermarket/Memory_Subsystem/**' | |
- '.github/workflows/system_memory.yml' | |
jobs: | |
build-and_tast: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: build libbpf | |
run: | | |
sudo apt-get install llvm clang | |
#构建环境过程存在部分错误 | |
# | |
- name: run procstat | |
run: | | |
cd eBPF_Supermarket/Memory_Subsystem/memstat/procstat | |
make | |
sudo ./procstat | |
- name: run sysstat | |
run: | | |
cd eBPF_Supermarket/Memory_Subsystem/memstat/sysstat | |
make | |
sudo ./sysstat | |
- name: run paf | |
run: | | |
cd eBPF_Supermarket/Memory_Subsystem/paf | |
make | |
sudo ./paf | |
- name: run pr | |
run: | | |
cd eBPF_Supermarket/Memory_Subsystem/pr | |
make | |
./pr |