1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 /*
3  * Copyright IBM Corp. 2006
4  * Character device driver for writing z/VM APPLDATA monitor records
5  * Version 1.0
6  * Author(s): Melissa Howland <melissah@us.ibm.com>
7  *
8  */
9 
10 #ifndef _ASM_390_MONWRITER_H
11 #define _ASM_390_MONWRITER_H
12 
13 /* mon_function values */
14 #define MONWRITE_START_INTERVAL	0x00 /* start interval recording */
15 #define MONWRITE_STOP_INTERVAL	0x01 /* stop interval or config recording */
16 #define MONWRITE_GEN_EVENT	0x02 /* generate event record */
17 #define MONWRITE_START_CONFIG	0x03 /* start configuration recording */
18 
19 /* the header the app uses in its write() data */
20 struct monwrite_hdr {
21 	unsigned char mon_function;
22 	unsigned short applid;
23 	unsigned char record_num;
24 	unsigned short version;
25 	unsigned short release;
26 	unsigned short mod_level;
27 	unsigned short datalen;
28 	unsigned char hdrlen;
29 
30 } __attribute__((packed));
31 
32 #endif /* _ASM_390_MONWRITER_H */
33