1 /* SPDX-License-Identifier: GPL-2.0
2 * Tracepoints for vfio_ccw driver
4 * Copyright IBM Corp. 2018
6 * Author(s): Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
7 * Halil Pasic <pasic@linux.vnet.ibm.com>
11 #define TRACE_SYSTEM vfio_ccw
13 #if !defined(_VFIO_CCW_TRACE_) || defined(TRACE_HEADER_MULTI_READ)
14 #define _VFIO_CCW_TRACE_
16 #include <linux/tracepoint.h>
18 TRACE_EVENT(vfio_ccw_io_fctl
,
19 TP_PROTO(int fctl
, struct subchannel_id schid
, int errno
, char *errstr
),
20 TP_ARGS(fctl
, schid
, errno
, errstr
),
24 __field_struct(struct subchannel_id
, schid
)
26 __field(char*, errstr
)
31 __entry
->schid
= schid
;
32 __entry
->errno
= errno
;
33 __entry
->errstr
= errstr
;
36 TP_printk("schid=%x.%x.%04x fctl=%x errno=%d info=%s",
39 __entry
->schid
.sch_no
,
45 #endif /* _VFIO_CCW_TRACE_ */
47 /* This part must be outside protection */
49 #undef TRACE_INCLUDE_PATH
50 #define TRACE_INCLUDE_PATH .
51 #undef TRACE_INCLUDE_FILE
52 #define TRACE_INCLUDE_FILE vfio_ccw_trace
54 #include <trace/define_trace.h>