diff options
author | Lakshmipathi <lakshmipathi.ganapathi@collabora.com> | 2021-01-12 12:33:02 +0530 |
---|---|---|
committer | Cristian Ciocaltea <cristian.ciocaltea@collabora.com> | 2022-12-12 17:57:12 +0200 |
commit | 3f95987d6877dc0454ab4202b905004eec3e38d2 (patch) | |
tree | 217b407f2a94a2fd42aa310cbc9a5163b7af85fa | |
parent | 2b1fa149006ad584098c94d4ef600512b0506858 (diff) | |
download | linux-3f95987d6877dc0454ab4202b905004eec3e38d2.tar.gz |
GitlabCI: kernel_test.sh: Add futex2 perf tests
Signed-off-by: Lakshmipathi <lakshmipathi.ganapathi@collabora.com>
-rw-r--r-- | kernel_test.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/kernel_test.sh b/kernel_test.sh index 50d09f16ac75..5b38c142d14c 100644 --- a/kernel_test.sh +++ b/kernel_test.sh @@ -15,6 +15,34 @@ echo -e "\t\t\t\t Starting syscall_user_dispatch:sud_benchmark Tests" ./sud_benchmark echo -e "\t\t\t\t Completed syscall_user_dispatch:sud_benchmark Tests" echo "========================================================================" +echo -e "\t\t\t\t Build Perf benchmark" +echo "========================================================================" +cd /mnt +make headers_install INSTALL_HDR_PATH=/usr +echo "grep FUTEX_32" +grep FUTEX_32 /usr/include/linux/futex.h +apt-get update && apt-get install -y elfutils libunwind-dev binutils numactl libaudit-dev coreutils libelf-dev libzstd-dev libcap-dev +apt-get update && apt-get install -y flex bison build-essential +apt-get update && apt-get install -y --fix-missing libiberty-dev libbabeltrace-ctf-dev libperl-dev libslang2-dev libssl-dev systemtap-sdt-dev libdw-dev +cd /mnt/tools/perf/ && make + +echo -e "\t\t\t\t Completed perf benchmark build" +echo "========================================================================" +echo -e "\t\t\t\t Run Perf benchmark" +echo "========================================================================" + +./perf bench futex2 hash -s +./perf bench futex2 hash -s -S +./perf bench -r 50 futex2 wake -s +./perf bench -r 50 futex2 wake -s -S +./perf bench -r 50 futex2 wake-parallel -s +./perf bench -r 50 futex2 wake-parallel -s -S +./perf bench -r 50 futex2 wake -s -t 1000 +./perf bench -r 50 futex2 wake -s -S -t 1000 +./perf bench -r 50 futex2 wake-parallel -s -t 1000 +./perf bench -r 50 futex2 wake-parallel -s -S -t 1000 + +echo -e "\t\t\t\t Completed perf run" } start_test 2>&1 | tee -a /mnt/kernel_results.log |