cregit-Linux how code gets into the kernel

Release 4.11 arch/alpha/include/asm/ptrace.h

#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

PersonTokensPropCommitsCommitProp
蔡正龙18100.00%1100.00%
Total18100.00%1100.00%

#endif

Overall Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)2226.51%531.25%
蔡正龙1821.69%16.25%
Al Viro1720.48%425.00%
Andrew Morton1012.05%212.50%
William Lee Irwin III78.43%16.25%
Christoph Hellwig56.02%16.25%
David Howells33.61%16.25%
Richard Henderson11.20%16.25%
Total83100.00%16100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.