dlm.h (81889255c2e6ed1eef448375b5d6330a2f1453de) | dlm.h (17827754e503d6c72b05a1c4603469ec9bf35d48) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2#undef TRACE_SYSTEM 3#define TRACE_SYSTEM dlm 4 5#if !defined(_TRACE_DLM_H) || defined(TRACE_HEADER_MULTI_READ) 6#define _TRACE_DLM_H 7 8#include <linux/dlm.h> --- 328 unchanged lines hidden (view full) --- 337 show_lock_flags(__entry->flags), __entry->error, 338 __print_hex_str(__get_dynamic_array(res_name), 339 __get_dynamic_array_len(res_name))) 340 341); 342 343DECLARE_EVENT_CLASS(dlm_rcom_template, 344 | 1/* SPDX-License-Identifier: GPL-2.0 */ 2#undef TRACE_SYSTEM 3#define TRACE_SYSTEM dlm 4 5#if !defined(_TRACE_DLM_H) || defined(TRACE_HEADER_MULTI_READ) 6#define _TRACE_DLM_H 7 8#include <linux/dlm.h> --- 328 unchanged lines hidden (view full) --- 337 show_lock_flags(__entry->flags), __entry->error, 338 __print_hex_str(__get_dynamic_array(res_name), 339 __get_dynamic_array_len(res_name))) 340 341); 342 343DECLARE_EVENT_CLASS(dlm_rcom_template, 344 |
345 TP_PROTO(uint32_t h_seq, const struct dlm_rcom *rc), | 345 TP_PROTO(uint32_t dst, uint32_t h_seq, const struct dlm_rcom *rc), |
346 | 346 |
347 TP_ARGS(h_seq, rc), | 347 TP_ARGS(dst, h_seq, rc), |
348 349 TP_STRUCT__entry( | 348 349 TP_STRUCT__entry( |
350 __field(uint32_t, dst) |
|
350 __field(uint32_t, h_seq) 351 __field(uint32_t, h_version) 352 __field(uint32_t, h_lockspace) 353 __field(uint32_t, h_nodeid) 354 __field(uint16_t, h_length) 355 __field(uint8_t, h_cmd) 356 __field(uint32_t, rc_type) 357 __field(int32_t, rc_result) 358 __field(uint64_t, rc_id) 359 __field(uint64_t, rc_seq) 360 __field(uint64_t, rc_seq_reply) 361 __dynamic_array(unsigned char, rc_buf, 362 le16_to_cpu(rc->rc_header.h_length) - sizeof(*rc)) 363 ), 364 365 TP_fast_assign( | 351 __field(uint32_t, h_seq) 352 __field(uint32_t, h_version) 353 __field(uint32_t, h_lockspace) 354 __field(uint32_t, h_nodeid) 355 __field(uint16_t, h_length) 356 __field(uint8_t, h_cmd) 357 __field(uint32_t, rc_type) 358 __field(int32_t, rc_result) 359 __field(uint64_t, rc_id) 360 __field(uint64_t, rc_seq) 361 __field(uint64_t, rc_seq_reply) 362 __dynamic_array(unsigned char, rc_buf, 363 le16_to_cpu(rc->rc_header.h_length) - sizeof(*rc)) 364 ), 365 366 TP_fast_assign( |
367 __entry->dst = dst; |
|
366 __entry->h_seq = h_seq; 367 __entry->h_version = le32_to_cpu(rc->rc_header.h_version); 368 __entry->h_lockspace = le32_to_cpu(rc->rc_header.u.h_lockspace); 369 __entry->h_nodeid = le32_to_cpu(rc->rc_header.h_nodeid); 370 __entry->h_length = le16_to_cpu(rc->rc_header.h_length); 371 __entry->h_cmd = rc->rc_header.h_cmd; 372 __entry->rc_type = le32_to_cpu(rc->rc_type); 373 __entry->rc_result = le32_to_cpu(rc->rc_result); 374 __entry->rc_id = le64_to_cpu(rc->rc_id); 375 __entry->rc_seq = le64_to_cpu(rc->rc_seq); 376 __entry->rc_seq_reply = le64_to_cpu(rc->rc_seq_reply); 377 memcpy(__get_dynamic_array(rc_buf), rc->rc_buf, 378 __get_dynamic_array_len(rc_buf)); 379 ), 380 | 368 __entry->h_seq = h_seq; 369 __entry->h_version = le32_to_cpu(rc->rc_header.h_version); 370 __entry->h_lockspace = le32_to_cpu(rc->rc_header.u.h_lockspace); 371 __entry->h_nodeid = le32_to_cpu(rc->rc_header.h_nodeid); 372 __entry->h_length = le16_to_cpu(rc->rc_header.h_length); 373 __entry->h_cmd = rc->rc_header.h_cmd; 374 __entry->rc_type = le32_to_cpu(rc->rc_type); 375 __entry->rc_result = le32_to_cpu(rc->rc_result); 376 __entry->rc_id = le64_to_cpu(rc->rc_id); 377 __entry->rc_seq = le64_to_cpu(rc->rc_seq); 378 __entry->rc_seq_reply = le64_to_cpu(rc->rc_seq_reply); 379 memcpy(__get_dynamic_array(rc_buf), rc->rc_buf, 380 __get_dynamic_array_len(rc_buf)); 381 ), 382 |
381 TP_printk("h_seq=%u h_version=%s h_lockspace=%u h_nodeid=%u " | 383 TP_printk("dst=%u h_seq=%u h_version=%s h_lockspace=%u h_nodeid=%u " |
382 "h_length=%u h_cmd=%s rc_type=%s rc_result=%d " 383 "rc_id=%llu rc_seq=%llu rc_seq_reply=%llu " | 384 "h_length=%u h_cmd=%s rc_type=%s rc_result=%d " 385 "rc_id=%llu rc_seq=%llu rc_seq_reply=%llu " |
384 "rc_buf=0x%s", __entry->h_seq, | 386 "rc_buf=0x%s", __entry->dst, __entry->h_seq, |
385 show_message_version(__entry->h_version), 386 __entry->h_lockspace, __entry->h_nodeid, __entry->h_length, 387 show_header_cmd(__entry->h_cmd), 388 show_rcom_type(__entry->rc_type), 389 __entry->rc_result, __entry->rc_id, __entry->rc_seq, 390 __entry->rc_seq_reply, 391 __print_hex_str(__get_dynamic_array(rc_buf), 392 __get_dynamic_array_len(rc_buf))) 393 394); 395 396DEFINE_EVENT(dlm_rcom_template, dlm_send_rcom, | 387 show_message_version(__entry->h_version), 388 __entry->h_lockspace, __entry->h_nodeid, __entry->h_length, 389 show_header_cmd(__entry->h_cmd), 390 show_rcom_type(__entry->rc_type), 391 __entry->rc_result, __entry->rc_id, __entry->rc_seq, 392 __entry->rc_seq_reply, 393 __print_hex_str(__get_dynamic_array(rc_buf), 394 __get_dynamic_array_len(rc_buf))) 395 396); 397 398DEFINE_EVENT(dlm_rcom_template, dlm_send_rcom, |
397 TP_PROTO(uint32_t h_seq, const struct dlm_rcom *rc), 398 TP_ARGS(h_seq, rc)); | 399 TP_PROTO(uint32_t dst, uint32_t h_seq, const struct dlm_rcom *rc), 400 TP_ARGS(dst, h_seq, rc)); |
399 400DEFINE_EVENT(dlm_rcom_template, dlm_recv_rcom, | 401 402DEFINE_EVENT(dlm_rcom_template, dlm_recv_rcom, |
401 TP_PROTO(uint32_t h_seq, const struct dlm_rcom *rc), 402 TP_ARGS(h_seq, rc)); | 403 TP_PROTO(uint32_t dst, uint32_t h_seq, const struct dlm_rcom *rc), 404 TP_ARGS(dst, h_seq, rc)); |
403 404TRACE_EVENT(dlm_send_message, 405 | 405 406TRACE_EVENT(dlm_send_message, 407 |
406 TP_PROTO(uint32_t h_seq, const struct dlm_message *ms, | 408 TP_PROTO(uint32_t dst, uint32_t h_seq, const struct dlm_message *ms, |
407 const void *name, int namelen), 408 | 409 const void *name, int namelen), 410 |
409 TP_ARGS(h_seq, ms, name, namelen), | 411 TP_ARGS(dst, h_seq, ms, name, namelen), |
410 411 TP_STRUCT__entry( | 412 413 TP_STRUCT__entry( |
414 __field(uint32_t, dst) |
|
412 __field(uint32_t, h_seq) 413 __field(uint32_t, h_version) 414 __field(uint32_t, h_lockspace) 415 __field(uint32_t, h_nodeid) 416 __field(uint16_t, h_length) 417 __field(uint8_t, h_cmd) 418 __field(uint32_t, m_type) 419 __field(uint32_t, m_nodeid) --- 14 unchanged lines hidden (view full) --- 434 __field(int32_t, m_asts) 435 __field(int32_t, m_result) 436 __dynamic_array(unsigned char, m_extra, 437 le16_to_cpu(ms->m_header.h_length) - sizeof(*ms)) 438 __dynamic_array(unsigned char, res_name, namelen) 439 ), 440 441 TP_fast_assign( | 415 __field(uint32_t, h_seq) 416 __field(uint32_t, h_version) 417 __field(uint32_t, h_lockspace) 418 __field(uint32_t, h_nodeid) 419 __field(uint16_t, h_length) 420 __field(uint8_t, h_cmd) 421 __field(uint32_t, m_type) 422 __field(uint32_t, m_nodeid) --- 14 unchanged lines hidden (view full) --- 437 __field(int32_t, m_asts) 438 __field(int32_t, m_result) 439 __dynamic_array(unsigned char, m_extra, 440 le16_to_cpu(ms->m_header.h_length) - sizeof(*ms)) 441 __dynamic_array(unsigned char, res_name, namelen) 442 ), 443 444 TP_fast_assign( |
445 __entry->dst = dst; |
|
442 __entry->h_seq = h_seq; 443 __entry->h_version = le32_to_cpu(ms->m_header.h_version); 444 __entry->h_lockspace = le32_to_cpu(ms->m_header.u.h_lockspace); 445 __entry->h_nodeid = le32_to_cpu(ms->m_header.h_nodeid); 446 __entry->h_length = le16_to_cpu(ms->m_header.h_length); 447 __entry->h_cmd = ms->m_header.h_cmd; 448 __entry->m_type = le32_to_cpu(ms->m_type); 449 __entry->m_nodeid = le32_to_cpu(ms->m_nodeid); --- 14 unchanged lines hidden (view full) --- 464 __entry->m_asts = le32_to_cpu(ms->m_asts); 465 __entry->m_result = le32_to_cpu(ms->m_result); 466 memcpy(__get_dynamic_array(m_extra), ms->m_extra, 467 __get_dynamic_array_len(m_extra)); 468 memcpy(__get_dynamic_array(res_name), name, 469 __get_dynamic_array_len(res_name)); 470 ), 471 | 446 __entry->h_seq = h_seq; 447 __entry->h_version = le32_to_cpu(ms->m_header.h_version); 448 __entry->h_lockspace = le32_to_cpu(ms->m_header.u.h_lockspace); 449 __entry->h_nodeid = le32_to_cpu(ms->m_header.h_nodeid); 450 __entry->h_length = le16_to_cpu(ms->m_header.h_length); 451 __entry->h_cmd = ms->m_header.h_cmd; 452 __entry->m_type = le32_to_cpu(ms->m_type); 453 __entry->m_nodeid = le32_to_cpu(ms->m_nodeid); --- 14 unchanged lines hidden (view full) --- 468 __entry->m_asts = le32_to_cpu(ms->m_asts); 469 __entry->m_result = le32_to_cpu(ms->m_result); 470 memcpy(__get_dynamic_array(m_extra), ms->m_extra, 471 __get_dynamic_array_len(m_extra)); 472 memcpy(__get_dynamic_array(res_name), name, 473 __get_dynamic_array_len(res_name)); 474 ), 475 |
472 TP_printk("h_seq=%u h_version=%s h_lockspace=%u h_nodeid=%u " | 476 TP_printk("dst=%u h_seq=%u h_version=%s h_lockspace=%u h_nodeid=%u " |
473 "h_length=%u h_cmd=%s m_type=%s m_nodeid=%u " 474 "m_pid=%u m_lkid=%u m_remid=%u m_parent_lkid=%u " 475 "m_parent_remid=%u m_exflags=%s m_sbflags=%s m_flags=%s " 476 "m_lvbseq=%u m_hash=%u m_status=%d m_grmode=%s " 477 "m_rqmode=%s m_bastmode=%s m_asts=%d m_result=%d " | 477 "h_length=%u h_cmd=%s m_type=%s m_nodeid=%u " 478 "m_pid=%u m_lkid=%u m_remid=%u m_parent_lkid=%u " 479 "m_parent_remid=%u m_exflags=%s m_sbflags=%s m_flags=%s " 480 "m_lvbseq=%u m_hash=%u m_status=%d m_grmode=%s " 481 "m_rqmode=%s m_bastmode=%s m_asts=%d m_result=%d " |
478 "m_extra=0x%s res_name=0x%s", | 482 "m_extra=0x%s res_name=0x%s", __entry->dst, |
479 __entry->h_seq, show_message_version(__entry->h_version), 480 __entry->h_lockspace, __entry->h_nodeid, __entry->h_length, 481 show_header_cmd(__entry->h_cmd), 482 show_message_type(__entry->m_type), 483 __entry->m_nodeid, __entry->m_pid, __entry->m_lkid, 484 __entry->m_remid, __entry->m_parent_lkid, 485 __entry->m_parent_remid, show_lock_flags(__entry->m_exflags), 486 show_dlm_sb_flags(__entry->m_sbflags), --- 7 unchanged lines hidden (view full) --- 494 __get_dynamic_array_len(m_extra)), 495 __print_hex_str(__get_dynamic_array(res_name), 496 __get_dynamic_array_len(res_name))) 497 498); 499 500TRACE_EVENT(dlm_recv_message, 501 | 483 __entry->h_seq, show_message_version(__entry->h_version), 484 __entry->h_lockspace, __entry->h_nodeid, __entry->h_length, 485 show_header_cmd(__entry->h_cmd), 486 show_message_type(__entry->m_type), 487 __entry->m_nodeid, __entry->m_pid, __entry->m_lkid, 488 __entry->m_remid, __entry->m_parent_lkid, 489 __entry->m_parent_remid, show_lock_flags(__entry->m_exflags), 490 show_dlm_sb_flags(__entry->m_sbflags), --- 7 unchanged lines hidden (view full) --- 498 __get_dynamic_array_len(m_extra)), 499 __print_hex_str(__get_dynamic_array(res_name), 500 __get_dynamic_array_len(res_name))) 501 502); 503 504TRACE_EVENT(dlm_recv_message, 505 |
502 TP_PROTO(uint32_t h_seq, const struct dlm_message *ms), | 506 TP_PROTO(uint32_t dst, uint32_t h_seq, const struct dlm_message *ms), |
503 | 507 |
504 TP_ARGS(h_seq, ms), | 508 TP_ARGS(dst, h_seq, ms), |
505 506 TP_STRUCT__entry( | 509 510 TP_STRUCT__entry( |
511 __field(uint32_t, dst) |
|
507 __field(uint32_t, h_seq) 508 __field(uint32_t, h_version) 509 __field(uint32_t, h_lockspace) 510 __field(uint32_t, h_nodeid) 511 __field(uint16_t, h_length) 512 __field(uint8_t, h_cmd) 513 __field(uint32_t, m_type) 514 __field(uint32_t, m_nodeid) --- 13 unchanged lines hidden (view full) --- 528 __field(int32_t, m_bastmode) 529 __field(int32_t, m_asts) 530 __field(int32_t, m_result) 531 __dynamic_array(unsigned char, m_extra, 532 le16_to_cpu(ms->m_header.h_length) - sizeof(*ms)) 533 ), 534 535 TP_fast_assign( | 512 __field(uint32_t, h_seq) 513 __field(uint32_t, h_version) 514 __field(uint32_t, h_lockspace) 515 __field(uint32_t, h_nodeid) 516 __field(uint16_t, h_length) 517 __field(uint8_t, h_cmd) 518 __field(uint32_t, m_type) 519 __field(uint32_t, m_nodeid) --- 13 unchanged lines hidden (view full) --- 533 __field(int32_t, m_bastmode) 534 __field(int32_t, m_asts) 535 __field(int32_t, m_result) 536 __dynamic_array(unsigned char, m_extra, 537 le16_to_cpu(ms->m_header.h_length) - sizeof(*ms)) 538 ), 539 540 TP_fast_assign( |
541 __entry->dst = dst; |
|
536 __entry->h_seq = h_seq; 537 __entry->h_version = le32_to_cpu(ms->m_header.h_version); 538 __entry->h_lockspace = le32_to_cpu(ms->m_header.u.h_lockspace); 539 __entry->h_nodeid = le32_to_cpu(ms->m_header.h_nodeid); 540 __entry->h_length = le16_to_cpu(ms->m_header.h_length); 541 __entry->h_cmd = ms->m_header.h_cmd; 542 __entry->m_type = le32_to_cpu(ms->m_type); 543 __entry->m_nodeid = le32_to_cpu(ms->m_nodeid); --- 12 unchanged lines hidden (view full) --- 556 __entry->m_rqmode = le32_to_cpu(ms->m_rqmode); 557 __entry->m_bastmode = le32_to_cpu(ms->m_bastmode); 558 __entry->m_asts = le32_to_cpu(ms->m_asts); 559 __entry->m_result = le32_to_cpu(ms->m_result); 560 memcpy(__get_dynamic_array(m_extra), ms->m_extra, 561 __get_dynamic_array_len(m_extra)); 562 ), 563 | 542 __entry->h_seq = h_seq; 543 __entry->h_version = le32_to_cpu(ms->m_header.h_version); 544 __entry->h_lockspace = le32_to_cpu(ms->m_header.u.h_lockspace); 545 __entry->h_nodeid = le32_to_cpu(ms->m_header.h_nodeid); 546 __entry->h_length = le16_to_cpu(ms->m_header.h_length); 547 __entry->h_cmd = ms->m_header.h_cmd; 548 __entry->m_type = le32_to_cpu(ms->m_type); 549 __entry->m_nodeid = le32_to_cpu(ms->m_nodeid); --- 12 unchanged lines hidden (view full) --- 562 __entry->m_rqmode = le32_to_cpu(ms->m_rqmode); 563 __entry->m_bastmode = le32_to_cpu(ms->m_bastmode); 564 __entry->m_asts = le32_to_cpu(ms->m_asts); 565 __entry->m_result = le32_to_cpu(ms->m_result); 566 memcpy(__get_dynamic_array(m_extra), ms->m_extra, 567 __get_dynamic_array_len(m_extra)); 568 ), 569 |
564 TP_printk("h_seq=%u h_version=%s h_lockspace=%u h_nodeid=%u " | 570 TP_printk("dst=%u h_seq=%u h_version=%s h_lockspace=%u h_nodeid=%u " |
565 "h_length=%u h_cmd=%s m_type=%s m_nodeid=%u " 566 "m_pid=%u m_lkid=%u m_remid=%u m_parent_lkid=%u " 567 "m_parent_remid=%u m_exflags=%s m_sbflags=%s m_flags=%s " 568 "m_lvbseq=%u m_hash=%u m_status=%d m_grmode=%s " 569 "m_rqmode=%s m_bastmode=%s m_asts=%d m_result=%d " | 571 "h_length=%u h_cmd=%s m_type=%s m_nodeid=%u " 572 "m_pid=%u m_lkid=%u m_remid=%u m_parent_lkid=%u " 573 "m_parent_remid=%u m_exflags=%s m_sbflags=%s m_flags=%s " 574 "m_lvbseq=%u m_hash=%u m_status=%d m_grmode=%s " 575 "m_rqmode=%s m_bastmode=%s m_asts=%d m_result=%d " |
570 "m_extra=0x%s", | 576 "m_extra=0x%s", __entry->dst, |
571 __entry->h_seq, show_message_version(__entry->h_version), 572 __entry->h_lockspace, __entry->h_nodeid, __entry->h_length, 573 show_header_cmd(__entry->h_cmd), 574 show_message_type(__entry->m_type), 575 __entry->m_nodeid, __entry->m_pid, __entry->m_lkid, 576 __entry->m_remid, __entry->m_parent_lkid, 577 __entry->m_parent_remid, show_lock_flags(__entry->m_exflags), 578 show_dlm_sb_flags(__entry->m_sbflags), --- 55 unchanged lines hidden --- | 577 __entry->h_seq, show_message_version(__entry->h_version), 578 __entry->h_lockspace, __entry->h_nodeid, __entry->h_length, 579 show_header_cmd(__entry->h_cmd), 580 show_message_type(__entry->m_type), 581 __entry->m_nodeid, __entry->m_pid, __entry->m_lkid, 582 __entry->m_remid, __entry->m_parent_lkid, 583 __entry->m_parent_remid, show_lock_flags(__entry->m_exflags), 584 show_dlm_sb_flags(__entry->m_sbflags), --- 55 unchanged lines hidden --- |