blob: 03d172f314a3aad76625ad250e863ae67b33c134 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001/* 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 */
20struct 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 */