#ifndef _ASMAXP_PTRACE_H #define _ASMAXP_PTRACE_H #include <uapi/asm/ptrace.h> #define arch_has_single_step() (1) #define user_mode(regs) (((regs)->ps & 8) != 0) #define instruction_pointer(regs) ((regs)->pc) #define profile_pc(regs) instruction_pointer(regs) #define current_user_stack_pointer() rdusp() #define task_pt_regs(task) \ ((struct pt_regs *) (task_stack_page(task) + 2*PAGE_SIZE) - 1) #define current_pt_regs() \ ((struct pt_regs *) ((char *)current_thread_info() + 2*PAGE_SIZE) - 1) #define signal_pt_regs current_pt_regs #define force_successful_syscall_return() (current_pt_regs()->r0 = 0)
static inline unsigned long regs_return_value(struct pt_regs *regs) { return regs->r0; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
蔡正龙 | 18 | 100.00% | 1 | 100.00% |
Total | 18 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 22 | 26.51% | 5 | 31.25% |
蔡正龙 | 18 | 21.69% | 1 | 6.25% |
Al Viro | 17 | 20.48% | 4 | 25.00% |
Andrew Morton | 10 | 12.05% | 2 | 12.50% |
William Lee Irwin III | 7 | 8.43% | 1 | 6.25% |
Christoph Hellwig | 5 | 6.02% | 1 | 6.25% |
David Howells | 3 | 3.61% | 1 | 6.25% |
Richard Henderson | 1 | 1.20% | 1 | 6.25% |
Total | 83 | 100.00% | 16 | 100.00% |