hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/include/trace/events/rdma.h
....@@ -6,7 +6,6 @@
66 /*
77 * enum ib_event_type, from include/rdma/ib_verbs.h
88 */
9
-
109 #define IB_EVENT_LIST \
1110 ib_event(CQ_ERR) \
1211 ib_event(QP_FATAL) \
....@@ -91,6 +90,46 @@
9190 __print_symbolic(x, IB_WC_STATUS_LIST)
9291
9392 /*
93
+ * enum ib_cm_event_type, from include/rdma/ib_cm.h
94
+ */
95
+#define IB_CM_EVENT_LIST \
96
+ ib_cm_event(REQ_ERROR) \
97
+ ib_cm_event(REQ_RECEIVED) \
98
+ ib_cm_event(REP_ERROR) \
99
+ ib_cm_event(REP_RECEIVED) \
100
+ ib_cm_event(RTU_RECEIVED) \
101
+ ib_cm_event(USER_ESTABLISHED) \
102
+ ib_cm_event(DREQ_ERROR) \
103
+ ib_cm_event(DREQ_RECEIVED) \
104
+ ib_cm_event(DREP_RECEIVED) \
105
+ ib_cm_event(TIMEWAIT_EXIT) \
106
+ ib_cm_event(MRA_RECEIVED) \
107
+ ib_cm_event(REJ_RECEIVED) \
108
+ ib_cm_event(LAP_ERROR) \
109
+ ib_cm_event(LAP_RECEIVED) \
110
+ ib_cm_event(APR_RECEIVED) \
111
+ ib_cm_event(SIDR_REQ_ERROR) \
112
+ ib_cm_event(SIDR_REQ_RECEIVED) \
113
+ ib_cm_event_end(SIDR_REP_RECEIVED)
114
+
115
+#undef ib_cm_event
116
+#undef ib_cm_event_end
117
+
118
+#define ib_cm_event(x) TRACE_DEFINE_ENUM(IB_CM_##x);
119
+#define ib_cm_event_end(x) TRACE_DEFINE_ENUM(IB_CM_##x);
120
+
121
+IB_CM_EVENT_LIST
122
+
123
+#undef ib_cm_event
124
+#undef ib_cm_event_end
125
+
126
+#define ib_cm_event(x) { IB_CM_##x, #x },
127
+#define ib_cm_event_end(x) { IB_CM_##x, #x }
128
+
129
+#define rdma_show_ib_cm_event(x) \
130
+ __print_symbolic(x, IB_CM_EVENT_LIST)
131
+
132
+/*
94133 * enum rdma_cm_event_type, from include/rdma/rdma_cm.h
95134 */
96135 #define RDMA_CM_EVENT_LIST \