jjb: Add getpid testcase for Lava benchmark
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 16 Mar 2017 20:49:16 +0000 (16:49 -0400)
committerFrancis Deslauriers <francis.deslauriers@efficios.com>
Wed, 10 May 2017 19:52:16 +0000 (15:52 -0400)
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
lava/baremetal-tests/raw-syscall-getpid.yml [new file with mode: 0644]
scripts/lttng-baremetal-tests/lava-submit.py
scripts/lttng-baremetal-tests/run-baremetal-benchmarks.sh

diff --git a/lava/baremetal-tests/raw-syscall-getpid.yml b/lava/baremetal-tests/raw-syscall-getpid.yml
new file mode 100644 (file)
index 0000000..bb2f2fe
--- /dev/null
@@ -0,0 +1,38 @@
+metadata:
+        format: Lava-Test Test Definition 1.0
+        name: benchmark-raw-syscall-getpid
+        description: "Perform syscall tracing benchmark of the raw syscall getpid"
+params:
+    JENKINS_JOBNAME: "default jobname"
+
+install:
+        deps:
+                - python3-pandas
+                - python3-numpy
+        git-repos:
+                - url: https://github.com/frdeso/syscall-bench-it.git
+                  destination: benchmarks
+                  branch: master
+                - url: https://github.com/lttng/lttng-ci
+                  destination: ci
+                  branch: master
+        steps:
+                - export TMPDIR="/tmp"
+                - 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 benchmarks
+                - 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 ../benchmarks/results.csv
+                - mv ./processed_results.csv ../processed_results_raw_syscall_getpid.csv
+                - cd -
+                - tar czf coredump.tar.gz coredump
+                - lava-test-case-attach run-benchmarks coredump.tar.gz
+                - lava-test-case-attach run-benchmarks "./processed_results_raw_syscall_getpid.csv"
index 43fef56c1322404a4655d04023f9cb0e9d921f8a..b5025ef9a6ae744f9458b06ac3443e1c3550680e 100644 (file)
@@ -75,6 +75,7 @@ def fetch_benchmark_results(server, job):
             'processed_results_open_efault.csv',
             'processed_results_open_enoent.csv',
             'processed_results_dup_close.csv',
+            'processed_results_raw_syscall_getpid.csv',
             'processed_results_lttng_test_filter.csv']
 
     # The result bundle is a large JSON containing the results of every testcase
@@ -207,6 +208,11 @@ def get_baremetal_benchmarks_cmd():
                     'revision': 'master',
                     'testdef': 'lava/baremetal-tests/success-dup-close.yml'
                 },
+                {
+                    'git-repo': 'https://github.com/lttng/lttng-ci.git',
+                    'revision': 'master',
+                    'testdef': 'lava/baremetal-tests/raw-syscall-getpid.yml'
+                },
                 {
                     'git-repo': 'https://github.com/lttng/lttng-ci.git',
                     'revision': 'master',
index 1d15a61a73fc3689276db28d2b17688d865b0385..aa6be86b41258b2a4b4e6bcaecf2becd31bc564c 100644 (file)
@@ -45,4 +45,5 @@ $SCP_COMMAND ./processed_results_open_efault.csv "$STORAGE_USER@$STORAGE_HOST:$R
 $SCP_COMMAND ./processed_results_open_enoent.csv "$STORAGE_USER@$STORAGE_HOST:$RESULT_STORAGE_FOLDER/open-enoent.csv"
 $SCP_COMMAND ./processed_results_dup_close.csv "$STORAGE_USER@$STORAGE_HOST:$RESULT_STORAGE_FOLDER/dup-close.csv"
 $SCP_COMMAND ./processed_results_lttng_test_filter.csv "$STORAGE_USER@$STORAGE_HOST:$RESULT_STORAGE_FOLDER/lttng-test-filter.csv"
+$SCP_COMMAND ./processed_results_raw_syscall_getpid.csv "$STORAGE_USER@$STORAGE_HOST:$RESULT_STORAGE_FOLDER/raw_syscall_getpid.csv"
 $SCP_COMMAND ./metadata.csv "$STORAGE_USER@$STORAGE_HOST:$RESULT_STORAGE_FOLDER/metadata.csv"
This page took 0.024429 seconds and 4 git commands to generate.