Skip to content

Commit

Permalink
s390/debug: remove struct __debug_entry from uapi
Browse files Browse the repository at this point in the history
There is no interface to userspace which exposes anything that would
require the struct __debug_entry definition. Therefore remove it from
uapi. This allows to change the definition, since it is only kernel
internally used.

The only exception is the crash utility, however that tool must handle
changes all the time anyway.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
  • Loading branch information
Heiko Carstens committed Jun 29, 2020
1 parent ecb1ff6 commit 6ffb3f6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 36 deletions.
17 changes: 16 additions & 1 deletion arch/s390/include/asm/debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <linux/kernel.h>
#include <linux/time.h>
#include <linux/refcount.h>
#include <uapi/asm/debug.h>
#include <linux/fs.h>

#define DEBUG_MAX_LEVEL 6 /* debug levels range from 0 to 6 */
#define DEBUG_OFF_LEVEL -1 /* level where debug is switched off */
Expand All @@ -26,6 +26,21 @@
#define DEBUG_DATA(entry) (char *)(entry + 1) /* data is stored behind */
/* the entry information */

#define __DEBUG_FEATURE_VERSION 2 /* version of debug feature */

struct __debug_entry {
union {
struct {
unsigned long clock : 52;
unsigned long exception : 1;
unsigned long level : 3;
unsigned long cpuid : 8;
} fields;
unsigned long stck;
} id;
void *caller;
} __packed;

typedef struct __debug_entry debug_entry_t;

struct debug_view;
Expand Down
35 changes: 0 additions & 35 deletions arch/s390/include/uapi/asm/debug.h

This file was deleted.

0 comments on commit 6ffb3f6

Please sign in to comment.