smc_tracepoint.h (aff3083f10bff7a37eaa2b4e6bc5fb627ddd5f84) smc_tracepoint.h (a3a0e81b6fd55745e100735c7667cd99a0650811)
1/* SPDX-License-Identifier: GPL-2.0 */
2
3#undef TRACE_SYSTEM
4#define TRACE_SYSTEM smc
5
6#if !defined(_TRACE_SMC_H) || defined(TRACE_HEADER_MULTI_READ)
7#define _TRACE_SMC_H
8

--- 61 unchanged lines hidden (view full) ---

70
71DEFINE_EVENT(smc_msg_event, smc_rx_recvmsg,
72
73 TP_PROTO(const struct smc_sock *smc, size_t len),
74
75 TP_ARGS(smc, len)
76);
77
1/* SPDX-License-Identifier: GPL-2.0 */
2
3#undef TRACE_SYSTEM
4#define TRACE_SYSTEM smc
5
6#if !defined(_TRACE_SMC_H) || defined(TRACE_HEADER_MULTI_READ)
7#define _TRACE_SMC_H
8

--- 61 unchanged lines hidden (view full) ---

70
71DEFINE_EVENT(smc_msg_event, smc_rx_recvmsg,
72
73 TP_PROTO(const struct smc_sock *smc, size_t len),
74
75 TP_ARGS(smc, len)
76);
77
78TRACE_EVENT(smcr_link_down,
79
80 TP_PROTO(const struct smc_link *lnk, void *location),
81
82 TP_ARGS(lnk, location),
83
84 TP_STRUCT__entry(
85 __field(const void *, lnk)
86 __field(const void *, lgr)
87 __field(int, state)
88 __string(name, lnk->ibname)
89 __field(void *, location)
90 ),
91
92 TP_fast_assign(
93 const struct smc_link_group *lgr = lnk->lgr;
94
95 __entry->lnk = lnk;
96 __entry->lgr = lgr;
97 __entry->state = lnk->state;
98 __assign_str(name, lnk->ibname);
99 __entry->location = location;
100 ),
101
102 TP_printk("lnk=%p lgr=%p state=%d dev=%s location=%p",
103 __entry->lnk, __entry->lgr,
104 __entry->state, __get_str(name),
105 __entry->location)
106);
107
78#endif /* _TRACE_SMC_H */
79
80#undef TRACE_INCLUDE_PATH
81#define TRACE_INCLUDE_PATH .
82
83#undef TRACE_INCLUDE_FILE
84#define TRACE_INCLUDE_FILE smc_tracepoint
85
86#include <trace/define_trace.h>
108#endif /* _TRACE_SMC_H */
109
110#undef TRACE_INCLUDE_PATH
111#define TRACE_INCLUDE_PATH .
112
113#undef TRACE_INCLUDE_FILE
114#define TRACE_INCLUDE_FILE smc_tracepoint
115
116#include <trace/define_trace.h>