summaryrefslogtreecommitdiffstats
path: root/arch/s390/include/uapi/asm/debug.h
blob: c7c564d9aea48c9ee5675c400671087debb1a62b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
 *   S/390 debug facility
 *
 *    Copyright IBM Corp. 1999, 2000
 */

#ifndef _UAPIDEBUG_H
#define _UAPIDEBUG_H

#include <linux/fs.h>

/* Note:
 * struct __debug_entry must be defined outside of #ifdef __KERNEL__ 
 * in order to allow a user program to analyze the 'raw'-view.
 */

struct __debug_entry{
        union {
                struct {
                        unsigned long long clock:52;
                        unsigned long long exception:1;
                        unsigned long long level:3;
                        unsigned long long cpuid:8;
                } fields;

                unsigned long long stck;
        } id;
        void* caller;
} __attribute__((packed));


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

#endif /* _UAPIDEBUG_H */
OpenPOWER on IntegriCloud