Fixed the support for DTrace so that it also builds on Mac OSX
[m6w6/libmemcached] / libmemcached / libmemcached_probes.h
1 /*
2 * This file contains the definition of the various probes supported by
3 * libmemcached. Currently it only support DTRACE, but just create an
4 * implementation of the following macros to create your own sort of
5 * probing :)
6 */
7 #ifndef LIBMEMCACHED_PROBES_H
8 #define LIBMEMCACHED_PROBES_H
9
10 #ifdef HAVE_DTRACE
11 /*
12 * Create the DTrace probes on the system using it (to support both Solaris
13 * and MacOS X
14 */
15 #include "dtrace_probes.h"
16
17 #else
18 /*
19 * Provide dummy macros so that we don't need to clutter the code with
20 * ifdefs when we want to use the probes.
21 */
22
23 #define LIBMEMCACHED_MEMCACHED_ADD_END()
24 #define LIBMEMCACHED_MEMCACHED_ADD_END_ENABLED() (0)
25 #define LIBMEMCACHED_MEMCACHED_ADD_START()
26 #define LIBMEMCACHED_MEMCACHED_ADD_START_ENABLED() (0)
27 #define LIBMEMCACHED_MEMCACHED_CONNECT_END()
28 #define LIBMEMCACHED_MEMCACHED_CONNECT_END_ENABLED() (0)
29 #define LIBMEMCACHED_MEMCACHED_CONNECT_START()
30 #define LIBMEMCACHED_MEMCACHED_CONNECT_START_ENABLED() (0)
31 #define LIBMEMCACHED_MEMCACHED_DECREMENT_END()
32 #define LIBMEMCACHED_MEMCACHED_DECREMENT_END_ENABLED() (0)
33 #define LIBMEMCACHED_MEMCACHED_DECREMENT_START()
34 #define LIBMEMCACHED_MEMCACHED_DECREMENT_START_ENABLED() (0)
35 #define LIBMEMCACHED_MEMCACHED_DELETE_END()
36 #define LIBMEMCACHED_MEMCACHED_DELETE_END_ENABLED() (0)
37 #define LIBMEMCACHED_MEMCACHED_DELETE_START()
38 #define LIBMEMCACHED_MEMCACHED_DELETE_START_ENABLED() (0)
39 #define LIBMEMCACHED_MEMCACHED_FLUSH_END()
40 #define LIBMEMCACHED_MEMCACHED_FLUSH_END_ENABLED() (0)
41 #define LIBMEMCACHED_MEMCACHED_FLUSH_START()
42 #define LIBMEMCACHED_MEMCACHED_FLUSH_START_ENABLED() (0)
43 #define LIBMEMCACHED_MEMCACHED_GET_END()
44 #define LIBMEMCACHED_MEMCACHED_GET_END_ENABLED() (0)
45 #define LIBMEMCACHED_MEMCACHED_GET_START()
46 #define LIBMEMCACHED_MEMCACHED_GET_START_ENABLED() (0)
47 #define LIBMEMCACHED_MEMCACHED_INCREMENT_END()
48 #define LIBMEMCACHED_MEMCACHED_INCREMENT_END_ENABLED() (0)
49 #define LIBMEMCACHED_MEMCACHED_INCREMENT_START()
50 #define LIBMEMCACHED_MEMCACHED_INCREMENT_START_ENABLED() (0)
51 #define LIBMEMCACHED_MEMCACHED_MGET_END()
52 #define LIBMEMCACHED_MEMCACHED_MGET_END_ENABLED() (0)
53 #define LIBMEMCACHED_MEMCACHED_MGET_START()
54 #define LIBMEMCACHED_MEMCACHED_MGET_START_ENABLED() (0)
55 #define LIBMEMCACHED_MEMCACHED_REPLACE_END()
56 #define LIBMEMCACHED_MEMCACHED_REPLACE_END_ENABLED() (0)
57 #define LIBMEMCACHED_MEMCACHED_REPLACE_START()
58 #define LIBMEMCACHED_MEMCACHED_REPLACE_START_ENABLED() (0)
59 #define LIBMEMCACHED_MEMCACHED_SERVER_ADD_END()
60 #define LIBMEMCACHED_MEMCACHED_SERVER_ADD_END_ENABLED() (0)
61 #define LIBMEMCACHED_MEMCACHED_SERVER_ADD_START()
62 #define LIBMEMCACHED_MEMCACHED_SERVER_ADD_START_ENABLED() (0)
63 #define LIBMEMCACHED_MEMCACHED_SET_END()
64 #define LIBMEMCACHED_MEMCACHED_SET_END_ENABLED() (0)
65 #define LIBMEMCACHED_MEMCACHED_SET_START()
66 #define LIBMEMCACHED_MEMCACHED_SET_START_ENABLED() (0)
67
68 #endif
69
70 #endif /* LIBMEMCACHED_PROBES_H */