Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys



Module Name:    src
Committed By:   pgoyette
Date:           Wed Nov  2 00:12:00 UTC 2016

Modified Files:
        src/sys/arch/i386/conf: INSTALL_FLOPPY
        src/sys/arch/i386/i386: process_machdep.c
        src/sys/arch/sh3/include: userret.h
        src/sys/arch/sh3/sh3: exception_vector.S process_machdep.c
            sh3_machdep.c
        src/sys/compat/netbsd32: netbsd32_ptrace.c
        src/sys/conf: files std
        src/sys/kern: files.kern init_main.c kern_stub.c sys_process.c
            syscalls.master
        src/sys/miscfs/procfs: files.procfs
        src/sys/modules: Makefile
        src/sys/sys: ptrace.h
Added Files:
        src/sys/kern: sys_ptrace.c sys_ptrace_common.c
        src/sys/modules/ptrace: Makefile
        src/sys/modules/ptrace_common: Makefile

Log Message:
* Split sys/kern/sys_process.c into three parts:
        1 - ptrace(2) syscall for native emulation
        2 - common ptrace(2) syscall code (shared with compat_netbsd32)
        3 - support routines that are shared with PROCFS and/or KTRACE

* Add module glue for #1 and #2.  Both modules will be built-in to the
  kernel if "options PTRACE" is included in the config file (this is
  the default, defined in sys/conf/std).

* Mark the ptrace(2) syscall as modular in syscalls.master (generated
  files will be committed shortly).

* Conditionalize all remaining portions of PTRACE code on a new kernel
  option PTRACE_HOOKS.

XXX Instead of PROCFS depending on 'options PTRACE', we should probably
    just add a procfs attribute to the sys/kern/sys_process.c file's
    entry in files.kern, and add PROCFS to the "#if defineds" for
    process_domem().  It's really confusing to have two different ways
    of requiring this file.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/i386/conf/INSTALL_FLOPPY
cvs rdiff -u -r1.85 -r1.86 src/sys/arch/i386/i386/process_machdep.c
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/sh3/include/userret.h
cvs rdiff -u -r1.49 -r1.50 src/sys/arch/sh3/sh3/exception_vector.S
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/sh3/sh3/process_machdep.c
cvs rdiff -u -r1.103 -r1.104 src/sys/arch/sh3/sh3/sh3_machdep.c
cvs rdiff -u -r1.1 -r1.2 src/sys/compat/netbsd32/netbsd32_ptrace.c
cvs rdiff -u -r1.1165 -r1.1166 src/sys/conf/files
cvs rdiff -u -r1.21 -r1.22 src/sys/conf/std
cvs rdiff -u -r1.12 -r1.13 src/sys/kern/files.kern
cvs rdiff -u -r1.483 -r1.484 src/sys/kern/init_main.c
cvs rdiff -u -r1.42 -r1.43 src/sys/kern/kern_stub.c
cvs rdiff -u -r1.174 -r1.175 src/sys/kern/sys_process.c
cvs rdiff -u -r0 -r1.1 src/sys/kern/sys_ptrace.c \
    src/sys/kern/sys_ptrace_common.c
cvs rdiff -u -r1.285 -r1.286 src/sys/kern/syscalls.master
cvs rdiff -u -r1.9 -r1.10 src/sys/miscfs/procfs/files.procfs
cvs rdiff -u -r1.181 -r1.182 src/sys/modules/Makefile
cvs rdiff -u -r0 -r1.1 src/sys/modules/ptrace/Makefile
cvs rdiff -u -r0 -r1.1 src/sys/modules/ptrace_common/Makefile
cvs rdiff -u -r1.47 -r1.48 src/sys/sys/ptrace.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index