126 Commits

Author SHA1 Message Date
372bc69792 Check if ASAN is supported by the compiler. 2017-01-16 10:18:47 +03:00
d019abd180 Fix ASAN support in configure.ac. 2017-01-16 09:47:31 +03:00
52e075cb0c Add AddressSanitizer support. Enable it by default in Travis CI builds. 2017-01-16 09:34:13 +03:00
60778578f8 Fixes #101: Obscure ./configure error when pkg-config is not installed
Produce a more meaningful error message at autoconf time when pkg-config
is not installed on the host system.
2017-01-16 08:41:48 +03:00
1d434809ec SQL API refactoring, cut #1. 2017-01-14 01:29:57 +03:00
c22f35f8ae Fix AC_MSG_ERROR() usage. 2017-01-06 15:43:59 +03:00
e84cd1f89c Check for pkg-config availability in configure.ac. 2017-01-06 15:41:49 +03:00
e5a886d3f7 Enforce a C99 compiler. 2017-01-06 14:34:06 +03:00
6b3077f446 Fixes #27: Provide portable reentrant PRNG
Replaced system-provided PRNG with xoroshiro128+. Minor cleanups in
random numbers API.
2017-01-03 21:00:45 +03:00
821be2a7c4 Timers overhaul. 2017-01-02 14:57:55 +03:00
5c45389d60 Replace custom check for Sun compiler with AX_COMPILER_VENDOR. 2016-12-30 09:58:16 +03:00
cf2ce71141 Autodetect the most optimal -march GCC flag for the target architecture.
Use ax_gcc_archflag.m4 to try to guess the most optimal -march value for
the target architecture, unless cross-compiling, or the value is set
explicitly with --with-gcc-arch.

Also, AArch64/ThunderX-specific updates to ax_gcc_archflag.m4.

In sb_concurrency_kit.m4, add --enable-lse to CK build flags if LSE
instructions are supported by the target.
2016-12-30 09:53:56 +03:00
ec2274bf2f Merge branch 'luajit' into concurrency_kit 2016-12-23 17:18:20 +08:00
e398721314 Merge branch '1.0' into luajit 2016-12-18 21:20:32 +08:00
482136beb5 Lua implementation of the main event loop.
For Lua scripts the main event loop is now implemented in Lua
itself. This is a prerequisite for leveraging LuaJIT optimizations.
2016-12-12 22:48:11 +03:00
dc8f6dcf57 Pass global CC, CFLAGS and LDFLAGS to ConcurrencyKit build system.
This allows higher optimization levels in optimized builds and
gcov-enabled CK libraries in --enable-coverage builds.
2016-12-12 17:30:21 +03:00
7ba50048a8 Fix AC_SUBST() usage for USE_MYSQL. 2016-12-12 16:01:07 +03:00
18b7e914a6 Various test-related fixes.
1. Fix drivers.t so it passes when no DB drivers are available.
2. Make it possible for the test suite to detect if certain DB drivers
are available, so individual tests that require them can be skipped.
2016-12-05 13:25:39 +03:00
aade88ed5e Merge branch '1.0' into concurrency_kit 2016-12-05 12:22:21 +03:00
d49c854e52 Suppress "zero-length gnu_printf format string" warnings from GCC. 2016-12-02 18:34:20 +03:00
65c083a6ba Report Git commit SHA in configure and "sysbench --version" output. 2016-10-16 22:57:37 +03:00
6bf78c6132 Initial Concurrency Kit import. 2016-10-16 22:57:37 +03:00
446bc75843 Merge branch '1.0' into luajit 2016-10-15 14:10:57 +03:00
bd237c73bf Fix Sun Studio + Solaris/Sparc builds. 2016-10-14 08:05:34 +03:00
ff5cc25e1b Manually merge branch '1.0' into luajit. 2016-10-09 17:56:05 +02:00
fc37905725 simple build instructions to include oracle client, Also minor change to look at correct folder structure of 12.1 oracle client. 2016-09-26 11:53:01 +01:00
dbca1c60d4 Add coveralls.io integration. 2016-09-05 15:51:34 +03:00
cc8d5a9eec Merge branch '0.5' into 1.0 2016-09-05 10:40:34 +03:00
8fc9357cf0 Add version.t test + some necessary test harness improvements. 2016-09-05 10:39:47 +03:00
1868e1c779 Merge branch '0.5' into 1.0 2016-09-04 20:31:50 +03:00
6d5bba1fe6 Basic support for functional/regression testing. 2016-09-04 20:24:07 +03:00
db9df06050 Add __attribute__((format...)) to printf-like function declarations.
The SB_ATTRIBUTE_FORMAT() now expands to __attribute__((format...) on
platforms that support it. Fixed a number of inconsistencies between
format string and arguments revealed by the format attribute.
2016-03-26 22:43:48 +03:00
684c433a6e configure.ac: bump version number to 1.0
The version number in configure.ac should match the branch.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2016-03-23 12:09:02 +01:00
a30703fd4c Change project info reported by ./configure. 2016-03-22 19:04:04 +03:00
8745806da6 Print a status summary at the end of ./configure output. 2016-03-22 19:03:16 +03:00
4b6c388a4d Autoconf cleanups. 2016-03-20 14:18:15 +03:00
bf94de28f6 Support building with bundled LuaJIT. 2016-03-20 01:38:36 +03:00
1184aff06b Merge branch '1.0' into luajit 2016-03-09 23:45:39 +03:00
4ad92418c6 Fix compatibility with Autoconf 2.63 broken by adding ax_tls.m4. 2016-02-25 18:00:46 +08:00
e75ca57ee0 Add a missing '\'. 2016-02-24 16:01:38 +08:00
e24a028409 Fixes #18: lrand48() is not thread-safe
and
LP#1412488: lrand48() doesn't scale well on highly concurrent platforms

Use re-entrant versions of standard RNG functions with thread-local
states. Seed thread-local RNGs from the RNG of the thread invoking
sb_thread_create() (i.e. the main thread).

The main thread RNG is now always seeded from timer, unless --rand-seed
is specified. Which obsoletes --rand-init, so it has been removed.
2016-02-24 00:26:30 +08:00
909bc10551 Bump version for the 1.0 branch and fix email address to report bugs. 2016-02-21 21:18:54 +08:00
11603c917d Initial LuaJIT support: build with system libluajit. 2016-02-21 21:12:45 +08:00
c8c50ac65a Fixed the annoying “AC_COMPILE_IFELSE before AC_USE_SYSTEM_EXTENSIONS”
Autoconf warning.
2015-08-23 23:09:22 +05:00
7215074a9a Add libAttachSQL driver to Sysbench 2014-10-16 10:37:38 +01:00
77d6c52809 Merged lp:~vadim-tk/sysbench/sysbench-pareto-merge with minor edits. 2012-09-23 17:09:08 +04:00
6d8338411a Temporarily reverted the fix for #1029088 as it appears to be
incompatible with ancient autotools.
2012-08-30 21:59:06 +04:00
7de9f0bcf7 Bug #1029088: Error compiling on FreeBSD
The problem was in a hard-coded library (-ldl) being added to LIBADD.

Fixed by using the appropriate Libtool/Autoconf macros to check if using
-ldl is necessary.
2012-08-30 13:28:18 +04:00
72711e1207 Automerge from 0.4. 2012-08-30 12:47:49 +04:00
cbed8d8942 Bug #1042442: Automake fails
Merged configure fix for newer Automake versions contributed by
Raghavendra D Prabhu.
2012-08-30 12:46:49 +04:00