~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/metag/include/asm/ptrace.h

Version: ~ [ linux-5.10-rc6 ] ~ [ linux-5.9.12 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.81 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.161 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.210 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.247 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.247 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.85 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 #ifndef _METAG_PTRACE_H
  2 #define _METAG_PTRACE_H
  3 
  4 #include <linux/compiler.h>
  5 #include <uapi/asm/ptrace.h>
  6 #include <asm/tbx.h>
  7 
  8 #ifndef __ASSEMBLY__
  9 
 10 /* this struct defines the way the registers are stored on the
 11    stack during a system call. */
 12 
 13 struct pt_regs {
 14         TBICTX ctx;
 15         TBICTXEXTCB0 extcb0[5];
 16 };
 17 
 18 #define user_mode(regs) (((regs)->ctx.SaveMask & TBICTX_PRIV_BIT) > 0)
 19 
 20 #define instruction_pointer(regs) ((unsigned long)(regs)->ctx.CurrPC)
 21 #define profile_pc(regs) instruction_pointer(regs)
 22 
 23 #define task_pt_regs(task) \
 24         ((struct pt_regs *)(task_stack_page(task) + \
 25                             sizeof(struct thread_info)))
 26 
 27 #define current_pt_regs() \
 28         ((struct pt_regs *)((char *)current_thread_info() + \
 29                             sizeof(struct thread_info)))
 30 
 31 int syscall_trace_enter(struct pt_regs *regs);
 32 void syscall_trace_leave(struct pt_regs *regs);
 33 
 34 /* copy a struct user_gp_regs out to user */
 35 int metag_gp_regs_copyout(const struct pt_regs *regs,
 36                           unsigned int pos, unsigned int count,
 37                           void *kbuf, void __user *ubuf);
 38 /* copy a struct user_gp_regs in from user */
 39 int metag_gp_regs_copyin(struct pt_regs *regs,
 40                          unsigned int pos, unsigned int count,
 41                          const void *kbuf, const void __user *ubuf);
 42 /* copy a struct user_cb_regs out to user */
 43 int metag_cb_regs_copyout(const struct pt_regs *regs,
 44                           unsigned int pos, unsigned int count,
 45                           void *kbuf, void __user *ubuf);
 46 /* copy a struct user_cb_regs in from user */
 47 int metag_cb_regs_copyin(struct pt_regs *regs,
 48                          unsigned int pos, unsigned int count,
 49                          const void *kbuf, const void __user *ubuf);
 50 /* copy a struct user_rp_state out to user */
 51 int metag_rp_state_copyout(const struct pt_regs *regs,
 52                            unsigned int pos, unsigned int count,
 53                            void *kbuf, void __user *ubuf);
 54 /* copy a struct user_rp_state in from user */
 55 int metag_rp_state_copyin(struct pt_regs *regs,
 56                           unsigned int pos, unsigned int count,
 57                           const void *kbuf, const void __user *ubuf);
 58 
 59 #endif /* __ASSEMBLY__ */
 60 #endif /* _METAG_PTRACE_H */
 61 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp