1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef _S390_UAPI_RUNTIME_INSTR_H
3 #define _S390_UAPI_RUNTIME_INSTR_H
5 #include <linux/types.h>
7 #define S390_RUNTIME_INSTR_START 0x1
8 #define S390_RUNTIME_INSTR_STOP 0x2
10 struct runtime_instr_cb
{
60 } __attribute__((__packed__
, __aligned__(8)));
62 static inline void load_runtime_instr_cb(struct runtime_instr_cb
*cb
)
64 asm volatile(".insn rsy,0xeb0000000060,0,0,%0" /* LRIC */
68 static inline void store_runtime_instr_cb(struct runtime_instr_cb
*cb
)
70 asm volatile(".insn rsy,0xeb0000000061,0,0,%0" /* STRIC */
71 : "=Q" (*cb
) : : "cc");
74 #endif /* _S390_UAPI_RUNTIME_INSTR_H */