ptrace_32.h 746 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
  3. * Licensed under the GPL
  4. */
  5. #ifndef __UM_PTRACE_I386_H
  6. #define __UM_PTRACE_I386_H
  7. #define HOST_AUDIT_ARCH AUDIT_ARCH_I386
  8. #include "linux/compiler.h"
  9. #include "asm/ptrace-generic.h"
  10. #define user_mode(r) UPT_IS_USER(&(r)->regs)
  11. /*
  12. * Forward declaration to avoid including sysdep/tls.h, which causes a
  13. * circular include, and compilation failures.
  14. */
  15. struct user_desc;
  16. extern int ptrace_get_thread_area(struct task_struct *child, int idx,
  17. struct user_desc __user *user_desc);
  18. extern int ptrace_set_thread_area(struct task_struct *child, int idx,
  19. struct user_desc __user *user_desc);
  20. #endif