diff options
Diffstat (limited to 'arch/s390/include/uapi/asm/debug.h')
-rw-r--r-- | arch/s390/include/uapi/asm/debug.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/arch/s390/include/uapi/asm/debug.h b/arch/s390/include/uapi/asm/debug.h new file mode 100644 index 000000000000..c59fc79125f2 --- /dev/null +++ b/arch/s390/include/uapi/asm/debug.h | |||
@@ -0,0 +1,34 @@ | |||
1 | /* | ||
2 | * S/390 debug facility | ||
3 | * | ||
4 | * Copyright IBM Corp. 1999, 2000 | ||
5 | */ | ||
6 | |||
7 | #ifndef _UAPIDEBUG_H | ||
8 | #define _UAPIDEBUG_H | ||
9 | |||
10 | #include <linux/fs.h> | ||
11 | |||
12 | /* Note: | ||
13 | * struct __debug_entry must be defined outside of #ifdef __KERNEL__ | ||
14 | * in order to allow a user program to analyze the 'raw'-view. | ||
15 | */ | ||
16 | |||
17 | struct __debug_entry{ | ||
18 | union { | ||
19 | struct { | ||
20 | unsigned long long clock:52; | ||
21 | unsigned long long exception:1; | ||
22 | unsigned long long level:3; | ||
23 | unsigned long long cpuid:8; | ||
24 | } fields; | ||
25 | |||
26 | unsigned long long stck; | ||
27 | } id; | ||
28 | void* caller; | ||
29 | } __attribute__((packed)); | ||
30 | |||
31 | |||
32 | #define __DEBUG_FEATURE_VERSION 2 /* version of debug feature */ | ||
33 | |||
34 | #endif /* _UAPIDEBUG_H */ | ||