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
7 #ifndef LIBMEMCACHED_PROBES_H
8 #define LIBMEMCACHED_PROBES_H
12 * Create the DTrace probes on the system using it (to support both Solaris
15 #include "dtrace_probes.h"
19 * Provide dummy macros so that we don't need to clutter the code with
20 * ifdefs when we want to use the probes.
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_DECREMENT_WITH_INITIAL_END()
36 #define LIBMEMCACHED_MEMCACHED_DECREMENT_WITH_INITIAL_END_ENABLED() (0)
37 #define LIBMEMCACHED_MEMCACHED_DECREMENT_WITH_INITIAL_START()
38 #define LIBMEMCACHED_MEMCACHED_DECREMENT_WITH_INITIAL_START_ENABLED() (0)
39 #define LIBMEMCACHED_MEMCACHED_DELETE_END()
40 #define LIBMEMCACHED_MEMCACHED_DELETE_END_ENABLED() (0)
41 #define LIBMEMCACHED_MEMCACHED_DELETE_START()
42 #define LIBMEMCACHED_MEMCACHED_DELETE_START_ENABLED() (0)
43 #define LIBMEMCACHED_MEMCACHED_FLUSH_END()
44 #define LIBMEMCACHED_MEMCACHED_FLUSH_END_ENABLED() (0)
45 #define LIBMEMCACHED_MEMCACHED_FLUSH_START()
46 #define LIBMEMCACHED_MEMCACHED_FLUSH_START_ENABLED() (0)
47 #define LIBMEMCACHED_MEMCACHED_GET_END()
48 #define LIBMEMCACHED_MEMCACHED_GET_END_ENABLED() (0)
49 #define LIBMEMCACHED_MEMCACHED_GET_START()
50 #define LIBMEMCACHED_MEMCACHED_GET_START_ENABLED() (0)
51 #define LIBMEMCACHED_MEMCACHED_INCREMENT_END()
52 #define LIBMEMCACHED_MEMCACHED_INCREMENT_END_ENABLED() (0)
53 #define LIBMEMCACHED_MEMCACHED_INCREMENT_START()
54 #define LIBMEMCACHED_MEMCACHED_INCREMENT_START_ENABLED() (0)
55 #define LIBMEMCACHED_MEMCACHED_INCREMENT_WITH_INITIAL_END()
56 #define LIBMEMCACHED_MEMCACHED_INCREMENT_WITH_INITIAL_END_ENABLED() (0)
57 #define LIBMEMCACHED_MEMCACHED_INCREMENT_WITH_INITIAL_START()
58 #define LIBMEMCACHED_MEMCACHED_INCREMENT_WITH_INITIAL_START_ENABLED() (0)
59 #define LIBMEMCACHED_MEMCACHED_MGET_END()
60 #define LIBMEMCACHED_MEMCACHED_MGET_END_ENABLED() (0)
61 #define LIBMEMCACHED_MEMCACHED_MGET_START()
62 #define LIBMEMCACHED_MEMCACHED_MGET_START_ENABLED() (0)
63 #define LIBMEMCACHED_MEMCACHED_REPLACE_END()
64 #define LIBMEMCACHED_MEMCACHED_REPLACE_END_ENABLED() (0)
65 #define LIBMEMCACHED_MEMCACHED_REPLACE_START()
66 #define LIBMEMCACHED_MEMCACHED_REPLACE_START_ENABLED() (0)
67 #define LIBMEMCACHED_MEMCACHED_SERVER_ADD_END()
68 #define LIBMEMCACHED_MEMCACHED_SERVER_ADD_END_ENABLED() (0)
69 #define LIBMEMCACHED_MEMCACHED_SERVER_ADD_START()
70 #define LIBMEMCACHED_MEMCACHED_SERVER_ADD_START_ENABLED() (0)
71 #define LIBMEMCACHED_MEMCACHED_SET_END()
72 #define LIBMEMCACHED_MEMCACHED_SET_END_ENABLED() (0)
73 #define LIBMEMCACHED_MEMCACHED_SET_START()
74 #define LIBMEMCACHED_MEMCACHED_SET_START_ENABLED() (0)
78 #endif /* LIBMEMCACHED_PROBES_H */