~yolanda.robla/ubuntu/trusty/memcached/add_distribution

« back to all changes in this revision

Viewing changes to memcached_dtrace.d

  • Committer: Bazaar Package Importer
  • Author(s): David Martínez Moreno
  • Date: 2009-08-01 23:26:45 UTC
  • mto: (3.3.1 squeeze) (1.4.2 upstream)
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20090801232645-g57xdaf3zal53qcl
Tags: upstream-1.4.0
Import upstream version 1.4.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
102
102
    * wasting cpu capacity.
103
103
    *
104
104
    * @param key the key searched for
 
105
    * @param keylen lenght of the key
105
106
    * @param depth the depth in the list of hash table
106
107
    */
107
 
   probe assoc__find(const char *key, int depth);
 
108
   probe assoc__find(const char *key, int keylen, int depth);
108
109
 
109
110
   /**
110
111
    * Fired when a new item has been inserted.
111
112
    * @param key the key just inserted
 
113
    * @param keylen lenght of the key
112
114
    * @param nokeys the total number of keys currently being stored,
113
115
    *               including the key for which insert was called.
114
116
    */
115
 
   probe assoc__insert(const char *key, int nokeys);
 
117
   probe assoc__insert(const char *key, int keylen, int nokeys);
116
118
 
117
119
   /**
118
120
    * Fired when a new item has been removed.
119
121
    * @param key the key just deleted
 
122
    * @param keylen lenght of the key
120
123
    * @param nokeys the total number of keys currently being stored,
121
124
    *               excluding the key for which delete was called.
122
125
    */
123
 
   probe assoc__delete(const char *key, int nokeys);
 
126
   probe assoc__delete(const char *key, int keylen, int nokeys);
124
127
 
125
128
   /**
126
129
    * Fired when an item is being linked in the cache
127
130
    * @param key the items key
 
131
    * @param keylen lenght of the key
128
132
    * @param size the size of the data
129
133
    */
130
 
   probe item__link(const char *key, int size);
 
134
   probe item__link(const char *key, int keylen, int size);
131
135
 
132
136
   /**
133
137
    * Fired when an item is being deleted
134
138
    * @param key the items key
 
139
    * @param keylen lenght of the key
135
140
    * @param size the size of the data
136
141
    */
137
 
   probe item__unlink(const char *key, int size);
 
142
   probe item__unlink(const char *key, int keylen, int size);
138
143
 
139
144
   /**
140
145
    * Fired when the refcount for an item is reduced
141
146
    * @param key the items key
 
147
    * @param keylen lenght of the key
142
148
    * @param size the size of the data
143
149
    */
144
 
   probe item__remove(const char *key, int size);
 
150
   probe item__remove(const char *key, int keylen, int size);
145
151
 
146
152
   /**
147
153
    * Fired when the "last refenced" time is updated
148
154
    * @param key the items key
 
155
    * @param keylen lenght of the key
149
156
    * @param size the size of the data
150
157
    */
151
 
   probe item__update(const char *key, int size);
 
158
   probe item__update(const char *key, int keylen, int size);
152
159
 
153
160
   /**
154
161
    * Fired when an item is bein replaced with another item
155
162
    * @param oldkey the key of the item to replace
 
163
    * @param oldkeylen the length of the old key
156
164
    * @param oldsize the size of the old item
157
165
    * @param newkey the key of the new item
 
166
    * @param newkeylen the length of the new key
158
167
    * @param newsize the size of the new item
159
168
    */
160
 
   probe item__replace(const char *oldkey, int oldsize, const char *newkey, int newsize);
 
169
   probe item__replace(const char *oldkey, int oldkeylen, int oldsize,
 
170
                       const char *newkey, int newkeylen, int newsize);
161
171
 
162
172
   /**
163
173
    * Fired when the processing of a command starts
179
189
    * Fired for a get-command
180
190
    * @param connid connection id
181
191
    * @param key requested key
182
 
    * @param size size of the key's data (or -1 if not found)
183
 
    */
184
 
   probe command__get(int connid, const char *key, int size);
185
 
 
186
 
   /**
187
 
    * Fired for a gets command
188
 
    * @param connid connection id
189
 
    * @param key requested key
 
192
    * @param keylen lenght of the key
190
193
    * @param size size of the key's data (or -1 if not found)
191
194
    * @param casid the casid for the item
192
195
    */
