diff options
Diffstat (limited to 'arch/s390/include/uapi/asm/monwriter.h')
-rw-r--r-- | arch/s390/include/uapi/asm/monwriter.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/arch/s390/include/uapi/asm/monwriter.h b/arch/s390/include/uapi/asm/monwriter.h new file mode 100644 index 000000000000..f845c8e2f861 --- /dev/null +++ b/arch/s390/include/uapi/asm/monwriter.h | |||
@@ -0,0 +1,31 @@ | |||
1 | /* | ||
2 | * Copyright IBM Corp. 2006 | ||
3 | * Character device driver for writing z/VM APPLDATA monitor records | ||
4 | * Version 1.0 | ||
5 | * Author(s): Melissa Howland <melissah@us.ibm.com> | ||
6 | * | ||
7 | */ | ||
8 | |||
9 | #ifndef _ASM_390_MONWRITER_H | ||
10 | #define _ASM_390_MONWRITER_H | ||
11 | |||
12 | /* mon_function values */ | ||
13 | #define MONWRITE_START_INTERVAL 0x00 /* start interval recording */ | ||
14 | #define MONWRITE_STOP_INTERVAL 0x01 /* stop interval or config recording */ | ||
15 | #define MONWRITE_GEN_EVENT 0x02 /* generate event record */ | ||
16 | #define MONWRITE_START_CONFIG 0x03 /* start configuration recording */ | ||
17 | |||
18 | /* the header the app uses in its write() data */ | ||
19 | struct monwrite_hdr { | ||
20 | unsigned char mon_function; | ||
21 | unsigned short applid; | ||
22 | unsigned char record_num; | ||
23 | unsigned short version; | ||
24 | unsigned short release; | ||
25 | unsigned short mod_level; | ||
26 | unsigned short datalen; | ||
27 | unsigned char hdrlen; | ||
28 | |||
29 | } __attribute__((packed)); | ||
30 | |||
31 | #endif /* _ASM_390_MONWRITER_H */ | ||