1 /* SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause */ 2 /* 3 * Copyright(c) 2016 Intel Corporation. 4 */ 5 #if !defined(__RVT_TRACE_RVT_H) || defined(TRACE_HEADER_MULTI_READ) 6 #define __RVT_TRACE_RVT_H 7 8 #include <linux/tracepoint.h> 9 #include <linux/trace_seq.h> 10 11 #include <rdma/ib_verbs.h> 12 #include <rdma/rdma_vt.h> 13 14 #undef TRACE_SYSTEM 15 #define TRACE_SYSTEM rvt 16 17 TRACE_EVENT(rvt_dbg, 18 TP_PROTO(struct rvt_dev_info *rdi, 19 const char *msg), 20 TP_ARGS(rdi, msg), 21 TP_STRUCT__entry( 22 RDI_DEV_ENTRY(rdi) 23 __string(msg, msg) 24 ), 25 TP_fast_assign( 26 RDI_DEV_ASSIGN(rdi); 27 __assign_str(msg, msg); 28 ), 29 TP_printk("[%s]: %s", __get_str(dev), __get_str(msg)) 30 ); 31 32 #endif /* __RVT_TRACE_MISC_H */ 33 34 #undef TRACE_INCLUDE_PATH 35 #undef TRACE_INCLUDE_FILE 36 #define TRACE_INCLUDE_PATH . 37 #define TRACE_INCLUDE_FILE trace_rvt 38 #include <trace/define_trace.h> 39 40