staging: rtl8188eu: rename HalSetBrateCfg() - style
[linux/fpc-iii.git] / drivers / s390 / cio / vfio_ccw_trace.h
blobb1da53ddec1f576002ebc5aa3e51ef9a17b6d285
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>
8 */
10 #undef TRACE_SYSTEM
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),
22 TP_STRUCT__entry(
23 __field(int, fctl)
24 __field_struct(struct subchannel_id, schid)
25 __field(int, errno)
26 __field(char*, errstr)
29 TP_fast_assign(
30 __entry->fctl = fctl;
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",
37 __entry->schid.cssid,
38 __entry->schid.ssid,
39 __entry->schid.sch_no,
40 __entry->fctl,
41 __entry->errno,
42 __entry->errstr)
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>