1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Tracepoint header for s390 diagnose calls
5 * Copyright IBM Corp. 2015
6 * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com>
10 #define TRACE_SYSTEM s390
12 #if !defined(_TRACE_S390_DIAG_H) || defined(TRACE_HEADER_MULTI_READ)
13 #define _TRACE_S390_DIAG_H
15 #include <linux/tracepoint.h>
17 #undef TRACE_INCLUDE_PATH
18 #undef TRACE_INCLUDE_FILE
20 #define TRACE_INCLUDE_PATH asm/trace
21 #define TRACE_INCLUDE_FILE diag
23 TRACE_EVENT(s390_diagnose
,
24 TP_PROTO(unsigned short nr
),
27 __field(unsigned short, nr
)
32 TP_printk("nr=0x%x", __entry
->nr
)
35 #ifdef CONFIG_TRACEPOINTS
36 void trace_s390_diagnose_norecursion(int diag_nr
);
38 static inline void trace_s390_diagnose_norecursion(int diag_nr
) { }
41 #endif /* _TRACE_S390_DIAG_H */
43 /* This part must be outside protection */
44 #include <trace/define_trace.h>