Skip to content

mem_watcher:对内存碎片化程度数据进行放大为0-1000,并完善mem_watcher工具的Readme #48

mem_watcher:对内存碎片化程度数据进行放大为0-1000,并完善mem_watcher工具的Readme

mem_watcher:对内存碎片化程度数据进行放大为0-1000,并完善mem_watcher工具的Readme #48

name: mem_watcher
on:
push:
branches:
- "*"
paths:
- 'eBPF_Supermarket/Memory_Subsystem/mem_watcher/**'
- '.github/workflows/ebpf_mem_watcher.yml'
pull_request:
branches:
- "*"
paths:
- 'eBPF_Supermarket/Memory_Subsystem/mem_watcher/**'
- '.github/workflows/ebpf_mem_watcher.yml'
jobs:
mem_watcher-project-build-and-test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt update
sudo apt install libbpf-dev clang llvm libelf-dev libpcap-dev gcc-multilib build-essential linux-tools-$(uname -r)
git submodule update --init --recursive
- name: Run mem_watcher
continue-on-error: true
run: |
cd eBPF_Supermarket/Memory_Subsystem/mem_watcher/
bpftool btf dump file /sys/kernel/btf/vmlinux format c > vmlinux.h
make
sudo ./mem_watcher -f -i 10