1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
3 * Copyright IBM Corp. 2006
4 * Character device driver for writing z/VM APPLDATA monitor records
6 * Author(s): Melissa Howland <melissah@us.ibm.com>
10 #ifndef _ASM_390_MONWRITER_H
11 #define _ASM_390_MONWRITER_H
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 */
19 /* the header the app uses in its write() data */
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
;
30 } __attribute__((packed
));
32 #endif /* _ASM_390_MONWRITER_H */