diff options
author | Peter Bergin <peter@berginkonsult.se> | 2022-10-31 15:47:02 +0100 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-01-08 13:55:20 -0800 |
commit | bb31da87599853b2e5d4d4adc641a93edb22cd16 (patch) | |
tree | 897b8dc7d394cac9e41a863bbb9e1be9cf0d7aa0 | |
parent | 31bbb228f06228c40fd2fec2b988031c6b1222df (diff) | |
download | meta-openembedded-bb31da87599853b2e5d4d4adc641a93edb22cd16.tar.gz |
sysbench: Upgrade 0.4.12 -> 1.0.20
Use system cuncurrencykit and enable riscv
Signed-off-by: Peter Bergin <peter@berginkonsult.se>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/recipes-benchmark/sysbench/sysbench/0001-Adding-volatile-modifier-to-tmp-variable-in-memory-t.patch | 40 | ||||
-rw-r--r-- | meta-oe/recipes-benchmark/sysbench/sysbench_1.0.20.bb (renamed from meta-oe/recipes-benchmark/sysbench/sysbench_0.4.12.bb) | 18 |
2 files changed, 10 insertions, 48 deletions
diff --git a/meta-oe/recipes-benchmark/sysbench/sysbench/0001-Adding-volatile-modifier-to-tmp-variable-in-memory-t.patch b/meta-oe/recipes-benchmark/sysbench/sysbench/0001-Adding-volatile-modifier-to-tmp-variable-in-memory-t.patch deleted file mode 100644 index d628e81b56..0000000000 --- a/meta-oe/recipes-benchmark/sysbench/sysbench/0001-Adding-volatile-modifier-to-tmp-variable-in-memory-t.patch +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | From c1ebf893e32a0a77e820484d48a903523fef7c1b Mon Sep 17 00:00:00 2001 | ||
2 | From: Vasily Tarasov <tarasov@vasily.name> | ||
3 | Date: Fri, 10 Jun 2016 14:33:48 -0400 | ||
4 | Subject: [PATCH] Adding volatile modifier to tmp variable in memory test | ||
5 | |||
6 | Issue explanation: | ||
7 | |||
8 | ./sysbench/sysbench --test=memory --num-threads=16 \ | ||
9 | --memory-block-size=268435456 \ | ||
10 | --memory-total-size=137438953472 \ | ||
11 | --memory-oper=read \ | ||
12 | --memory-access-mode=seq \ | ||
13 | --memory-scope=local run | ||
14 | |||
15 | Without this commit the time to run the above command is 0.0004 seconds. | ||
16 | With this commit the time is greater than 3 seconds. Essentially, | ||
17 | without the volatile modifier, the compiler optimizes read access so | ||
18 | that no real access happens. | ||
19 | |||
20 | Upstream-Status: Backport [part of v1.0.0 https://github.com/akopytov/sysbench/commit/8753cb93be4c0b81a20b704ced91e7a422da52b1] | ||
21 | |||
22 | (cherry picked from commit 8753cb93be4c0b81a20b704ced91e7a422da52b1) | ||
23 | Signed-off-by: massimo toscanelli <massimo.toscanelli@leica-geosystems.com> | ||
24 | --- | ||
25 | sysbench/tests/memory/sb_memory.c | 2 +- | ||
26 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
27 | |||
28 | diff --git a/sysbench/tests/memory/sb_memory.c b/sysbench/tests/memory/sb_memory.c | ||
29 | index 2e8998f..7d22bb9 100644 | ||
30 | --- a/sysbench/tests/memory/sb_memory.c | ||
31 | +++ b/sysbench/tests/memory/sb_memory.c | ||
32 | @@ -244,7 +244,7 @@ sb_request_t memory_get_request(int tid) | ||
33 | int memory_execute_request(sb_request_t *sb_req, int thread_id) | ||
34 | { | ||
35 | sb_mem_request_t *mem_req = &sb_req->u.mem_request; | ||
36 | - int tmp = 0; | ||
37 | + volatile int tmp = 0; | ||
38 | int idx; | ||
39 | int *buf, *end; | ||
40 | log_msg_t msg; | ||
diff --git a/meta-oe/recipes-benchmark/sysbench/sysbench_0.4.12.bb b/meta-oe/recipes-benchmark/sysbench/sysbench_1.0.20.bb index 4ac78fb8fd..098954af37 100644 --- a/meta-oe/recipes-benchmark/sysbench/sysbench_0.4.12.bb +++ b/meta-oe/recipes-benchmark/sysbench/sysbench_1.0.20.bb | |||
@@ -2,20 +2,22 @@ SUMMARY = "System performance benchmark" | |||
2 | HOMEPAGE = "http://github.com/akopytov/sysbench" | 2 | HOMEPAGE = "http://github.com/akopytov/sysbench" |
3 | SECTION = "console/tests" | 3 | SECTION = "console/tests" |
4 | LICENSE = "GPL-2.0-only" | 4 | LICENSE = "GPL-2.0-only" |
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
6 | 6 | ||
7 | inherit autotools | 7 | DEPENDS = "libtool libaio luajit concurrencykit" |
8 | |||
9 | inherit autotools-brokensep pkgconfig | ||
8 | 10 | ||
9 | # The project has moved from Sourceforge to Launchpad, to Github. Use the source tarball from | 11 | # The project has moved from Sourceforge to Launchpad, to Github. Use the source tarball from |
10 | # Launchpad until the next release is available from Github. | 12 | # Launchpad until the next release is available from Github. |
11 | SRC_URI = "https://launchpad.net/ubuntu/+archive/primary/+files/${BPN}_${PV}.orig.tar.gz \ | 13 | SRC_URI = "git://github.com/akopytov/sysbench.git;protocol=https;branch=master" |
12 | file://0001-Adding-volatile-modifier-to-tmp-variable-in-memory-t.patch \ | 14 | SRCREV = "ebf1c90da05dea94648165e4f149abc20c979557" |
13 | " | 15 | |
16 | S = "${WORKDIR}/git" | ||
14 | 17 | ||
15 | SRC_URI[md5sum] = "3a6d54fdd3fe002328e4458206392b9d" | 18 | COMPATIBLE_HOST = "(arm|aarch64|i.86|x86_64|powerpc|powerpc64|riscv32|riscv64).*-linux*" |
16 | SRC_URI[sha256sum] = "83fa7464193e012c91254e595a89894d8e35b4a38324b52a5974777e3823ea9e" | ||
17 | 19 | ||
18 | EXTRA_OECONF += "--enable-largefile" | 20 | EXTRA_OECONF += "--enable-largefile --with-system-luajit --with-system-ck --without-gcc-arch" |
19 | PACKAGECONFIG ??= "" | 21 | PACKAGECONFIG ??= "" |
20 | PACKAGECONFIG[aio] = "--enable-aio,--disable-aio,libaio," | 22 | PACKAGECONFIG[aio] = "--enable-aio,--disable-aio,libaio," |
21 | PACKAGECONFIG[mysql] = "--with-mysql \ | 23 | PACKAGECONFIG[mysql] = "--with-mysql \ |