13 #include <linux/ptrace.h>
16 #include <linux/elf.h>
18 #include <asm/cacheflush.h>
20 #define PT_REG_SIZE (sizeof(struct pt_regs))
50 unsigned long *addr = (
unsigned long *)
task_pt_regs(task);
62 unsigned int pos,
unsigned int count,
63 void *kbuf,
void __user *ubuf)
67 return user_regset_copyout(&pos, &count, &kbuf, &ubuf,
74 unsigned int pos,
unsigned int count,
75 const void *kbuf,
const void __user *ubuf)
81 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf,
87 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf,
89 (
PT_TSR + 1) *
sizeof(
long));
93 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf,
95 (
PT_TSR + 1) *
sizeof(
long),
100 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf,
102 (
PT_CSR + 1) *
sizeof(
long));
106 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf,
108 (
PT_CSR + 1) *
sizeof(
long), -1);
130 .regsets = c6x_regsets,
136 return &user_c6x_native_view;
143 unsigned long addr,
unsigned long data)
170 if (tracehook_report_syscall_entry(regs))
186 tracehook_report_syscall_exit(regs, 0);