Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1#ifndef _ASM_SCORE_PTRACE_H
2#define _ASM_SCORE_PTRACE_H
3
4#include <uapi/asm/ptrace.h>
5
6
7struct task_struct;
8
9/*
10 * Does the process account for user or for system time?
11 */
12#define user_mode(regs) ((regs->cp0_psr & 8) == 8)
13
14#define instruction_pointer(regs) ((unsigned long)(regs)->cp0_epc)
15#define profile_pc(regs) instruction_pointer(regs)
16#define user_stack_pointer(r) ((unsigned long)(r)->regs[0])
17
18extern void do_syscall_trace(struct pt_regs *regs, int entryexit);
19extern int read_tsk_long(struct task_struct *, unsigned long, unsigned long *);
20extern int read_tsk_short(struct task_struct *, unsigned long,
21 unsigned short *);
22
23#define arch_has_single_step() (1)
24
25#endif /* _ASM_SCORE_PTRACE_H */