mirror of
https://github.com/eunomia-bpf/bpf-developer-tutorial.git
synced 2026-02-03 02:04:30 +08:00
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:
30
.github/workflows/test-eunomia.yaml
vendored
30
.github/workflows/test-eunomia.yaml
vendored
@@ -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
|
||||
|
||||
16
.github/workflows/test-libbpf.yml
vendored
16
.github/workflows/test-libbpf.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user