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