-
Notifications
You must be signed in to change notification settings - Fork 173
41 lines (37 loc) · 1.16 KB
/
user_function_tracer.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
name: user_function_tracer
on:
push:
branches:
- "*"
paths:
- "eBPF_Supermarket/User_Function_Tracer/**"
- ".github/workflows/user_function_tracer.yml"
pull_request:
branches:
- "*"
paths:
- "eBPF_Supermarket/User_Function_Tracer/**"
- ".github/workflows/user_function_tracer.yml"
jobs:
build-and-run-tracer:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y clang cmake ninja-build libelf1 libelf-dev zlib1g-dev libbpf-dev linux-tools-$(uname -r) linux-cloud-tools-$(uname -r)
- name: Build and run
run: |
cd eBPF_Supermarket/User_Function_Tracer
mkdir -p vmlinux
bash tools/gen_vmlinux_h.sh > vmlinux/vmlinux.h
cmake -B build -S . -G Ninja
cmake --build build
gcc test/sleep.c -o test/sleep
gcc test/mmap.c -o test/mmap
gcc test/strcpy.c -o test/strcpy
sudo build/utrace -c test/sleep
sudo build/utrace -c test/mmap
sudo build/utrace -c test/strcpy