18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright IBM Corp. 2006 48c2ecf20Sopenharmony_ci * Character device driver for writing z/VM APPLDATA monitor records 58c2ecf20Sopenharmony_ci * Version 1.0 68c2ecf20Sopenharmony_ci * Author(s): Melissa Howland <melissah@us.ibm.com> 78c2ecf20Sopenharmony_ci * 88c2ecf20Sopenharmony_ci */ 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci#ifndef _ASM_390_MONWRITER_H 118c2ecf20Sopenharmony_ci#define _ASM_390_MONWRITER_H 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci/* mon_function values */ 148c2ecf20Sopenharmony_ci#define MONWRITE_START_INTERVAL 0x00 /* start interval recording */ 158c2ecf20Sopenharmony_ci#define MONWRITE_STOP_INTERVAL 0x01 /* stop interval or config recording */ 168c2ecf20Sopenharmony_ci#define MONWRITE_GEN_EVENT 0x02 /* generate event record */ 178c2ecf20Sopenharmony_ci#define MONWRITE_START_CONFIG 0x03 /* start configuration recording */ 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci/* the header the app uses in its write() data */ 208c2ecf20Sopenharmony_cistruct monwrite_hdr { 218c2ecf20Sopenharmony_ci unsigned char mon_function; 228c2ecf20Sopenharmony_ci unsigned short applid; 238c2ecf20Sopenharmony_ci unsigned char record_num; 248c2ecf20Sopenharmony_ci unsigned short version; 258c2ecf20Sopenharmony_ci unsigned short release; 268c2ecf20Sopenharmony_ci unsigned short mod_level; 278c2ecf20Sopenharmony_ci unsigned short datalen; 288c2ecf20Sopenharmony_ci unsigned char hdrlen; 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci} __attribute__((packed)); 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ci#endif /* _ASM_390_MONWRITER_H */ 33