Skip to content

按功能类型整合进程画像工具 && 增加用户态测试程序 && 整理仓库文件 #38

按功能类型整合进程画像工具 && 增加用户态测试程序 && 整理仓库文件

按功能类型整合进程画像工具 && 增加用户态测试程序 && 整理仓库文件 #38

name: eBPF_proc_image
on:
push:
branches:
- "*"
paths:
- 'eBPF_Supermarket/eBPF_proc_image/**'
- '.github/workflows/eBPF_proc_image.yml'
pull_request:
branches:
- "*"
paths:
- 'eBPF_Supermarket/eBPF_proc_image/**'
- '.github/workflows/eBPF_proc_image.yml'
jobs:
proc_image-project-build-and-test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Run lifecycle_image
run: |
cd eBPF_Supermarket/eBPF_proc_image
make lifecycle_image
sudo ./lifecycle_image -t 1
- name: Run lock_image
run: |
cd eBPF_Supermarket/eBPF_proc_image
make lock_image
sudo ./lock_image -t 1
- name: Run newlife_image
run: |
cd eBPF_Supermarket/eBPF_proc_image
make newlife_image
sudo ./newlife_image -t 1
- name: Run proc_offcpu_time
run: |
cd eBPF_Supermarket/eBPF_proc_image/proc_offcpu_time
make
sudo ./proc_offcpu_time -t 1
- name: Run mutex_test
run: |
cd eBPF_Supermarket/eBPF_proc_image/test
sudo make
sudo insmod mutex_test1.ko
sudo insmod mutex_test2.ko
- name: Run test_sleep
run: |
cd eBPF_Supermarket/eBPF_proc_image/test
gcc test_sleep.c -o test_sleep
./test_sleep
- name: Run test_proc
run: |
cd eBPF_Supermarket/eBPF_proc_image/test
gcc test_proc.c -o test_proc
./test_proc