debug.h 794 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * S/390 debug facility
  3. *
  4. * Copyright IBM Corp. 1999, 2000
  5. */
  6. #ifndef _UAPIDEBUG_H
  7. #define _UAPIDEBUG_H
  8. #include <linux/fs.h>
  9. /* Note:
  10. * struct __debug_entry must be defined outside of #ifdef __KERNEL__
  11. * in order to allow a user program to analyze the 'raw'-view.
  12. */
  13. struct __debug_entry{
  14. union {
  15. struct {
  16. unsigned long long clock:52;
  17. unsigned long long exception:1;
  18. unsigned long long level:3;
  19. unsigned long long cpuid:8;
  20. } fields;
  21. unsigned long long stck;
  22. } id;
  23. void* caller;
  24. } __attribute__((packed));
  25. #define __DEBUG_FEATURE_VERSION 2 /* version of debug feature */
  26. #endif /* _UAPIDEBUG_H */