1
2 #undef TRACEPOINT_PROVIDER
3 #define TRACEPOINT_PROVIDER osd
4
5 #undef TRACEPOINT_INCLUDE
6 #define TRACEPOINT_INCLUDE "./tracing/osd.h"
7
8 #if !defined(TRACING_OSD_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
9 #define TRACING_OSD_H
10
11 #include <lttng/tracepoint.h>
12
13 #include "include/int_types.h"
14
15 TRACEPOINT_EVENT(osd, prepare_tx_enter,
16 TP_ARGS(
17 // osd_reqid_t
18 uint8_t, type,
19 int64_t, num,
20 uint64_t, tid,
21 int32_t, inc),
22 TP_FIELDS(
23 ctf_integer(uint8_t, type, type)
24 ctf_integer(int64_t, num, num)
25 ctf_integer(uint64_t, tid, tid)
26 ctf_integer(int32_t, inc, inc)
27 )
28 )
29
30 TRACEPOINT_EVENT(osd, prepare_tx_exit,
31 TP_ARGS(
32 // osd_reqid_t
33 uint8_t, type,
34 int64_t, num,
35 uint64_t, tid,
36 int32_t, inc),
37 TP_FIELDS(
38 ctf_integer(uint8_t, type, type)
39 ctf_integer(int64_t, num, num)
40 ctf_integer(uint64_t, tid, tid)
41 ctf_integer(int32_t, inc, inc)
42 )
43 )
44
45 TRACEPOINT_EVENT(osd, ms_fast_dispatch,
46 TP_ARGS(
47 // osd_reqid_t
48 uint8_t, type,
49 int64_t, num,
50 uint64_t, tid,
51 int32_t, inc),
52 TP_FIELDS(
53 ctf_integer(uint8_t, type, type)
54 ctf_integer(int64_t, num, num)
55 ctf_integer(uint64_t, tid, tid)
56 ctf_integer(int32_t, inc, inc)
57 )
58 )
59
60 TRACEPOINT_EVENT(osd, opwq_process_start,
61 TP_ARGS(
62 // osd_reqid_t
63 uint8_t, type,
64 int64_t, num,
65 uint64_t, tid,
66 int32_t, inc),
67 TP_FIELDS(
68 ctf_integer(uint8_t, type, type)
69 ctf_integer(int64_t, num, num)
70 ctf_integer(uint64_t, tid, tid)
71 ctf_integer(int32_t, inc, inc)
72 )
73 )
74
75 TRACEPOINT_EVENT(osd, opwq_process_finish,
76 TP_ARGS(
77 // osd_reqid_t
78 uint8_t, type,
79 int64_t, num,
80 uint64_t, tid,
81 int32_t, inc),
82 TP_FIELDS(
83 ctf_integer(uint8_t, type, type)
84 ctf_integer(int64_t, num, num)
85 ctf_integer(uint64_t, tid, tid)
86 ctf_integer(int32_t, inc, inc)
87 )
88 )
89
90 TRACEPOINT_EVENT(osd, do_osd_op_pre,
91 TP_ARGS(
92 const char*, oid,
93 uint64_t, snap,
94 uint16_t, op,
95 const char*, opname,
96 uint32_t, flags),
97 TP_FIELDS(
98 ctf_string(oid, oid)
99 ctf_integer(uint64_t, snap, snap)
100 ctf_integer_hex(uint16_t, op, op)
101 ctf_string(opname, opname)
102 ctf_integer_hex(uint32_t, flags, flags)
103 )
104 )
105
106 TRACEPOINT_EVENT(osd, do_osd_op_pre_extent_cmp,
107 TP_ARGS(
108 const char*, oid,
109 uint64_t, snap,
110 uint64_t, osize,
111 uint32_t, oseq,
112 uint64_t, offset,
113 uint64_t, length,
114 uint64_t, truncate_size,
115 uint32_t, truncate_seq),
116 TP_FIELDS(
117 ctf_string(oid, oid)
118 ctf_integer(uint64_t, snap, snap)
119 ctf_integer(uint64_t, osize, osize)
120 ctf_integer(uint32_t, oseq, oseq)
121 ctf_integer(uint64_t, offset, offset)
122 ctf_integer(uint64_t, length, length)
123 ctf_integer(uint64_t, truncate_size, truncate_size)
124 ctf_integer(uint32_t, truncate_seq, truncate_seq)
125 )
126 )
127
128 TRACEPOINT_EVENT(osd, do_osd_op_pre_read,
129 TP_ARGS(
130 const char*, oid,
131 uint64_t, snap,
132 uint64_t, osize,
133 uint32_t, oseq,
134 uint64_t, offset,
135 uint64_t, length,
136 uint64_t, truncate_size,
137 uint32_t, truncate_seq),
138 TP_FIELDS(
139 ctf_string(oid, oid)
140 ctf_integer(uint64_t, snap, snap)
141 ctf_integer(uint64_t, osize, osize)
142 ctf_integer(uint32_t, oseq, oseq)
143 ctf_integer(uint64_t, offset, offset)
144 ctf_integer(uint64_t, length, length)
145 ctf_integer(uint64_t, truncate_size, truncate_size)
146 ctf_integer(uint32_t, truncate_seq, truncate_seq)
147 )
148 )
149
150 TRACEPOINT_EVENT(osd, do_osd_op_pre_checksum,
151 TP_ARGS(
152 const char*, oid,
153 uint64_t, snap,
154 uint64_t, osize,
155 uint32_t, oseq,
156 uint8_t, type,
157 uint64_t, offset,
158 uint64_t, length,
159 uint32_t, chunk_size),
160 TP_FIELDS(
161 ctf_string(oid, oid)
162 ctf_integer(uint64_t, snap, snap)
163 ctf_integer(uint64_t, osize, osize)
164 ctf_integer(uint32_t, oseq, oseq)
165 ctf_integer(uint8_t, type, type)
166 ctf_integer(uint64_t, offset, offset)
167 ctf_integer(uint64_t, length, length)
168 ctf_integer(uint32_t, chunk_size, chunk_size)
169 )
170 )
171
172 TRACEPOINT_EVENT(osd, do_osd_op_pre_mapext,
173 TP_ARGS(
174 const char*, oid,
175 uint64_t, snap,
176 uint64_t, offset,
177 uint64_t, length),
178 TP_FIELDS(
179 ctf_string(oid, oid)
180 ctf_integer(uint64_t, snap, snap)
181 ctf_integer(uint64_t, offset, offset)
182 ctf_integer(uint64_t, length, length)
183 )
184 )
185
186 TRACEPOINT_EVENT(osd, do_osd_op_pre_sparse_read,
187 TP_ARGS(
188 const char*, oid,
189 uint64_t, snap,
190 uint64_t, osize,
191 uint32_t, oseq,
192 uint64_t, offset,
193 uint64_t, length,
194 uint64_t, truncate_size,
195 uint32_t, truncate_seq),
196 TP_FIELDS(
197 ctf_string(oid, oid)
198 ctf_integer(uint64_t, snap, snap)
199 ctf_integer(uint64_t, osize, osize)
200 ctf_integer(uint32_t, oseq, oseq)
201 ctf_integer(uint64_t, offset, offset)
202 ctf_integer(uint64_t, length, length)
203 ctf_integer(uint64_t, truncate_size, truncate_size)
204 ctf_integer(uint32_t, truncate_seq, truncate_seq)
205 )
206 )
207
208 TRACEPOINT_EVENT(osd, do_osd_op_pre_call,
209 TP_ARGS(
210 const char*, oid,
211 uint64_t, snap,
212 const char*, class_name,
213 const char*, method_name),
214 TP_FIELDS(
215 ctf_string(oid, oid)
216 ctf_integer(uint64_t, snap, snap)
217 ctf_string(class_name, class_name)
218 ctf_string(method_name, method_name)
219 )
220 )
221
222 TRACEPOINT_EVENT(osd, do_osd_op_pre_stat,
223 TP_ARGS(
224 const char*, oid,
225 uint64_t, snap),
226 TP_FIELDS(
227 ctf_string(oid, oid)
228 ctf_integer(uint64_t, snap, snap)
229 )
230 )
231
232 TRACEPOINT_EVENT(osd, do_osd_op_pre_isdirty,
233 TP_ARGS(
234 const char*, oid,
235 uint64_t, snap),
236 TP_FIELDS(
237 ctf_string(oid, oid)
238 ctf_integer(uint64_t, snap, snap)
239 )
240 )
241
242 TRACEPOINT_EVENT(osd, do_osd_op_pre_undirty,
243 TP_ARGS(
244 const char*, oid,
245 uint64_t, snap),
246 TP_FIELDS(
247 ctf_string(oid, oid)
248 ctf_integer(uint64_t, snap, snap)
249 )
250 )
251
252 TRACEPOINT_EVENT(osd, do_osd_op_pre_try_flush,
253 TP_ARGS(
254 const char*, oid,
255 uint64_t, snap),
256 TP_FIELDS(
257 ctf_string(oid, oid)
258 ctf_integer(uint64_t, snap, snap)
259 )
260 )
261
262 TRACEPOINT_EVENT(osd, do_osd_op_pre_cache_flush,
263 TP_ARGS(
264 const char*, oid,
265 uint64_t, snap),
266 TP_FIELDS(
267 ctf_string(oid, oid)
268 ctf_integer(uint64_t, snap, snap)
269 )
270 )
271
272 TRACEPOINT_EVENT(osd, do_osd_op_pre_cache_evict,
273 TP_ARGS(
274 const char*, oid,
275 uint64_t, snap),
276 TP_FIELDS(
277 ctf_string(oid, oid)
278 ctf_integer(uint64_t, snap, snap)
279 )
280 )
281
282 TRACEPOINT_EVENT(osd, do_osd_op_pre_getxattr,
283 TP_ARGS(
284 const char*, oid,
285 uint64_t, snap,
286 const char*, aname),
287 TP_FIELDS(
288 ctf_string(oid, oid)
289 ctf_integer(uint64_t, snap, snap)
290 ctf_string(aname, aname)
291 )
292 )
293
294 TRACEPOINT_EVENT(osd, do_osd_op_pre_getxattrs,
295 TP_ARGS(
296 const char*, oid,
297 uint64_t, snap),
298 TP_FIELDS(
299 ctf_string(oid, oid)
300 ctf_integer(uint64_t, snap, snap)
301 )
302 )
303
304 TRACEPOINT_EVENT(osd, do_osd_op_pre_cmpxattr,
305 TP_ARGS(
306 const char*, oid,
307 uint64_t, snap,
308 const char*, aname),
309 TP_FIELDS(
310 ctf_string(oid, oid)
311 ctf_integer(uint64_t, snap, snap)
312 ctf_string(aname, aname)
313 )
314 )
315
316 TRACEPOINT_EVENT(osd, do_osd_op_pre_assert_ver,
317 TP_ARGS(
318 const char*, oid,
319 uint64_t, snap,
320 uint64_t, ver),
321 TP_FIELDS(
322 ctf_string(oid, oid)
323 ctf_integer(uint64_t, snap, snap)
324 ctf_integer(uint64_t, ver, ver)
325 )
326 )
327
328 TRACEPOINT_EVENT(osd, do_osd_op_pre_list_watchers,
329 TP_ARGS(
330 const char*, oid,
331 uint64_t, snap),
332 TP_FIELDS(
333 ctf_string(oid, oid)
334 ctf_integer(uint64_t, snap, snap)
335 )
336 )
337
338 TRACEPOINT_EVENT(osd, do_osd_op_pre_list_snaps,
339 TP_ARGS(
340 const char*, oid,
341 uint64_t, snap),
342 TP_FIELDS(
343 ctf_string(oid, oid)
344 ctf_integer(uint64_t, snap, snap)
345 )
346 )
347
348 TRACEPOINT_EVENT(osd, do_osd_op_pre_assert_src_version,
349 TP_ARGS(
350 const char*, oid,
351 uint64_t, snap,
352 uint64_t, ver),
353 TP_FIELDS(
354 ctf_string(oid, oid)
355 ctf_integer(uint64_t, snap, snap)
356 ctf_integer(uint64_t, ver, ver)
357 )
358 )
359
360 TRACEPOINT_EVENT(osd, do_osd_op_pre_notify,
361 TP_ARGS(
362 const char*, oid,
363 uint64_t, snap,
364 uint64_t, timeout),
365 TP_FIELDS(
366 ctf_string(oid, oid)
367 ctf_integer(uint64_t, snap, snap)
368 ctf_integer(uint64_t, timeout, timeout)
369 )
370 )
371
372 TRACEPOINT_EVENT(osd, do_osd_op_pre_notify_ack,
373 TP_ARGS(
374 const char*, oid,
375 uint64_t, snap,
376 uint64_t, notify_id,
377 uint64_t, watch_cookie,
378 const char*, watch_cookie_valid),
379 TP_FIELDS(
380 ctf_string(oid, oid)
381 ctf_integer(uint64_t, snap, snap)
382 ctf_integer(uint64_t, notify_id, notify_id)
383 ctf_integer(uint64_t, watch_cookie, watch_cookie)
384 ctf_string(watch_cookie_valid, watch_cookie_valid)
385 )
386 )
387
388 TRACEPOINT_EVENT(osd, do_osd_op_pre_setallochint,
389 TP_ARGS(
390 const char*, oid,
391 uint64_t, snap,
392 uint64_t, expected_object_size,
393 uint64_t, expected_write_size),
394 TP_FIELDS(
395 ctf_string(oid, oid)
396 ctf_integer(uint64_t, snap, snap)
397 ctf_integer(uint64_t, expected_object_size, expected_object_size)
398 ctf_integer(uint64_t, expected_write_size, expected_write_size)
399 )
400 )
401
402 TRACEPOINT_EVENT(osd, do_osd_op_pre_write,
403 TP_ARGS(
404 const char*, oid,
405 uint64_t, snap,
406 uint64_t, osize,
407 uint32_t, oseq,
408 uint64_t, offset,
409 uint64_t, length,
410 uint64_t, truncate_size,
411 uint32_t, truncate_seq),
412 TP_FIELDS(
413 ctf_string(oid, oid)
414 ctf_integer(uint64_t, snap, snap)
415 ctf_integer(uint64_t, osize, osize)
416 ctf_integer(uint32_t, oseq, oseq)
417 ctf_integer(uint64_t, offset, offset)
418 ctf_integer(uint64_t, length, length)
419 ctf_integer(uint64_t, truncate_size, truncate_size)
420 ctf_integer(uint32_t, truncate_seq, truncate_seq)
421 )
422 )
423
424 TRACEPOINT_EVENT(osd, do_osd_op_pre_writefull,
425 TP_ARGS(
426 const char*, oid,
427 uint64_t, snap,
428 uint64_t, osize,
429 uint64_t, offset,
430 uint64_t, length),
431 TP_FIELDS(
432 ctf_string(oid, oid)
433 ctf_integer(uint64_t, snap, snap)
434 ctf_integer(uint64_t, osize, osize)
435 ctf_integer(uint64_t, offset, offset)
436 ctf_integer(uint64_t, length, length)
437 )
438 )
439
440 TRACEPOINT_EVENT(osd, do_osd_op_pre_writesame,
441 TP_ARGS(
442 const char*, oid,
443 uint64_t, snap,
444 uint64_t, osize,
445 uint64_t, offset,
446 uint64_t, length,
447 uint64_t, data_length),
448 TP_FIELDS(
449 ctf_string(oid, oid)
450 ctf_integer(uint64_t, snap, snap)
451 ctf_integer(uint64_t, osize, osize)
452 ctf_integer(uint64_t, offset, offset)
453 ctf_integer(uint64_t, length, length)
454 ctf_integer(uint64_t, data_length, data_length)
455 )
456 )
457
458 TRACEPOINT_EVENT(osd, do_osd_op_pre_rollback,
459 TP_ARGS(
460 const char*, oid,
461 uint64_t, snap),
462 TP_FIELDS(
463 ctf_string(oid, oid)
464 ctf_integer(uint64_t, snap, snap)
465 )
466 )
467
468 TRACEPOINT_EVENT(osd, do_osd_op_pre_zero,
469 TP_ARGS(
470 const char*, oid,
471 uint64_t, snap,
472 uint64_t, offset,
473 uint64_t, length),
474 TP_FIELDS(
475 ctf_string(oid, oid)
476 ctf_integer(uint64_t, snap, snap)
477 ctf_integer(uint64_t, offset, offset)
478 ctf_integer(uint64_t, length, length)
479 )
480 )
481
482 TRACEPOINT_EVENT(osd, do_osd_op_pre_create,
483 TP_ARGS(
484 const char*, oid,
485 uint64_t, snap),
486 TP_FIELDS(
487 ctf_string(oid, oid)
488 ctf_integer(uint64_t, snap, snap)
489 )
490 )
491
492 TRACEPOINT_EVENT(osd, do_osd_op_pre_truncate,
493 TP_ARGS(
494 const char*, oid,
495 uint64_t, snap,
496 uint64_t, osize,
497 uint32_t, oseq,
498 uint64_t, offset,
499 uint64_t, length,
500 uint64_t, truncate_size,
501 uint32_t, truncate_seq),
502 TP_FIELDS(
503 ctf_string(oid, oid)
504 ctf_integer(uint64_t, snap, snap)
505 ctf_integer(uint64_t, osize, osize)
506 ctf_integer(uint32_t, oseq, oseq)
507 ctf_integer(uint64_t, offset, offset)
508 ctf_integer(uint64_t, length, length)
509 ctf_integer(uint64_t, truncate_size, truncate_size)
510 ctf_integer(uint32_t, truncate_seq, truncate_seq)
511 )
512 )
513
514 TRACEPOINT_EVENT(osd, do_osd_op_pre_delete,
515 TP_ARGS(
516 const char*, oid,
517 uint64_t, snap),
518 TP_FIELDS(
519 ctf_string(oid, oid)
520 ctf_integer(uint64_t, snap, snap)
521 )
522 )
523
524 TRACEPOINT_EVENT(osd, do_osd_op_pre_clonerange,
525 TP_ARGS(
526 const char*, oid,
527 uint64_t, snap,
528 uint64_t, offset,
529 uint64_t, length,
530 uint64_t, src_offset),
531 TP_FIELDS(
532 ctf_string(oid, oid)
533 ctf_integer(uint64_t, snap, snap)
534 ctf_integer(uint64_t, offset, offset)
535 ctf_integer(uint64_t, length, length)
536 ctf_integer(uint64_t, src_offset, src_offset)
537 )
538 )
539
540 TRACEPOINT_EVENT(osd, do_osd_op_pre_watch,
541 TP_ARGS(
542 const char*, oid,
543 uint64_t, snap,
544 uint64_t, cookie,
545 uint8_t, op),
546 TP_FIELDS(
547 ctf_string(oid, oid)
548 ctf_integer(uint64_t, snap, snap)
549 ctf_integer(uint64_t, cookie, cookie)
550 ctf_integer(uint8_t, op, op)
551 )
552 )
553
554 TRACEPOINT_EVENT(osd, do_osd_op_pre_cache_pin,
555 TP_ARGS(
556 const char*, oid,
557 uint64_t, snap),
558 TP_FIELDS(
559 ctf_string(oid, oid)
560 ctf_integer(uint64_t, snap, snap)
561 )
562 )
563
564 TRACEPOINT_EVENT(osd, do_osd_op_pre_cache_unpin,
565 TP_ARGS(
566 const char*, oid,
567 uint64_t, snap),
568 TP_FIELDS(
569 ctf_string(oid, oid)
570 ctf_integer(uint64_t, snap, snap)
571 )
572 )
573
574 TRACEPOINT_EVENT(osd, do_osd_op_pre_setxattr,
575 TP_ARGS(
576 const char*, oid,
577 uint64_t, snap,
578 const char*, aname),
579 TP_FIELDS(
580 ctf_string(oid, oid)
581 ctf_integer(uint64_t, snap, snap)
582 ctf_string(aname, aname)
583 )
584 )
585
586 TRACEPOINT_EVENT(osd, do_osd_op_pre_rmxattr,
587 TP_ARGS(
588 const char*, oid,
589 uint64_t, snap,
590 const char*, aname),
591 TP_FIELDS(
592 ctf_string(oid, oid)
593 ctf_integer(uint64_t, snap, snap)
594 ctf_string(aname, aname)
595 )
596 )
597
598 TRACEPOINT_EVENT(osd, do_osd_op_pre_append,
599 TP_ARGS(
600 const char*, oid,
601 uint64_t, snap,
602 uint64_t, osize,
603 uint32_t, oseq,
604 uint64_t, offset,
605 uint64_t, length,
606 uint64_t, truncate_size,
607 uint32_t, truncate_seq),
608 TP_FIELDS(
609 ctf_string(oid, oid)
610 ctf_integer(uint64_t, snap, snap)
611 ctf_integer(uint64_t, osize, osize)
612 ctf_integer(uint32_t, oseq, oseq)
613 ctf_integer(uint64_t, offset, offset)
614 ctf_integer(uint64_t, length, length)
615 ctf_integer(uint64_t, truncate_size, truncate_size)
616 ctf_integer(uint32_t, truncate_seq, truncate_seq)
617 )
618 )
619
620 TRACEPOINT_EVENT(osd, do_osd_op_pre_tmapget,
621 TP_ARGS(
622 const char*, oid,
623 uint64_t, snap),
624 TP_FIELDS(
625 ctf_string(oid, oid)
626 ctf_integer(uint64_t, snap, snap)
627 )
628 )
629
630 TRACEPOINT_EVENT(osd, do_osd_op_pre_tmapput,
631 TP_ARGS(
632 const char*, oid,
633 uint64_t, snap),
634 TP_FIELDS(
635 ctf_string(oid, oid)
636 ctf_integer(uint64_t, snap, snap)
637 )
638 )
639
640 TRACEPOINT_EVENT(osd, do_osd_op_pre_tmapup,
641 TP_ARGS(
642 const char*, oid,
643 uint64_t, snap),
644 TP_FIELDS(
645 ctf_string(oid, oid)
646 ctf_integer(uint64_t, snap, snap)
647 )
648 )
649
650 TRACEPOINT_EVENT(osd, do_osd_op_pre_tmap2omap,
651 TP_ARGS(
652 const char*, oid,
653 uint64_t, snap),
654 TP_FIELDS(
655 ctf_string(oid, oid)
656 ctf_integer(uint64_t, snap, snap)
657 )
658 )
659
660 TRACEPOINT_EVENT(osd, do_osd_op_pre_omapgetkeys,
661 TP_ARGS(
662 const char*, oid,
663 uint64_t, snap,
664 const char*, start_after,
665 uint64_t, max_return),
666 TP_FIELDS(
667 ctf_string(oid, oid)
668 ctf_integer(uint64_t, snap, snap)
669 ctf_string(start_after, start_after)
670 ctf_integer(uint64_t, max_return, max_return)
671 )
672 )
673
674 TRACEPOINT_EVENT(osd, do_osd_op_pre_omapgetvals,
675 TP_ARGS(
676 const char*, oid,
677 uint64_t, snap,
678 const char*, start_after,
679 uint64_t, max_return,
680 const char*, filter_prefix),
681 TP_FIELDS(
682 ctf_string(oid, oid)
683 ctf_integer(uint64_t, snap, snap)
684 ctf_string(start_after, start_after)
685 ctf_integer(uint64_t, max_return, max_return)
686 ctf_string(filter_prefix, filter_prefix)
687 )
688 )
689
690 TRACEPOINT_EVENT(osd, do_osd_op_pre_omapgetheader,
691 TP_ARGS(
692 const char*, oid,
693 uint64_t, snap),
694 TP_FIELDS(
695 ctf_string(oid, oid)
696 ctf_integer(uint64_t, snap, snap)
697 )
698 )
699
700 TRACEPOINT_EVENT(osd, do_osd_op_pre_omapgetvalsbykeys,
701 TP_ARGS(
702 const char*, oid,
703 uint64_t, snap,
704 const char*, keys),
705 TP_FIELDS(
706 ctf_string(oid, oid)
707 ctf_integer(uint64_t, snap, snap)
708 ctf_string(keys, keys)
709 )
710 )
711
712 TRACEPOINT_EVENT(osd, do_osd_op_pre_omap_cmp,
713 TP_ARGS(
714 const char*, oid,
715 uint64_t, snap,
716 const char*, keys),
717 TP_FIELDS(
718 ctf_string(oid, oid)
719 ctf_integer(uint64_t, snap, snap)
720 ctf_string(keys, keys)
721 )
722 )
723
724 TRACEPOINT_EVENT(osd, do_osd_op_pre_omapsetvals,
725 TP_ARGS(
726 const char*, oid,
727 uint64_t, snap),
728 TP_FIELDS(
729 ctf_string(oid, oid)
730 ctf_integer(uint64_t, snap, snap)
731 )
732 )
733
734 TRACEPOINT_EVENT(osd, do_osd_op_pre_omapsetheader,
735 TP_ARGS(
736 const char*, oid,
737 uint64_t, snap),
738 TP_FIELDS(
739 ctf_string(oid, oid)
740 ctf_integer(uint64_t, snap, snap)
741 )
742 )
743
744 TRACEPOINT_EVENT(osd, do_osd_op_pre_omapclear,
745 TP_ARGS(
746 const char*, oid,
747 uint64_t, snap),
748 TP_FIELDS(
749 ctf_string(oid, oid)
750 ctf_integer(uint64_t, snap, snap)
751 )
752 )
753
754 TRACEPOINT_EVENT(osd, do_osd_op_pre_omaprmkeys,
755 TP_ARGS(
756 const char*, oid,
757 uint64_t, snap),
758 TP_FIELDS(
759 ctf_string(oid, oid)
760 ctf_integer(uint64_t, snap, snap)
761 )
762 )
763
764 TRACEPOINT_EVENT(osd, do_osd_op_pre_omaprmkeyrange,
765 TP_ARGS(
766 const char*, oid,
767 uint64_t, snap),
768 TP_FIELDS(
769 ctf_string(oid, oid)
770 ctf_integer(uint64_t, snap, snap)
771 )
772 )
773
774 TRACEPOINT_EVENT(osd, do_osd_op_pre_copy_get_classic,
775 TP_ARGS(
776 const char*, oid,
777 uint64_t, snap),
778 TP_FIELDS(
779 ctf_string(oid, oid)
780 ctf_integer(uint64_t, snap, snap)
781 )
782 )
783
784 TRACEPOINT_EVENT(osd, do_osd_op_pre_copy_get,
785 TP_ARGS(
786 const char*, oid,
787 uint64_t, snap),
788 TP_FIELDS(
789 ctf_string(oid, oid)
790 ctf_integer(uint64_t, snap, snap)
791 )
792 )
793
794 TRACEPOINT_EVENT(osd, do_osd_op_pre_copy_from,
795 TP_ARGS(
796 const char*, oid,
797 uint64_t, snap,
798 const char*, src_name,
799 int64_t, src_pool,
800 const char*, src_key,
801 const char*, src_nspace,
802 int64_t, src_hash,
803 uint64_t, src_snapid,
804 uint64_t, src_version),
805 TP_FIELDS(
806 ctf_string(oid, oid)
807 ctf_integer(uint64_t, snap, snap)
808 ctf_string(src_name, src_name)
809 ctf_integer(int64_t, src_pool, src_pool)
810 ctf_string(src_key, src_key)
811 ctf_string(src_nspace, src_nspace)
812 ctf_integer(int64_t, src_hash, src_hash)
813 ctf_integer(uint64_t, src_snapid, src_snapid)
814 ctf_integer(uint64_t, src_version, src_version)
815 )
816 )
817
818 TRACEPOINT_EVENT(osd, do_osd_op_pre_unknown,
819 TP_ARGS(
820 const char*, oid,
821 uint64_t, snap,
822 uint16_t, op,
823 const char*, opname),
824 TP_FIELDS(
825 ctf_string(oid, oid)
826 ctf_integer(uint64_t, snap, snap)
827 ctf_integer_hex(uint16_t, op, op)
828 ctf_string(opname, opname)
829 )
830 )
831
(1) Event unsigned_compare: |
This less-than-zero comparison of an unsigned value is never true. "18446744073709551615UL < 0UL". |
(2) Event unsigned_compare: |
This less-than-zero comparison of an unsigned value is never true. "4294967295U < 0U". |
832 TRACEPOINT_EVENT(osd, do_osd_op_post,
833 TP_ARGS(
834 const char*, oid,
835 uint64_t, snap,
836 uint16_t, op,
837 const char*, opname,
838 uint32_t, flags,
839 int, result),
840 TP_FIELDS(
841 ctf_string(oid, oid)
842 ctf_integer(uint64_t, snap, snap)
843 ctf_integer_hex(uint16_t, op, op)
844 ctf_string(opname, opname)
845 ctf_integer_hex(uint32_t, flags, flags)
846 ctf_integer_hex(int, result, result)
847 )
848 )
849
850 #endif /* TRACING_OSD_H */
851
852 #include <lttng/tracepoint-event.h>
853