193
 
   probe command__gets(int connid, const char *key, int size, int64_t casid);
 
196
   probe command__get(int connid, const char *key, int keylen, int size, int64_t casid);
194
197
 
195
198
   /**
196
199
    * Fired for a add-command
197
200
    * @param connid connection id
198
201
    * @param key requested key
 
202
    * @param keylen lenght of the key
199
203
    * @param size the new size of the key's data (or -1 if not found)
 
204
    * @param casid the casid for the item
200
205
    */
201
 
   probe command__add(int connid, const char *key, int size);
 
206
   probe command__add(int connid, const char *key, int keylen, int size, int64_t casid);
202
207
 
203
208
   /**
204
209
    * Fired for a set-command
205
210
    * @param connid connection id
206
211
    * @param key requested key
 
212
    * @param keylen lenght of the key
207
213
    * @param size the new size of the key's data (or -1 if not found)
 
214
    * @param casid the casid for the item
208
215
    */
209
 
   probe command__set(int connid, const char *key, int size);
 
216
   probe command__set(int connid, const char *key, int keylen, int size, int64_t casid);
210
217
 
211
218
   /**
212
219
    * Fired for a replace-command
213
220
    * @param connid connection id
214
221
    * @param key requested key
 
222
    * @param keylen lenght of the key
215
223
    * @param size the new size of the key's data (or -1 if not found)
 
224
    * @param casid the casid for the item
216
225
    */
217
 
   probe command__replace(int connid, const char *key, int size);
 
226
   probe command__replace(int connid, const char *key, int keylen, int size, int64_t casid);
218
227
 
219
228
   /**
220
229
    * Fired for a prepend-command
221
230
    * @param connid connection id
222
231
    * @param key requested key
 
232
    * @param keylen lenght of the key
223
233
    * @param size the new size of the key's data (or -1 if not found)
 
234
    * @param casid the casid for the item
224
235
    */
225
 
   probe command__prepend(int connid, const char *key, int size);
 
236
   probe command__prepend(int connid, const char *key, int keylen, int size, int64_t casid);
226
237
 
227
238
   /**
228
239
    * Fired for a append-command
229
240
    * @param connid connection id
230
241
    * @param key requested key
 
242
    * @param keylen lenght of the key
231
243
    * @param size the new size of the key's data (or -1 if not found)
 
244
    * @param casid the casid for the item
232
245
    */
233
 
   probe command__append(int connid, const char *key, int size);
 
246
   probe command__append(int connid, const char *key, int keylen, int size, int64_t casid);
234
247
 
235
248
   /**
236
249
    * Fired for a cas-command
237
250
    * @param connid connection id
238
251
    * @param key requested key
 
252
    * @param keylen lenght of the key
239
253
    * @param size size of the key's data (or -1 if not found)
240
254
    * @param casid the cas id requested
241
255
    */
242
 
   probe command__cas(int connid, const char *key, int size, int64_t casid);
 
256
   probe command__cas(int connid, const char *key, int keylen, int size, int64_t casid);
243
257
 
244
258
   /**
245
259
    * Fired for incr command
246
260
    * @param connid connection id
247
261
    * @param key the requested key
 
262
    * @param keylen lenght of the key
248
263
    * @param val the new value
249
264
    */
250
 
   probe command__incr(int connid, const char *key, int64_t val);
 
265
   probe command__incr(int connid, const char *key, int keylen, int64_t val);
251
266
 
252
267
   /**
253
268
    * Fired for decr command
254
269
    * @param connid connection id
255
270
    * @param key the requested key
 
271
    * @param keylen lenght of the key
256
272
    * @param val the new value
257
273
    */
258
 
   probe command__decr(int connid, const char *key, int64_t val);
 
274
   probe command__decr(int connid, const char *key, int keylen, int64_t val);
259
275
 
260
276
   /**
261
277
    * Fired for a delete command
262
278
    * @param connid connection id
263
279
    * @param key the requested key
264
 
    * @param exptime the expiry time
 
280
    * @param keylen lenght of the key
265
281
    */
266
 
   probe command__delete(int connid, const char *key, long exptime);
 
282
   probe command__delete(int connid, const char *key, int keylen);
267
283
 
268
284
};
269
285