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 17struct __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 */ 35