forked from sysown/proxysql
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 68d6786
Showing
195 changed files
with
201,342 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# Object files | ||
*.o | ||
*.ko | ||
*.oo | ||
|
||
# Libraries | ||
*.lib | ||
*.a | ||
|
||
# Shared objects (inc. Windows DLLs) | ||
*.dll | ||
*.so | ||
*.so.* | ||
*.dylib | ||
|
||
# Executables | ||
*.exe | ||
*.out | ||
*.app | ||
|
||
oldcode/tests/connect_speed | ||
|
||
*.swp | ||
|
||
|
||
|
||
# SQLITE files | ||
*.db | ||
*.db-shm | ||
*.db-wal | ||
|
||
|
||
#pidfile and errorlog | ||
*.pid | ||
*.log | ||
*.err | ||
|
||
#binary | ||
proxysql | ||
|
||
#core | ||
core | ||
|
||
#config | ||
proxysql.cnf* | ||
|
||
jeprof*heap | ||
perf.data* | ||
|
||
notes.txt | ||
architecture.txt | ||
|
||
|
||
|
||
### DEPS | ||
|
||
#sqlite | ||
deps/sqlite3/sqlite-amalgamation-3080403/ | ||
|
||
#jemalloc source | ||
deps/jemalloc/jemalloc-3.6.0/ | ||
|
||
#libdaemon | ||
deps/libdaemon/libdaemon-0.14/ | ||
|
||
#mariadb client library | ||
deps/mariadb-client-library/mariadb_client-2.0.0-Linux-x86/ | ||
deps/mariadb-client-library/mariadb_client-2.0.0-Linux-x86_64/ | ||
deps/mariadb-client-library/mariadb_client-2.0.0-src/ | ||
|
||
#glib | ||
deps/glib/glib-2.40.0/ | ||
|
||
#libevent | ||
deps/libevent/libevent-2.0.21-stable/ | ||
|
||
#memcached | ||
deps/memcached/memcached-1.4.20/ | ||
|
||
#libconfig | ||
deps/libconfig/libconfig-1.4.9/ | ||
|
||
#re2 | ||
deps/re2/re2/ |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
|
||
|
||
|
||
cleanall: | ||
cd lib && make clean | ||
cd src && make clean | ||
.PHONY: cleanall | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
|
||
|
||
default: memcached libconfig libdaemon jemalloc mariadb_client re2 | ||
.PHONY: default | ||
|
||
|
||
|
||
memcached/memcached/libmemcached.a: | ||
cd memcached && rm -rf memcached-1.4.20 | ||
cd memcached && tar -zxf memcached-1.4.20.tar.gz | ||
cd memcached/memcached && patch thread.c ../thread.c.patch | ||
cd memcached/memcached && patch memcached.c ../memcached.c.patch | ||
cd memcached/memcached && ./configure | ||
cd memcached/memcached && sed -i -e 's/-O2 /-O2 -fPIC /' Makefile | ||
cd memcached/memcached && patch Makefile ../Makefile.patch | ||
cd memcached/memcached && make | ||
|
||
memcached: memcached/memcached/libmemcached.a | ||
|
||
|
||
#glib/glib/glib/.libs/libglib-2.0.a: | ||
# cd glib && rm -rf glib-2.40.0 | ||
# cd glib && tar -xf glib-2.40.0.tar.xz | ||
# cd glib/glib && ./configure --enable-static | ||
# cd glib/glib && make | ||
# | ||
#glib: glib/glib/glib/.libs/libglib-2.0.a | ||
|
||
|
||
|
||
#libevent/libevent/.libs/libevent.a: | ||
# cd libevent && rm -rf libevent-2.0.21-stable | ||
# cd libevent && tar -zxf libevent-2.0.21-stable.tar.gz | ||
# cd libevent/libevent && ./configure --disable-malloc-replacement --disable-openssl --disable-debug-mode | ||
# cd libevent/libevent && make | ||
# | ||
#libevent: libevent/libevent/.libs/libevent.a | ||
|
||
|
||
|
||
libdaemon/libdaemon/libdaemon/.libs/libdaemon.a: | ||
cd libdaemon && rm -rf libdaemon-0.14 | ||
cd libdaemon && tar -zxf libdaemon-0.14.tar.gz | ||
cd libdaemon/libdaemon && ./configure | ||
cd libdaemon/libdaemon && make | ||
|
||
libdaemon: libdaemon/libdaemon/libdaemon/.libs/libdaemon.a | ||
|
||
|
||
|
||
jemalloc/jemalloc/lib/libjemalloc.a: | ||
cd jemalloc && rm -rf jemalloc-3.6.0 | ||
cd jemalloc && tar -jxf jemalloc-3.6.0.tar.bz2 | ||
cd jemalloc/jemalloc && ./configure --enable-xmalloc | ||
cd jemalloc/jemalloc && make | ||
|
||
jemalloc: jemalloc/jemalloc/lib/libjemalloc.a | ||
|
||
|
||
|
||
mariadb-client-library/mariadb_client/include/my_global.h: | ||
cd mariadb-client-library && rm -rf mariadb_client-2.0.0-src | ||
cd mariadb-client-library && tar -zxf mariadb_client-2.0.0-src.tar.gz | ||
cd mariadb-client-library/mariadb_client && cmake . | ||
# cd mariadb-client-library/mariadb_client && make | ||
|
||
mariadb_client: mariadb-client-library/mariadb_client/include/my_global.h | ||
|
||
|
||
|
||
#sqlite3/sqlite3/sqlite3.o: | ||
# cd sqlite3 && rm -rf sqlite-amalgamation-3080403 | ||
# cd sqlite3 && unzip sqlite-amalgamation-3080403.zip | ||
# cd sqlite3/sqlite3 && cc -O2 -c -o sqlite3.o sqlite3.c | ||
# | ||
#sqlite3: sqlite3/sqlite3/sqlite3.o | ||
|
||
|
||
libconfig/libconfig/lib/.libs/libconfig++.a: | ||
cd libconfig && rm -rf libconfig-1.4.9 | ||
cd libconfig && tar -zxf libconfig-1.4.9.tar.gz | ||
cd libconfig/libconfig && ./configure | ||
cd libconfig/libconfig && make | ||
|
||
libconfig: libconfig/libconfig/lib/.libs/libconfig++.a | ||
|
||
|
||
re2/re2/obj/libre2.a: | ||
cd re2 && rm -rf re2 | ||
cd re2 && tar -zxf re2-20140304.tgz | ||
cd re2/re2 && sed -i -e 's/-O3 -g /-O3 -fPIC /' Makefile | ||
cd re2 && patch re2/util/mutex.h < mutex.h.patch | ||
cd re2/re2 && make | ||
|
||
re2: re2/re2/obj/libre2.a | ||
|
||
cleanall: | ||
cd libdaemon && rm -rf libdaemon-0.14 | ||
cd memcached && rm -rf memcached-1.4.20 | ||
cd jemalloc && rm -rf jemalloc-3.6.0 | ||
cd mariadb-client-library && rm -rf mariadb_client-2.0.0-src | ||
cd libconfig && rm -rf libconfig-1.4.9 | ||
cd re2 && rm -rf re2 | ||
# cd glib && rm -rf glib-2.40.0 | ||
# cd libevent && rm -rf libevent-2.0.21-stable | ||
# cd sqlite3 && rm -rf sqlite-amalgamation-3080403 | ||
.PHONY: cleanall | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Unless otherwise specified, files in the jemalloc source distribution are | ||
subject to the following license: | ||
-------------------------------------------------------------------------------- | ||
Copyright (C) 2002-2014 Jason Evans <jasone@canonware.com>. | ||
All rights reserved. | ||
Copyright (C) 2007-2012 Mozilla Foundation. All rights reserved. | ||
Copyright (C) 2009-2014 Facebook, Inc. All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
1. Redistributions of source code must retain the above copyright notice(s), | ||
this list of conditions and the following disclaimer. | ||
2. Redistributions in binary form must reproduce the above copyright notice(s), | ||
this list of conditions and the following disclaimer in the documentation | ||
and/or other materials provided with the distribution. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) ``AS IS'' AND ANY EXPRESS | ||
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO | ||
EVENT SHALL THE COPYRIGHT HOLDER(S) BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | ||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | ||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE | ||
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | ||
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
-------------------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
jemalloc is a general purpose malloc(3) implementation that emphasizes | ||
fragmentation avoidance and scalable concurrency support. jemalloc first came | ||
into use as the FreeBSD libc allocator in 2005, and since then it has found its | ||
way into numerous applications that rely on its predictable behavior. In 2010 | ||
jemalloc development efforts broadened to include developer support features | ||
such as heap profiling, Valgrind integration, and extensive monitoring/tuning | ||
hooks. Modern jemalloc releases continue to be integrated back into FreeBSD, | ||
and therefore versatility remains critical. Ongoing development efforts trend | ||
toward making jemalloc among the best allocators for a broad range of demanding | ||
applications, and eliminating/mitigating weaknesses that have practical | ||
repercussions for real world applications. | ||
|
||
The COPYING file contains copyright and licensing information. | ||
|
||
The INSTALL file contains information on how to configure, build, and install | ||
jemalloc. | ||
|
||
The ChangeLog file contains a brief summary of changes for each release. | ||
|
||
URL: http://www.canonware.com/jemalloc/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
jemalloc-3.6.0 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
libconfig-1.4.9 |
Binary file not shown.
Oops, something went wrong.