Path: blob/master/arch/s390/include/uapi/asm/runtime_instr.h
26481 views
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */1#ifndef _S390_UAPI_RUNTIME_INSTR_H2#define _S390_UAPI_RUNTIME_INSTR_H34#include <linux/types.h>56#define S390_RUNTIME_INSTR_START 0x17#define S390_RUNTIME_INSTR_STOP 0x289struct runtime_instr_cb {10__u64 rca;11__u64 roa;12__u64 rla;1314__u32 v : 1;15__u32 s : 1;16__u32 k : 1;17__u32 h : 1;18__u32 a : 1;19__u32 reserved1 : 3;20__u32 ps : 1;21__u32 qs : 1;22__u32 pc : 1;23__u32 qc : 1;24__u32 reserved2 : 1;25__u32 g : 1;26__u32 u : 1;27__u32 l : 1;28__u32 key : 4;29__u32 reserved3 : 8;30__u32 t : 1;31__u32 rgs : 3;3233__u32 m : 4;34__u32 n : 1;35__u32 mae : 1;36__u32 reserved4 : 2;37__u32 c : 1;38__u32 r : 1;39__u32 b : 1;40__u32 j : 1;41__u32 e : 1;42__u32 x : 1;43__u32 reserved5 : 2;44__u32 bpxn : 1;45__u32 bpxt : 1;46__u32 bpti : 1;47__u32 bpni : 1;48__u32 reserved6 : 2;4950__u32 d : 1;51__u32 f : 1;52__u32 ic : 4;53__u32 dc : 4;5455__u64 reserved7;56__u64 sf;57__u64 rsic;58__u64 reserved8;59} __attribute__((__packed__, __aligned__(8)));6061static inline void load_runtime_instr_cb(struct runtime_instr_cb *cb)62{63asm volatile(".insn rsy,0xeb0000000060,0,0,%0" /* LRIC */64: : "Q" (*cb));65}6667static inline void store_runtime_instr_cb(struct runtime_instr_cb *cb)68{69asm volatile(".insn rsy,0xeb0000000061,0,0,%0" /* STRIC */70: "=Q" (*cb) : : "cc");71}7273#endif /* _S390_UAPI_RUNTIME_INSTR_H */747576