cregit-Linux how code gets into the kernel

Release 4.14 arch/h8300/kernel/ptrace_s.c

/*
 *  linux/arch/h8300/kernel/ptrace_h8s.c
 *    ptrace cpu depend helper functions
 *
 *  Yoshinori Sato <ysato@users.sourceforge.jp>
 *
 * This file is subject to the terms and conditions of the GNU General
 * Public License.  See the file COPYING in the main directory of
 * this archive for more details.
 */

#include <linux/linkage.h>
#include <linux/sched/signal.h>
#include <linux/errno.h>
#include <asm/ptrace.h>


#define CCR_MASK  0x6f

#define EXR_TRACE 0x80

/* disable singlestep */

void user_disable_single_step(struct task_struct *child) { unsigned char exr; exr = h8300_get_reg(child, PT_EXR); exr &= ~EXR_TRACE; h8300_put_reg(child, PT_EXR, exr); }

Contributors

PersonTokensPropCommitsCommitProp
Yoshinori Sato37100.00%1100.00%
Total37100.00%1100.00%

/* enable singlestep */
void user_enable_single_step(struct task_struct *child) { unsigned char exr; exr = h8300_get_reg(child, PT_EXR); exr |= EXR_TRACE; h8300_put_reg(child, PT_EXR, exr); }

Contributors

PersonTokensPropCommitsCommitProp
Yoshinori Sato36100.00%1100.00%
Total36100.00%1100.00%


asmlinkage void trace_trap(unsigned long bp) { (void)bp; force_sig(SIGTRAP, current); }

Contributors

PersonTokensPropCommitsCommitProp
Yoshinori Sato22100.00%1100.00%
Total22100.00%1100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
Yoshinori Sato11799.15%150.00%
Ingo Molnar10.85%150.00%
Total118100.00%2100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.