move repository from m6w6 to awesomized
[m6w6/libmemcached] / src / libmemcached / libmemcached_probes.h
1 /*
2 +--------------------------------------------------------------------+
3 | libmemcached - C/C++ Client Library for memcached |
4 +--------------------------------------------------------------------+
5 | Redistribution and use in source and binary forms, with or without |
6 | modification, are permitted under the terms of the BSD license. |
7 | You should have received a copy of the license in a bundled file |
8 | named LICENSE; in case you did not receive a copy you can review |
9 | the terms online at: https://opensource.org/licenses/BSD-3-Clause |
10 +--------------------------------------------------------------------+
11 | Copyright (c) 2006-2014 Brian Aker https://datadifferential.com/ |
12 | Copyright (c) 2020-2021 Michael Wallner https://awesome.co/ |
13 +--------------------------------------------------------------------+
14 */
15
16 #pragma once
17
18 /*
19 * This file contains the definition of the various probes supported by
20 * libmemcached. Currently it only support DTRACE, but just create an
21 * implementation of the following macros to create your own sort of
22 * probing :)
23 */
24
25 #ifdef HAVE_DTRACE
26 /*
27 * Create the DTrace probes on the system using it (to support both Solaris
28 * and MacOS X
29 */
30 # include "libmemcached/dtrace_probes.h"
31
32 #else
33 /*
34 * Provide dummy macros so that we don't need to clutter the code with
35 * ifdefs when we want to use the probes.
36 */
37
38 # define LIBMEMCACHED_MEMCACHED_ADD_END()
39 # define LIBMEMCACHED_MEMCACHED_ADD_END_ENABLED() (0)
40 # define LIBMEMCACHED_MEMCACHED_ADD_START()
41 # define LIBMEMCACHED_MEMCACHED_ADD_START_ENABLED() (0)
42 # define LIBMEMCACHED_MEMCACHED_CONNECT_END()
43 # define LIBMEMCACHED_MEMCACHED_CONNECT_END_ENABLED() (0)
44 # define LIBMEMCACHED_MEMCACHED_CONNECT_START()
45 # define LIBMEMCACHED_MEMCACHED_CONNECT_START_ENABLED() (0)
46 # define LIBMEMCACHED_MEMCACHED_DECREMENT_END()
47 # define LIBMEMCACHED_MEMCACHED_DECREMENT_END_ENABLED() (0)
48 # define LIBMEMCACHED_MEMCACHED_DECREMENT_START()
49 # define LIBMEMCACHED_MEMCACHED_DECREMENT_START_ENABLED() (0)
50 # define LIBMEMCACHED_MEMCACHED_DECREMENT_WITH_INITIAL_END()
51 # define LIBMEMCACHED_MEMCACHED_DECREMENT_WITH_INITIAL_END_ENABLED() (0)
52 # define LIBMEMCACHED_MEMCACHED_DECREMENT_WITH_INITIAL_START()
53 # define LIBMEMCACHED_MEMCACHED_DECREMENT_WITH_INITIAL_START_ENABLED() (0)
54 # define LIBMEMCACHED_MEMCACHED_DELETE_END()
55 # define LIBMEMCACHED_MEMCACHED_DELETE_END_ENABLED() (0)
56 # define LIBMEMCACHED_MEMCACHED_DELETE_START()
57 # define LIBMEMCACHED_MEMCACHED_DELETE_START_ENABLED() (0)
58 # define LIBMEMCACHED_MEMCACHED_FLUSH_END()
59 # define LIBMEMCACHED_MEMCACHED_FLUSH_END_ENABLED() (0)
60 # define LIBMEMCACHED_MEMCACHED_FLUSH_START()
61 # define LIBMEMCACHED_MEMCACHED_FLUSH_START_ENABLED() (0)
62 # define LIBMEMCACHED_MEMCACHED_GET_END()
63 # define LIBMEMCACHED_MEMCACHED_GET_END_ENABLED() (0)
64 # define LIBMEMCACHED_MEMCACHED_GET_START()
65 # define LIBMEMCACHED_MEMCACHED_GET_START_ENABLED() (0)
66 # define LIBMEMCACHED_MEMCACHED_TOUCH_END()
67 # define LIBMEMCACHED_MEMCACHED_TOUCH_END_ENABLED() (0)
68 # define LIBMEMCACHED_MEMCACHED_TOUCH_START()
69 # define LIBMEMCACHED_MEMCACHED_TOUCH_START_ENABLED() (0)
70 # define LIBMEMCACHED_MEMCACHED_INCREMENT_END()
71 # define LIBMEMCACHED_MEMCACHED_INCREMENT_END_ENABLED() (0)
72 # define LIBMEMCACHED_MEMCACHED_INCREMENT_START()
73 # define LIBMEMCACHED_MEMCACHED_INCREMENT_START_ENABLED() (0)
74 # define LIBMEMCACHED_MEMCACHED_INCREMENT_WITH_INITIAL_END()
75 # define LIBMEMCACHED_MEMCACHED_INCREMENT_WITH_INITIAL_END_ENABLED() (0)
76 # define LIBMEMCACHED_MEMCACHED_INCREMENT_WITH_INITIAL_START()
77 # define LIBMEMCACHED_MEMCACHED_INCREMENT_WITH_INITIAL_START_ENABLED() (0)
78 # define LIBMEMCACHED_MEMCACHED_MGET_END()
79 # define LIBMEMCACHED_MEMCACHED_MGET_END_ENABLED() (0)
80 # define LIBMEMCACHED_MEMCACHED_MGET_START()
81 # define LIBMEMCACHED_MEMCACHED_MGET_START_ENABLED() (0)
82 # define LIBMEMCACHED_MEMCACHED_REPLACE_END()
83 # define LIBMEMCACHED_MEMCACHED_REPLACE_END_ENABLED() (0)
84 # define LIBMEMCACHED_MEMCACHED_REPLACE_START()
85 # define LIBMEMCACHED_MEMCACHED_REPLACE_START_ENABLED() (0)
86 # define LIBMEMCACHED_MEMCACHED_SERVER_ADD_END()
87 # define LIBMEMCACHED_MEMCACHED_SERVER_ADD_END_ENABLED() (0)
88 # define LIBMEMCACHED_MEMCACHED_SERVER_ADD_START()
89 # define LIBMEMCACHED_MEMCACHED_SERVER_ADD_START_ENABLED() (0)
90 # define LIBMEMCACHED_MEMCACHED_SET_END()
91 # define LIBMEMCACHED_MEMCACHED_SET_END_ENABLED() (0)
92 # define LIBMEMCACHED_MEMCACHED_SET_START()
93 # define LIBMEMCACHED_MEMCACHED_SET_START_ENABLED() (0)
94
95 #endif