Commit da44736a authored by unknown's avatar unknown

Comment out dtrace stuff for now, as it does not work properly on systems that lack dtrace.

Remove generated header from bzr
parent 5a3b3d9a
...@@ -47,15 +47,15 @@ EXTRA_DIST = ha_oqgraph.h ha_oqgraph.cc graphcore.cc \ ...@@ -47,15 +47,15 @@ EXTRA_DIST = ha_oqgraph.h ha_oqgraph.cc graphcore.cc \
graphcore-graph.h graphcore-types.h graphcore.h \ graphcore-graph.h graphcore-types.h graphcore.h \
CMakeFiles.txt plug.in oqgraph_probes.d CMakeFiles.txt plug.in oqgraph_probes.d
DTRACE = @DTRACE@ # DTRACE = @DTRACE@
DTRACEFLAGS = @DTRACEFLAGS@ # DTRACEFLAGS = @DTRACEFLAGS@
DTRACEFILES = .libs/liboqgraph_engine_la-ha_oqgraph.o # DTRACEFILES = .libs/liboqgraph_engine_la-ha_oqgraph.o
ORIG_CXXFLAGS = @CXXFLAGS@ ORIG_CXXFLAGS = @CXXFLAGS@
CXXFLAGS= CXXFLAGS=
noinst_HEADERS = ha_oqgraph.h \ noinst_HEADERS = ha_oqgraph.h \
graphcore-graph.h graphcore-types.h graphcore.h \ graphcore-graph.h graphcore-types.h graphcore.h
oqgraph_probes.h # oqgraph_probes.h
noinst_LTLIBRARIES = libgraphcore.la noinst_LTLIBRARIES = libgraphcore.la
libgraphcore_la_SOURCES = graphcore.cc libgraphcore_la_SOURCES = graphcore.cc
...@@ -74,22 +74,22 @@ mysqlplugin_LTLIBRARIES = @plugin_oqgraph_shared_target@ ...@@ -74,22 +74,22 @@ mysqlplugin_LTLIBRARIES = @plugin_oqgraph_shared_target@
oqgraph_engine_la_SOURCES = ha_oqgraph.cc oqgraph_engine_la_SOURCES = ha_oqgraph.cc
oqgraph_engine_la_LIBADD = libgraphcore.la oqgraph_engine_la_LIBADD = libgraphcore.la
if HAVE_DTRACE # if HAVE_DTRACE
oqgraph_engine_la_LIBADD += oqgraph_probes.o # oqgraph_engine_la_LIBADD += oqgraph_probes.o
endif # endif
oqgraph_engine_la_LDFLAGS = -module -rpath $(mysqlplugindir) oqgraph_engine_la_LDFLAGS = -module -rpath $(mysqlplugindir)
oqgraph_engine_la_CFLAGS = $(ORIG_CFLAGS) -DMYSQL_DYNAMIC_PLUGIN oqgraph_engine_la_CFLAGS = $(ORIG_CFLAGS) -DMYSQL_DYNAMIC_PLUGIN
oqgraph_engine_la_CXXFLAGS = $(ORIG_CXXFLAGS) -DMYSQL_DYNAMIC_PLUGIN oqgraph_engine_la_CXXFLAGS = $(ORIG_CXXFLAGS) -DMYSQL_DYNAMIC_PLUGIN
oqgraph_probes.h: oqgraph_probes.d # oqgraph_probes.h: oqgraph_probes.d
$(DTRACE) $(DTRACEFLAGS) -h -s oqgraph_probes.d # $(DTRACE) $(DTRACEFLAGS) -h -s oqgraph_probes.d
mv oqgraph_probes.h oqgraph_probes.h.bak # mv oqgraph_probes.h oqgraph_probes.h.bak
sed "s/#include <unistd.h>//g" oqgraph_probes.h.bak > oqgraph_probes.h # sed "s/#include <unistd.h>//g" oqgraph_probes.h.bak > oqgraph_probes.h
rm oqgraph_probes.h.bak # rm oqgraph_probes.h.bak
oqgraph_probes.o: # oqgraph_probes.o:
$(DTRACE) $(DTRACEFLAGS) -G -s oqgraph_probes.d $(DTRACEFILES) # $(DTRACE) $(DTRACEFLAGS) -G -s oqgraph_probes.d $(DTRACEFILES)
endif BUILD_OQGRAPH_FOR_MYSQL endif BUILD_OQGRAPH_FOR_MYSQL
......
/*
* Generated by dtrace(1M).
*/
#ifndef _OQGRAPH_PROBES_H
#define _OQGRAPH_PROBES_H
#ifdef __cplusplus
extern "C" {
#endif
#if _DTRACE_VERSION
#define OQGRAPH_CLOSE() \
__dtrace_oqgraph___close()
#define OQGRAPH_CLOSE_ENABLED() \
__dtraceenabled_oqgraph___close()
#define OQGRAPH_OPEN() \
__dtrace_oqgraph___open()
#define OQGRAPH_OPEN_ENABLED() \
__dtraceenabled_oqgraph___open()
extern void __dtrace_oqgraph___close(void);
extern int __dtraceenabled_oqgraph___close(void);
extern void __dtrace_oqgraph___open(void);
extern int __dtraceenabled_oqgraph___open(void);
#else
#define OQGRAPH_CLOSE()
#define OQGRAPH_CLOSE_ENABLED() (0)
#define OQGRAPH_OPEN()
#define OQGRAPH_OPEN_ENABLED() (0)
#endif
#ifdef __cplusplus
}
#endif
#endif /* _OQGRAPH_PROBES_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment