Fix the rest Eng document syntax and add CI for them. (#63)

* fix memleak build error

* fix en document syntax

* lint the rest documents

* add ci for libbpf 13-17

* add eunomia test ci

* add ci for 10 and 20
This commit is contained in:
云微
2023-08-15 20:16:30 +01:00
committed by GitHub
parent 002414f578
commit 1bbe35f02e
16 changed files with 214 additions and 151 deletions

View File

@@ -32,7 +32,35 @@ jobs:
run: |
./ecc src/2-kprobe-unlink/kprobe-link.bpf.c
sudo timeout -s 2 3 ./ecli run src/2-kprobe-unlink/package.json || if [ $? = 124 ]; then exit 0; else exit $?; fi
- name: test 4 opensnoop
run: |
./ecc src/4-opensnoop/opensnoop.bpf.c
sudo timeout -s 2 3 ./ecli run src/4-opensnoop/package.json || if [ $? = 124 ]; then exit 0; else exit $?; fi
- name: test 5 bashreadline
run: |
./ecc src/5-uprobe-bashreadline/bashreadline.bpf.c
sudo timeout -s 2 3 ./ecli run src/5-uprobe-bashreadline/package.json || if [ $? = 124 ]; then exit 0; else exit $?; fi
- name: test 6 sigsnoop
run: |
./ecc src/6-sigsnoop/sigsnoop.bpf.c
sudo timeout -s 2 3 ./ecli run src/6-sigsnoop/package.json || if [ $? = 124 ]; then exit 0; else exit $?; fi
- name: test 7 execsnoop
run: |
./ecc src/7-execsnoop/execsnoop.bpf.c src/7-execsnoop/execsnoop.h
sudo timeout -s 2 3 ./ecli run src/7-execsnoop/package.json || if [ $? = 124 ]; then exit 0; else exit $?; fi
sudo timeout -s 2 3 ./ecli run src/7-execsnoop/package.json || if [ $? = 124 ]; then exit 0; else exit $?; fi
- name: test 8 exitsnoop
run: |
./ecc src/8-exitsnoop/exitsnoop.bpf.c src/8-exitsnoop/exitsnoop.h
sudo timeout -s 2 3 ./ecli run src/8-exitsnoop/package.json || if [ $? = 124 ]; then exit 0; else exit $?; fi
- name: test 9 runqlat
run: |
./ecc src/9-runqlat/runqlat.bpf.c src/9-runqlat/runqlat.h
sudo timeout -s 2 3 ./ecli run src/9-runqlat/package.json || if [ $? = 124 ]; then exit 0; else exit $?; fi
- name: test 10 hardirqs
run: |
./ecc src/10-hardirqs/hardirqs.bpf.c src/10-hardirqs/hardirqs.h
sudo timeout -s 2 3 ./ecli run src/10-hardirqs/package.json || if [ $? = 124 ]; then exit 0; else exit $?; fi
- name: test 20 tc
run: |
./ecc src/20-tc/tc.bpf.c
sudo timeout -s 2 3 ./ecli run src/20-tc/package.json || if [ $? = 124 ]; then exit 0; else exit $?; fi

View File

@@ -27,3 +27,19 @@ jobs:
run: |
make -C src/12-profile
# sudo timeout -s 2 3 src/12-profile/profile || if [ $? = 124 ]; then exit 0; else exit $?; fi
- name: test 13 tcpconnlat
run: |
make -C src/13-tcpconnlat
# sudo timeout -s 2 3 src/13-tcpconnlat/tcpconnlat || if [ $? = 124 ]; then exit 0; else exit $?; fi
- name: test 14 tcpstates
run: |
make -C src/14-tcpstates
# sudo timeout -s 2 3 src/14-tcpstates/tcpstates || if [ $? = 124 ]; then exit 0; else exit $?; fi
- name: test 16 memleak
run: |
make -C src/16-memleak
# sudo timeout -s 2 3 src/16-memleak/memleak || if [ $? = 124 ]; then exit 0; else exit $?; fi
- name: test 17 biopattern
run: |
make -C src/17-biopattern
# sudo timeout -s 2 3 src/17-biopattern/biopattern || if [ $? = 124 ]; then exit 0; else exit $?; fi