rxrpc.h (36fc2d727ee711f901c120046d63b8d7e341a744) | rxrpc.h (09d2bf595db4b4075ea721acd61e180d6bb18f88) |
---|---|
1/* AF_RXRPC tracepoints 2 * 3 * Copyright (C) 2016 Red Hat, Inc. All Rights Reserved. 4 * Written by David Howells (dhowells@redhat.com) 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public Licence 8 * as published by the Free Software Foundation; either version --- 28 unchanged lines hidden (view full) --- 37 rxrpc_skb_tx_cleaned, 38 rxrpc_skb_tx_freed, 39 rxrpc_skb_tx_got, 40 rxrpc_skb_tx_new, 41 rxrpc_skb_tx_rotated, 42 rxrpc_skb_tx_seen, 43}; 44 | 1/* AF_RXRPC tracepoints 2 * 3 * Copyright (C) 2016 Red Hat, Inc. All Rights Reserved. 4 * Written by David Howells (dhowells@redhat.com) 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public Licence 8 * as published by the Free Software Foundation; either version --- 28 unchanged lines hidden (view full) --- 37 rxrpc_skb_tx_cleaned, 38 rxrpc_skb_tx_freed, 39 rxrpc_skb_tx_got, 40 rxrpc_skb_tx_new, 41 rxrpc_skb_tx_rotated, 42 rxrpc_skb_tx_seen, 43}; 44 |
45enum rxrpc_local_trace { 46 rxrpc_local_got, 47 rxrpc_local_new, 48 rxrpc_local_processing, 49 rxrpc_local_put, 50 rxrpc_local_queued, 51}; 52 |
|
45enum rxrpc_conn_trace { 46 rxrpc_conn_got, 47 rxrpc_conn_new_client, 48 rxrpc_conn_new_service, 49 rxrpc_conn_put_client, 50 rxrpc_conn_put_service, 51 rxrpc_conn_queued, 52 rxrpc_conn_reap_service, --- 157 unchanged lines hidden (view full) --- 210 EM(rxrpc_skb_rx_seen, "Rx SEE") \ 211 EM(rxrpc_skb_tx_cleaned, "Tx CLN") \ 212 EM(rxrpc_skb_tx_freed, "Tx FRE") \ 213 EM(rxrpc_skb_tx_got, "Tx GOT") \ 214 EM(rxrpc_skb_tx_new, "Tx NEW") \ 215 EM(rxrpc_skb_tx_rotated, "Tx ROT") \ 216 E_(rxrpc_skb_tx_seen, "Tx SEE") 217 | 53enum rxrpc_conn_trace { 54 rxrpc_conn_got, 55 rxrpc_conn_new_client, 56 rxrpc_conn_new_service, 57 rxrpc_conn_put_client, 58 rxrpc_conn_put_service, 59 rxrpc_conn_queued, 60 rxrpc_conn_reap_service, --- 157 unchanged lines hidden (view full) --- 218 EM(rxrpc_skb_rx_seen, "Rx SEE") \ 219 EM(rxrpc_skb_tx_cleaned, "Tx CLN") \ 220 EM(rxrpc_skb_tx_freed, "Tx FRE") \ 221 EM(rxrpc_skb_tx_got, "Tx GOT") \ 222 EM(rxrpc_skb_tx_new, "Tx NEW") \ 223 EM(rxrpc_skb_tx_rotated, "Tx ROT") \ 224 E_(rxrpc_skb_tx_seen, "Tx SEE") 225 |
226#define rxrpc_local_traces \ 227 EM(rxrpc_local_got, "GOT") \ 228 EM(rxrpc_local_new, "NEW") \ 229 EM(rxrpc_local_processing, "PRO") \ 230 EM(rxrpc_local_put, "PUT") \ 231 E_(rxrpc_local_queued, "QUE") 232 |
|
218#define rxrpc_conn_traces \ 219 EM(rxrpc_conn_got, "GOT") \ 220 EM(rxrpc_conn_new_client, "NWc") \ 221 EM(rxrpc_conn_new_service, "NWs") \ 222 EM(rxrpc_conn_put_client, "PTc") \ 223 EM(rxrpc_conn_put_service, "PTs") \ 224 EM(rxrpc_conn_queued, "QUE") \ 225 EM(rxrpc_conn_reap_service, "RPs") \ --- 185 unchanged lines hidden (view full) --- 411 * Export enum symbols via userspace. 412 */ 413#undef EM 414#undef E_ 415#define EM(a, b) TRACE_DEFINE_ENUM(a); 416#define E_(a, b) TRACE_DEFINE_ENUM(a); 417 418rxrpc_skb_traces; | 233#define rxrpc_conn_traces \ 234 EM(rxrpc_conn_got, "GOT") \ 235 EM(rxrpc_conn_new_client, "NWc") \ 236 EM(rxrpc_conn_new_service, "NWs") \ 237 EM(rxrpc_conn_put_client, "PTc") \ 238 EM(rxrpc_conn_put_service, "PTs") \ 239 EM(rxrpc_conn_queued, "QUE") \ 240 EM(rxrpc_conn_reap_service, "RPs") \ --- 185 unchanged lines hidden (view full) --- 426 * Export enum symbols via userspace. 427 */ 428#undef EM 429#undef E_ 430#define EM(a, b) TRACE_DEFINE_ENUM(a); 431#define E_(a, b) TRACE_DEFINE_ENUM(a); 432 433rxrpc_skb_traces; |
434rxrpc_local_traces; |
|
419rxrpc_conn_traces; 420rxrpc_client_traces; 421rxrpc_call_traces; 422rxrpc_transmit_traces; 423rxrpc_receive_traces; 424rxrpc_recvmsg_traces; 425rxrpc_rtt_tx_traces; 426rxrpc_rtt_rx_traces; --- 7 unchanged lines hidden (view full) --- 434 * Now redefine the EM() and E_() macros to map the enums to the strings that 435 * will be printed in the output. 436 */ 437#undef EM 438#undef E_ 439#define EM(a, b) { a, b }, 440#define E_(a, b) { a, b } 441 | 435rxrpc_conn_traces; 436rxrpc_client_traces; 437rxrpc_call_traces; 438rxrpc_transmit_traces; 439rxrpc_receive_traces; 440rxrpc_recvmsg_traces; 441rxrpc_rtt_tx_traces; 442rxrpc_rtt_rx_traces; --- 7 unchanged lines hidden (view full) --- 450 * Now redefine the EM() and E_() macros to map the enums to the strings that 451 * will be printed in the output. 452 */ 453#undef EM 454#undef E_ 455#define EM(a, b) { a, b }, 456#define E_(a, b) { a, b } 457 |
458TRACE_EVENT(rxrpc_local, 459 TP_PROTO(struct rxrpc_local *local, enum rxrpc_local_trace op, 460 int usage, const void *where), 461 462 TP_ARGS(local, op, usage, where), 463 464 TP_STRUCT__entry( 465 __field(unsigned int, local ) 466 __field(int, op ) 467 __field(int, usage ) 468 __field(const void *, where ) 469 ), 470 471 TP_fast_assign( 472 __entry->local = local->debug_id; 473 __entry->op = op; 474 __entry->usage = usage; 475 __entry->where = where; 476 ), 477 478 TP_printk("L=%08x %s u=%d sp=%pSR", 479 __entry->local, 480 __print_symbolic(__entry->op, rxrpc_local_traces), 481 __entry->usage, 482 __entry->where) 483 ); 484 |
|
442TRACE_EVENT(rxrpc_conn, 443 TP_PROTO(struct rxrpc_connection *conn, enum rxrpc_conn_trace op, 444 int usage, const void *where), 445 446 TP_ARGS(conn, op, usage, where), 447 448 TP_STRUCT__entry( 449 __field(unsigned int, conn ) --- 846 unchanged lines hidden --- | 485TRACE_EVENT(rxrpc_conn, 486 TP_PROTO(struct rxrpc_connection *conn, enum rxrpc_conn_trace op, 487 int usage, const void *where), 488 489 TP_ARGS(conn, op, usage, where), 490 491 TP_STRUCT__entry( 492 __field(unsigned int, conn ) --- 846 unchanged lines hidden --- |