Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@ You can also get everything for `glibc` [here](UPLOAD FILE WITH ALL BINARIES TO
2. Extract them running:
```sh
$ for i in `ls *.zip`; do unzip $i; rm .gitkeep ; rm $i; done
$ for i in `ls *.xz`; do tar -xf $i; rm $i* ; done
$ for i in `ls *.tar`; do tar -xf $i; rm $i* ; done
```

3. Compile branch an run the following tests:

```sh
# make clean; make tester
# for i in `seq 0 3`; do ./kernel/legacy_test --netdata-path ../artifacts --content --iteration 1 --pid $i --log-path file_pid$i.txt; done
# for i in `seq 0 3`; do ./tests/legacy_test --netdata-path ../artifacts --content --iteration 1 --pid $i --log-path file_c_pid$i.txt; done
# for i in `seq 0 3`; do ./gotests/go_tester --netdata-path ../artifacts --content --iteration 1 --pid $i --log-path file_go_pid$i.txt; done
```

4. Every test should ends with `Success`, unless you do not have a specific target (function) available.
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
*.a

kernel/legacy_test
tests/legacy_test
tests/go_tester
gotests/go_tester
gotests/gotests
.local_libbpf/bpf
.local_libbpf/pkgconfig

4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
CC=gcc

KERNEL_DIR = kernel/
TESTS_DIR = tests/
KERNEL_PROGRAM = $(KERNEL_DIR)process_kern.o

KERNEL_VERSION="$(shell if [ -f /usr/src/linux/include/config/kernel.release ]; then cat /usr/src/linux/include/config/kernel.release; else cat /proc/sys/kernel/osrelease; fi)"
Expand Down Expand Up @@ -30,11 +31,12 @@ $(KERNEL_PROGRAM):
cd $(KERNEL_DIR) && $(MAKE) all;

tester:
cd $(KERNEL_DIR) && $(MAKE) tester
cd $(TESTS_DIR) && $(MAKE) tester

clean:
rm -f *.o;
cd $(KERNEL_DIR) && $(MAKE) clean;
cd $(TESTS_DIR) && $(MAKE) clean;
rm -f artifacts/*
rm -rf .local_libbpf

Expand Down
Loading