debug.h 857 B

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