diff options
| author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2012-10-09 08:18:10 -0400 |
|---|---|---|
| committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2012-10-09 08:18:10 -0400 |
| commit | ab08ff34b44f752b664ebb312d2e110cf37a7f5e (patch) | |
| tree | 80579bb79480ac303cad99c359549d4e86bcc773 /arch/s390/include/asm/debug.h | |
| parent | 450e47da67499aeb6f1700e8f84747460c11ab56 (diff) | |
| parent | 9807f75955ea7f1877981056755284481873115c (diff) | |
Merge tag 'disintegrate-s390-20121009' of
git://git.infradead.org/users/dhowells/linux-headers
Pull UAPI patchset from David Howells:
"Can you merge the following branch into the s390 tree please.
This is to complete part of the UAPI disintegration for which the
preparatory patches were pulled recently."
Conflicts:
arch/s390/include/asm/chpid.h
Diffstat (limited to 'arch/s390/include/asm/debug.h')
| -rw-r--r-- | arch/s390/include/asm/debug.h | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/arch/s390/include/asm/debug.h b/arch/s390/include/asm/debug.h index f39677e6ccde..188c5052a20a 100644 --- a/arch/s390/include/asm/debug.h +++ b/arch/s390/include/asm/debug.h | |||
| @@ -3,39 +3,14 @@ | |||
| 3 | * | 3 | * |
| 4 | * Copyright IBM Corp. 1999, 2000 | 4 | * Copyright IBM Corp. 1999, 2000 |
| 5 | */ | 5 | */ |
| 6 | |||
| 7 | #ifndef DEBUG_H | 6 | #ifndef DEBUG_H |
| 8 | #define DEBUG_H | 7 | #define DEBUG_H |
| 9 | 8 | ||
| 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 | #ifdef __KERNEL__ | ||
| 35 | #include <linux/string.h> | 9 | #include <linux/string.h> |
| 36 | #include <linux/spinlock.h> | 10 | #include <linux/spinlock.h> |
| 37 | #include <linux/kernel.h> | 11 | #include <linux/kernel.h> |
| 38 | #include <linux/time.h> | 12 | #include <linux/time.h> |
| 13 | #include <uapi/asm/debug.h> | ||
| 39 | 14 | ||
| 40 | #define DEBUG_MAX_LEVEL 6 /* debug levels range from 0 to 6 */ | 15 | #define DEBUG_MAX_LEVEL 6 /* debug levels range from 0 to 6 */ |
| 41 | #define DEBUG_OFF_LEVEL -1 /* level where debug is switched off */ | 16 | #define DEBUG_OFF_LEVEL -1 /* level where debug is switched off */ |
| @@ -254,5 +229,4 @@ int debug_unregister_view(debug_info_t* id, struct debug_view* view); | |||
| 254 | #define PRINT_FATAL(x...) printk ( KERN_DEBUG PRINTK_HEADER x ) | 229 | #define PRINT_FATAL(x...) printk ( KERN_DEBUG PRINTK_HEADER x ) |
| 255 | #endif /* DASD_DEBUG */ | 230 | #endif /* DASD_DEBUG */ |
| 256 | 231 | ||
| 257 | #endif /* __KERNEL__ */ | ||
| 258 | #endif /* DEBUG_H */ | 232 | #endif /* DEBUG_H */ |
