- python3-pandas
- python3-numpy
git-repos:
- - url: https://github.com/frdeso/syscall-bench-it.git
- destination: /tmp/benchmarks
- branch: master
- url: https://github.com/lttng/lttng-ci
destination: ci
branch: master
steps:
- export TMPDIR="/tmp"
+ - export BENCHMARK_DIR=$(mktemp --directory)
- ulimit -c unlimited
- mkdir -p coredump
- echo "$(pwd)/coredump/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern
run:
steps:
- source /root/lttngvenv/activate
- - cd /tmp/benchmarks
+ - git clone https://github.com/frdeso/syscall-bench-it.git $BENCHMARK_DIR
+ - cd $BENCHMARK_DIR
- lava-test-case build-benchmarks --shell "make"
- lava-test-case run-benchmarks --shell "./run.sh failing-close sys_close"
- lava-test-case-attach run-benchmarks "./results.csv"
- cd -
- cd ci
- - python3 ./scripts/lttng-baremetal-tests/parse-results.py /tmp/benchmarks/results.csv
+ - python3 ./scripts/lttng-baremetal-tests/parse-results.py $BENCHMARK_DIR/results.csv
- mv ./processed_results.csv ../processed_results_close.csv
- cd -
- tar czf coredump.tar.gz coredump
- python3-pandas
- python3-numpy
git-repos:
- - url: https://github.com/frdeso/syscall-bench-it.git
- destination: /tmp/benchmarks
- branch: master
- url: https://github.com/lttng/lttng-ci
destination: ci
branch: master
steps:
- export TMPDIR="/tmp"
+ - export BENCHMARK_DIR=$(mktemp --directory)
- ulimit -c unlimited
- mkdir -p coredump
- echo "$(pwd)/coredump/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern
run:
steps:
- source /root/lttngvenv/activate
- - cd /tmp/benchmarks
+ - git clone https://github.com/frdeso/syscall-bench-it.git $BENCHMARK_DIR
+ - cd $BENCHMARK_DIR
- lava-test-case build-benchmarks --shell "make"
- lava-test-case run-benchmarks --shell "./run.sh failing-ioctl sys_ioctl"
- lava-test-case-attach run-benchmarks "./results.csv"
- cd -
- cd ci
- - python3 ./scripts/lttng-baremetal-tests/parse-results.py /tmp/benchmarks/results.csv
+ - python3 ./scripts/lttng-baremetal-tests/parse-results.py $BENCHMARK_DIR/results.csv
- mv ./processed_results.csv ../processed_results_ioctl.csv
- cd -
- tar czf coredump.tar.gz coredump
- python3-pandas
- python3-numpy
git-repos:
- - url: https://github.com/frdeso/syscall-bench-it.git
- destination: /tmp/benchmarks
- branch: master
- url: https://github.com/lttng/lttng-ci
destination: ci
branch: master
steps:
- export TMPDIR="/tmp"
+ - export BENCHMARK_DIR=$(mktemp --directory)
- ulimit -c unlimited
- mkdir -p coredump
- echo "$(pwd)/coredump/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern
run:
steps:
- source /root/lttngvenv/activate
- - cd /tmp/benchmarks
+ - git clone https://github.com/frdeso/syscall-bench-it.git $BENCHMARK_DIR
+ - cd $BENCHMARK_DIR
- lava-test-case build-benchmarks --shell "make"
- lava-test-case run-benchmarks --shell "./run.sh failing-open-efault sys_open"
- lava-test-case-attach run-benchmarks "./results.csv"
- cd -
- cd ci
- - python3 ./scripts/lttng-baremetal-tests/parse-results.py /tmp/benchmarks/results.csv
+ - python3 ./scripts/lttng-baremetal-tests/parse-results.py $BENCHMARK_DIR/results.csv
- mv ./processed_results.csv ../processed_results_open_efault.csv
- cd -
- tar czf coredump.tar.gz coredump
- python3-pandas
- python3-numpy
git-repos:
- - url: https://github.com/frdeso/syscall-bench-it.git
- destination: /tmp/benchmarks
- branch: master
- url: https://github.com/lttng/lttng-ci
destination: ci
branch: master
steps:
- export TMPDIR="/tmp"
+ - export BENCHMARK_DIR=$(mktemp --directory)
- ulimit -c unlimited
- mkdir -p coredump
- echo "$(pwd)/coredump/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern
run:
steps:
- source /root/lttngvenv/activate
- - cd /tmp/benchmarks
+ - git clone https://github.com/frdeso/syscall-bench-it.git $BENCHMARK_DIR
+ - cd $BENCHMARK_DIR
- lava-test-case build-benchmarks --shell "make"
- lava-test-case run-benchmarks --shell "./run.sh failing-open-enoent sys_open"
- lava-test-case-attach run-benchmarks "./results.csv"
- cd -
- cd ci
- - python3 ./scripts/lttng-baremetal-tests/parse-results.py /tmp/benchmarks/results.csv
+ - python3 ./scripts/lttng-baremetal-tests/parse-results.py $BENCHMARK_DIR/results.csv
- mv ./processed_results.csv ../processed_results_open_enoent.csv
- cd -
- tar czf coredump.tar.gz coredump
- python3-pandas
- python3-numpy
git-repos:
- - url: https://github.com/frdeso/syscall-bench-it.git
- destination: /tmp/benchmarks
- branch: master
- url: https://github.com/lttng/lttng-ci
destination: ci
branch: master
steps:
- export TMPDIR="/tmp"
+ - export BENCHMARK_DIR=$(mktemp --directory)
- ulimit -c unlimited
- mkdir -p coredump
- echo "$(pwd)/coredump/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern
run:
steps:
- source /root/lttngvenv/activate
- - cd /tmp/benchmarks
+ - git clone https://github.com/frdeso/syscall-bench-it.git $BENCHMARK_DIR
+ - cd $BENCHMARK_DIR
- lava-test-case build-benchmarks --shell "make"
- lava-test-case run-benchmarks --shell "./run.sh raw-syscall-getpid sys_getpid"
- lava-test-case-attach run-benchmarks "./results.csv"
- cd -
- cd ci
- - python3 ./scripts/lttng-baremetal-tests/parse-results.py /tmp/benchmarks/results.csv
+ - python3 ./scripts/lttng-baremetal-tests/parse-results.py $BENCHMARK_DIR/results.csv
- mv ./processed_results.csv ../processed_results_raw_syscall_getpid.csv
- cd -
- tar czf coredump.tar.gz coredump
- python3-pandas
- python3-numpy
git-repos:
- - url: https://github.com/frdeso/syscall-bench-it.git
- destination: /tmp/benchmarks
- branch: master
- url: https://github.com/lttng/lttng-ci
destination: ci
branch: master
steps:
- export TMPDIR="/tmp"
+ - export BENCHMARK_DIR=$(mktemp --directory)
- ulimit -c unlimited
- mkdir -p coredump
- echo "$(pwd)/coredump/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern
run:
steps:
- source /root/lttngvenv/activate
- - cd /tmp/benchmarks
+ - git clone https://github.com/frdeso/syscall-bench-it.git $BENCHMARK_DIR
+ - cd $BENCHMARK_DIR
- lava-test-case build-benchmarks --shell "make"
- lava-test-case run-benchmarks --shell "./run.sh success-dup-close sys_close,sys_dup"
- lava-test-case-attach run-benchmarks "./results.csv"
- cd -
- cd ci
- - python3 ./scripts/lttng-baremetal-tests/parse-results.py /tmp/benchmarks/results.csv
+ - python3 ./scripts/lttng-baremetal-tests/parse-results.py $BENCHMARK_DIR/results.csv
- mv ./processed_results.csv ../processed_results_dup_close.csv
- cd -
- tar czf coredump.tar.gz coredump