| /* SPDX-License-Identifier: GPL-2.0 |
| * Tracepoints for vfio_ccw driver |
| * Copyright IBM Corp. 2018 |
| * Author(s): Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com> |
| * Halil Pasic <pasic@linux.vnet.ibm.com> |
| #define TRACE_SYSTEM vfio_ccw |
| #if !defined(_VFIO_CCW_TRACE_) || defined(TRACE_HEADER_MULTI_READ) |
| #include <linux/tracepoint.h> |
| TRACE_EVENT(vfio_ccw_io_fctl, |
| TP_PROTO(int fctl, struct subchannel_id schid, int errno, char *errstr), |
| TP_ARGS(fctl, schid, errno, errstr), |
| __field_struct(struct subchannel_id, schid) |
| __entry->errstr = errstr; |
| TP_printk("schid=%x.%x.%04x fctl=%x errno=%d info=%s", |
| #endif /* _VFIO_CCW_TRACE_ */ |
| /* This part must be outside protection */ |
| #undef TRACE_INCLUDE_PATH |
| #define TRACE_INCLUDE_PATH . |
| #undef TRACE_INCLUDE_FILE |
| #define TRACE_INCLUDE_FILE vfio_ccw_trace |
| #include <trace/define_trace.h> |