-
Notifications
You must be signed in to change notification settings - Fork 173
82 lines (70 loc) · 2.27 KB
/
eBPF_proc_image.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: eBPF_proc_image
on:
push:
branches:
- "*"
paths:
- 'eBPF_Supermarket/CPU_Subsystem/eBPF_proc_image/**'
- '.github/workflows/eBPF_proc_image.yml'
pull_request:
branches:
- "*"
paths:
- 'eBPF_Supermarket/CPU_Subsystem/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: Install dependencies and Init Env
run: |
sudo apt update
sudo apt install libbpf-dev clang llvm libelf-dev libpcap-dev gcc-multilib build-essential
git submodule update --init --recursive
- name: Run lifecycle_image
run: |
cd eBPF_Supermarket/CPU_Subsystem/eBPF_proc_image/tools
make lifecycle_image
sudo ./lifecycle_image -t 1
- name: Run lock_image
run: |
cd eBPF_Supermarket/CPU_Subsystem/eBPF_proc_image/tools
make lock_image
sudo ./lock_image -t 1
- name: Run newlife_image
run: |
cd eBPF_Supermarket/CPU_Subsystem/eBPF_proc_image/tools
make newlife_image
sudo ./newlife_image -t 1
- name: Run keytime_image
run: |
cd eBPF_Supermarket/CPU_Subsystem/eBPF_proc_image/tools
make keytime_image
sudo ./keytime_image -t 1
- name: Run proc_image
run: |
cd eBPF_Supermarket/CPU_Subsystem/eBPF_proc_image
make proc_image
sudo ./proc_image -t 1
- name: Run new_proc_image
run: |
cd eBPF_Supermarket/CPU_Subsystem/eBPF_proc_image/developing
make proc_image
sudo ./proc_image -r -s -t 1
- name: Run mutex_test
run: |
cd eBPF_Supermarket/CPU_Subsystem/eBPF_proc_image/test
sudo make
sudo insmod mutex_test1.ko
sudo insmod mutex_test2.ko
- name: Run test_sleep
run: |
cd eBPF_Supermarket/CPU_Subsystem/eBPF_proc_image/test
gcc test_sleep.c -o test_sleep
./test_sleep
- name: Run test_proc
run: |
cd eBPF_Supermarket/CPU_Subsystem/eBPF_proc_image/test
gcc test_proc.c -o test_proc
./test_proc