The NetBSD Project

CVS log for src/sys/sys/ptrace.h

[BACK] Up to [cvs.NetBSD.org] / src / sys / sys

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.75 / (download) - annotate - [select for diffs], Wed Jun 8 23:12:27 2022 UTC (21 months, 2 weeks ago) by andvar
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.74: +2 -2 lines
Diff to previous 1.74 (colored) to selected 1.72.2.1 (colored)

s/spcae/space/ in comment and error messages.

Revision 1.72.2.1 / (download) - annotate - [selected], Mon Dec 14 14:38:17 2020 UTC (3 years, 3 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.72: +1 -3 lines
Diff to previous 1.72 (colored) next main 1.73 (colored)

Sync w/ HEAD.

Revision 1.74 / (download) - annotate - [select for diffs], Wed Nov 4 18:32:12 2020 UTC (3 years, 4 months ago) by pgoyette
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.73: +1 -3 lines
Diff to previous 1.73 (colored) to selected 1.72.2.1 (colored)

Remove extraneous declaration of ptrace_common_{init,fini}()

Revision 1.73 / (download) - annotate - [select for diffs], Wed Nov 4 18:12:19 2020 UTC (3 years, 4 months ago) by pgoyette
Branch: MAIN
Changes since 1.72: +3 -3 lines
Diff to previous 1.72 (colored) to selected 1.72.2.1 (colored)

Finish the proper naming of the module init/fini routines.  Should
fix the "ptrace cannot be used by unpriv user" issue reported by
Rin Okuyama (thanks for the detailed report and analysis).

Revision 1.72 / (download) - annotate - [select for diffs], Tue Oct 20 20:28:55 2020 UTC (3 years, 5 months ago) by christos
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.71: +10 -1 lines
Diff to previous 1.71 (colored) to selected 1.72.2.1 (colored)

Basic register read/write functionality and lwp setting are always provided
by the kernel because they are needed by multiple things
(ptrace/procfs/coredump), so move them to sys_process_lwpstatus (this file
should be renamed to sys_process_common.c?)

Revision 1.65.2.2 / (download) - annotate - [select for diffs], Sun Oct 18 18:42:11 2020 UTC (3 years, 5 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Changes since 1.65.2.1: +4 -1 lines
Diff to previous 1.65.2.1 (colored) to branchpoint 1.65 (colored) next main 1.66 (colored) to selected 1.72.2.1 (colored)

Pull up following revision(s) (requested by kamil in ticket #1117):

	sys/arch/sh3/include/ptrace.h: revision 1.19
	sys/arch/amd64/amd64/process_machdep.c: revision 1.48
	sys/arch/sh3/sh3/process_machdep.c: revision 1.23
	sys/arch/sh3/sh3/process_machdep.c: revision 1.24
	sys/arch/i386/i386/process_machdep.c: revision 1.95
	sys/arch/x86/x86/fpu.c (apply patch)
	sys/kern/sys_ptrace_common.c: revision 1.84
	sys/arch/powerpc/powerpc/process_machdep.c: revision 1.40
	sys/sys/ptrace.h: revision 1.71
	sys/arch/powerpc/powerpc/process_machdep.c: revision 1.41
	(all via patch, adapted)

Fix s87_tw reconstruction to correctly indicate register states

Fix the code reconstructing s87_tw (full tag word) from fx_sw (abridged
tag word) to correctly represent all register states.  The previous code
only distinguished between empty/non-empty registers, and assigned
'regular value' to all non-empty registers.  The new code explicitly
distinguishes the two other tag word values: empty and special.

Fix the machine-dependent ptrace register-related requests (e.g.
PT_GETXMMREGS, PT_GETXSTATE on x86) to correctly respect the LWP number
passed as the data argument.  Before this change, these requests
did not operate on the requested LWP of a multithreaded program.
This change required moving ptrace_update_lwp() out of unit scope,
and changing ptrace_machdep_dorequest() function to take a pointer
to pointer as the second argument, consistently with ptrace_regs().

I am planning to extend the ATF ptrace() register tests in the future
to check for regressions in multithreaded programs, as time permits.

Reviewed by kamil.

Add missing 'error' declaration

Revision 1.71 / (download) - annotate - [select for diffs], Thu Oct 15 17:37:36 2020 UTC (3 years, 5 months ago) by mgorny
Branch: MAIN
Changes since 1.70: +3 -2 lines
Diff to previous 1.70 (colored) to selected 1.72.2.1 (colored)

Fix the machine-dependent ptrace requests to respect LWP number

Fix the machine-dependent ptrace register-related requests (e.g.
PT_GETXMMREGS, PT_GETXSTATE on x86) to correctly respect the LWP number
passed as the data argument.  Before this change, these requests
did not operate on the requested LWP of a multithreaded program.

This change required moving ptrace_update_lwp() out of unit scope,
and changing ptrace_machdep_dorequest() function to take a pointer
to pointer as the second argument, consistently with ptrace_regs().

I am planning to extend the ATF ptrace() register tests in the future
to check for regressions in multithreaded programs, as time permits.

Reviewed by kamil.

Revision 1.70 / (download) - annotate - [select for diffs], Thu May 14 13:32:15 2020 UTC (3 years, 10 months ago) by kamil
Branch: MAIN
Changes since 1.69: +6 -2 lines
Diff to previous 1.69 (colored) to selected 1.72.2.1 (colored)

Introduce new ptrace(2) operations: PT_SET_SIGPASS and PT_GET_SIGPASS

They deliver the logic of bypassing selected signals directly to the
debuggee, without informing the debugger.

This can be used to implement the QPassSignals GDB/LLDB protocol.

This call can be useful to avoid signal races in ATF ptrace tests.

Revision 1.63.4.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:05:20 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.63.4.1: +61 -4 lines
Diff to previous 1.63.4.1 (colored) to branchpoint 1.63 (colored) next main 1.64 (colored) to selected 1.72.2.1 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.69 / (download) - annotate - [select for diffs], Thu Dec 26 08:52:38 2019 UTC (4 years, 3 months ago) by kamil
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.68: +3 -1 lines
Diff to previous 1.68 (colored) to selected 1.72.2.1 (colored)

Put ptrace_read_lwpstatus() and process_read_lwpstatus() to a new file

Fixes "no PTRACE" kernel build, in particular zaurus kernel=INSTALL_C700.

Revision 1.68 / (download) - annotate - [select for diffs], Tue Dec 24 14:50:59 2019 UTC (4 years, 3 months ago) by kamil
Branch: MAIN
Changes since 1.67: +56 -4 lines
Diff to previous 1.67 (colored) to selected 1.72.2.1 (colored)

Introduce PT_LWPSTATUS + PT_LWPNEXT, obsolete PT_LWPINFO

PT_LWPINFO is a legacy ptrace(2) operation that was originally intended
to retrieve the thread (LWP) information inside a traced process.

It has a number of flaws and is confused with PT_LWPINFO from FreeBSD.

PT_LWPSTATUS and PT_LWPNEXT address the problems (shortly by: rename,
removal of pl_event) and introduces new features: signal context
(pl_sigpend, pl_sigmask), LWP name (pl_name), LWP TLS base address
(pl_private). The private pointer was so far missing information for
a debugger.

PT_LWPSTATUS@nnn is now shipped with core(5) files and contain LWP specific
information, so far missed in the core(5) files.

PT_LWPSTATUS retrieves LWP information for the prompted thread.
PT_LWPNEXT retrieves LWP information for the next thread, borrowing the
semantics from NetBSD specific PT_LWPINFO.

PT_LWPINFO is namespaced with __LEGACY_PT_LWPINFO and still available for
the foreseeable future, without plans of removing it.

Add ATF tests for PT_LWPSTATUS + PT_LWPNEXT.

Keep ATF tests for PT_LWPINFO.

Switch GDB to new API.

Proposed on tech-kern@.

Revision 1.67 / (download) - annotate - [select for diffs], Wed Dec 4 13:52:27 2019 UTC (4 years, 3 months ago) by kamil
Branch: MAIN
Changes since 1.66: +3 -2 lines
Diff to previous 1.66 (colored) to selected 1.72.2.1 (colored)

Register "PT_STOP" in ptrace PT_STRINGS

Revision 1.65.2.1 / (download) - annotate - [select for diffs], Tue Oct 15 19:11:02 2019 UTC (4 years, 5 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Changes since 1.65: +2 -1 lines
Diff to previous 1.65 (colored) to selected 1.72.2.1 (colored)

Pull up following revision(s) (requested by kamil in ticket #325):

	sys/sys/ptrace.h: revision 1.66
	sys/kern/sys_ptrace_common.c: revision 1.66

Introduce new ptrace(2) operation PT_STOP

It works like:
 - kill(SIGSTOP) for unstopped tracee
 - ptrace(PT_CONTINUE,SIGSTOP) for stopped tracee

The child will be stopped and always possible to be waited (with wait(2)
like calls).

For stopped traccee kill(SIGSTOP) has no effect. PT_CONTINUE+SIGSTOP cannot
be used on an unstopped process (EBUSY).

This operation is modeled after PT_KILL that is similar for the SIGKILL
call. While there, allow PT_KILL on unstopped traced child.
This operation is useful in an abnormal exit of a debugger from a signal
handler, usually followed by waitpid(2) and ptrace(PT_DETACH).

Revision 1.66 / (download) - annotate - [select for diffs], Wed Oct 9 13:19:43 2019 UTC (4 years, 5 months ago) by kamil
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.65: +2 -1 lines
Diff to previous 1.65 (colored) to selected 1.72.2.1 (colored)

Introduce new ptrace(2) operation PT_STOP

It works like:

 - kill(SIGSTOP) for unstopped tracee
 - ptrace(PT_CONTINUE,SIGSTOP) for stopped tracee

The child will be stopped and always possible to be waited (with wait(2)
like calls).

For stopped traccee kill(SIGSTOP) has no effect. PT_CONTINUE+SIGSTOP cannot
be used on an unstopped process (EBUSY).

This operation is modeled after PT_KILL that is similar for the SIGKILL
call. While there, allow PT_KILL on unstopped traced child.

This operation is useful in an abnormal exit of a debugger from a signal
handler, usually followed by waitpid(2) and ptrace(PT_DETACH).

Revision 1.65 / (download) - annotate - [select for diffs], Tue Jun 11 23:18:55 2019 UTC (4 years, 9 months ago) by kamil
Branch: MAIN
CVS Tags: netbsd-9-base
Branch point for: netbsd-9
Changes since 1.64: +2 -1 lines
Diff to previous 1.64 (colored) to selected 1.72.2.1 (colored)

Add support for PTRACE_POSIX_SPAWN to report posix_spawn(3) events

posix_spawn(3) is a first class syscall in NetBSD, different to
(V)FORK+EXEC as these operations are executed in one go. This differs to
Linux and FreeBSD, where posix_spawn(3) is implemented with existing kernel
primitives (clone(2), vfork(2), exec(3)) inside libc.

Typically LLDB and GDB software is aware of FORK/VFORK events. As discussed
with the LLDB community, instead of slicing the posix_spawn(3) operation
into phases emulating (V)FORK+EXEC(+VFORK_DONE) and returning intermediate
state to the debugger, that might have abnormal state, introduce new event
type: PTRACE_POSIX_SPAWN.

A debugger implementor can easily map it into existing fork+exec semantics
or treat as a distinct event.

There is no functional change for existing debuggers as there was no
support for reporting posix_spawn(3) events on the kernel side.

Revision 1.63.4.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:57 2019 UTC (4 years, 9 months ago) by christos
Branch: phil-wifi
Changes since 1.63: +2 -2 lines
Diff to previous 1.63 (colored) to selected 1.72.2.1 (colored)

Sync with HEAD

Revision 1.64 / (download) - annotate - [select for diffs], Mon May 6 08:05:03 2019 UTC (4 years, 10 months ago) by kamil
Branch: MAIN
CVS Tags: phil-wifi-20190609
Changes since 1.63: +2 -2 lines
Diff to previous 1.63 (colored) to selected 1.72.2.1 (colored)

Ship with syscall information with SIGTRAP TRAP_SCE/TRAP_SCX for tracers

Expand siginfo_t (struct size not changed) to new values for
SIGTRAP TRAP_SCE/TRAP_SCX events.

 - si_sysnum  -- syscall number (int)
 - si_retval  -- return value (2 x int)
 - si_error   -- error code (int)
 - si_args    -- syscall arguments (8 x uint64_t)

TRAP_SCE delivers si_sysnum and si_args.

TRAP_SCX delivers si_sysnum, si_retval, si_error and si_args.

Users: debuggers (like GDB) and syscall tracers (like strace, truss).

This MI interface is similar to the Linux kernel proposal of
PTRACE_GET_SYSCALL_INFO by the strace developer team.

Revision 1.60.6.3 / (download) - annotate - [select for diffs], Sat Apr 14 10:53:14 2018 UTC (5 years, 11 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Changes since 1.60.6.2: +2 -2 lines
Diff to previous 1.60.6.2 (colored) to branchpoint 1.60 (colored) next main 1.61 (colored) to selected 1.72.2.1 (colored)

Pull up following revision(s) (requested by kamil in ticket #756):

	sys/sys/ptrace.h: revision 1.61

PR kern/52805: fix copy & pasto, from Onno van der Linden.

Revision 1.60.6.2 / (download) - annotate - [select for diffs], Thu Apr 12 13:42:49 2018 UTC (5 years, 11 months ago) by martin
Branch: netbsd-8
Changes since 1.60.6.1: +5 -3 lines
Diff to previous 1.60.6.1 (colored) to branchpoint 1.60 (colored) to selected 1.72.2.1 (colored)

Pull up following revision(s) (requested by kamil in ticket #713):

	sys/modules/procfs/Makefile: revision 1.4
	sys/miscfs/procfs/procfs_vfsops.c: revision 1.98
	bin/ps/ps.1: revision 1.108
	sys/compat/linux/arch/i386/linux_ptrace.c: revision 1.32
	sys/miscfs/procfs/procfs_vnops.c: revision 1.198
	sys/kern/sys_ptrace_common.c: revision 1.23
	sys/kern/sys_ptrace_common.c: revision 1.24
	sbin/mount_procfs/mount_procfs.8: revision 1.36
	sys/kern/sys_ptrace_common.c: revision 1.25
	sys/kern/sys_ptrace.c: revision 1.5
	sys/compat/linux/arch/powerpc/linux_ptrace.c: revision 1.30
	sys/sys/proc.h: revision 1.342
	sys/kern/sys_ptrace_common.c: revision 1.26
	sys/miscfs/procfs/procfs_ctl.c: file removal
	sys/kern/sys_ptrace_common.c: revision 1.27
	sys/miscfs/procfs/procfs_subr.c: revision 1.109
	sys/kern/sys_ptrace_common.c: revision 1.28
	sys/secmodel/extensions/secmodel_extensions.c: revision 1.8
	sys/kern/sys_ptrace_common.c: revision 1.29
	sys/sys/ptrace.h: revision 1.62
	sys/compat/netbsd32/netbsd32_signal.c: revision 1.45
	share/man/man9/kauth.9: revision 1.109
	sys/miscfs/procfs/files.procfs: revision 1.12
	sys/compat/netbsd32/netbsd32.h: revision 1.115
	sys/miscfs/procfs/procfs.h: revision 1.72
	sys/compat/netbsd32/netbsd32_ptrace.c: revision 1.5
	sys/kern/kern_sig.c: revision 1.337
	sys/sys/kauth.h: revision 1.75
	sys/sys/sysctl.h: revision 1.224
	sys/kern/sys_ptrace_common.c: revision 1.30
	sys/kern/sys_ptrace_common.c: revision 1.31
	sys/kern/sys_ptrace_common.c: revision 1.32
	sys/kern/sys_ptrace_common.c: revision 1.33
	sys/compat/linux/arch/arm/linux_ptrace.c: revision 1.20
	sys/kern/sys_ptrace_common.c: revision 1.34
	sys/kern/sys_ptrace_common.c: revision 1.36
	sys/kern/kern_proc.c: revision 1.207
	sys/kern/kern_exit.c: revision 1.269
	doc/TODO.ptrace: revision 1.29

Make {s,g}et{db,fp,}regs work again for PK_32 processes
XXX: pullup-8

add disgusting magic to handle compat_netbsd32 as a module.

use process_*reg32 instead of struct *reg32.

Remove the filesystem tracing feature

This is a legacy interface from 4.4BSD, and it was
introduced to overcome shortcomings of ptrace(2) at that time, which are
no longer relevant (performance). Today /proc/#/ctl offers a narrow
subset of ptrace(2) commands and is not applicable for modern
applications use beyond simplistic tracing scenarios.

This removal will simplify kernel internals. Users will still be able to
use all the other /proc files.

This change won't affect other procfs files neither Linux compat
features within mount_procfs(8). /proc/#/ctl isn't available on Linux.

Remove:
 - /proc/#/ctl from mount_procfs(8)
 - P_FSTRACE note from the documentation of ps(1)
 - /proc/#/ctl and filesystem tracing documentation from mount_procfs(8)
 - KAUTH_REQ_PROCESS_PROCFS_CTL documentation from kauth(9)
 - source code file miscfs/procfs/procfs_ctl.c
 - PFSctl and procfs_doctl() from sys/miscfs/procfs/procfs.h
 - KAUTH_REQ_PROCESS_PROCFS_CTL from sys/sys/kauth.h
 - PSL_FSTRACE (0x00010000) from sys/sys/proc.h
 - P_FSTRACE (0x00010000) from sys/sys/sysctl.h

Reduce code complexity after removal of this functionality.

Update TODO.ptrace accordingly: remove two entries about /proc tracing.

Do not keep legacy notes as comments in the headers about removed

PSL_FSTRACE / P_FSTRACE, as this interface had little number of users
(close or equal to zero).
Proposed on tech-kern@.

All filesystem tracing utility users are encouraged to switch to ptrace(2).

Sponsored by <The NetBSD Foundation>

untangle the mess:
- factor out common code
- break each ptrace subcall to its own sub-function
  .. more to come ...
- reduce ifdef ugliness by moving it up top.
- factor out PT_IO and make PT_{READ,WRITE}_{I,D} use it
- factor out PT_DUMPCORE
- factor out sendsig code
  .. more to come ...

handle siginfo requests for ptrace32

ptrace: Partially undo PT_{READ,WRITE}_{I,D} and unbreak these commands

The refactored code did not work and was generating EFAULT.

Sponsored by <The NetBSD Foundation>

Merge the code back; the problem was that since we are reading/writing
to a kernel address for PT_{READ,WRITE}_{I,D} we need the kernel vmspace.
provide separate read and write functions to accomodate register functions
that need a size argument.

don't ignore error from copyout_piod

Use the proper process (the tracee) to get information about lwps and
registers and the tracer for vmspace.

Add new sysctl(3) entry: security.models.extensions.user_set_dbregs

Model this new sysctl(3) entry after "user_set_cpu_affinity" in the same
level of sysctl(3) switches.

Allow to read unconditionally Debug Registers (no change here). This is
convenient as even if a user of a debugger does not use hardware assisted
watchpoints/breakpoints, a debugger can still prompt these values to store
in an internal cache with context of registers. Reading them should have
no security concerns.

Add a paranoid MI switch that prohibits by default setting these registers
by a regular user (non-superuser). Make this switch disabled by default.
There are enough reserved bits out there to allow using them
unconditionally on hardened hosts.

Features shipped with Debug Registers are optional features in debuggers.
There is no reduction in elementary functionality.

Reviewed by <christos>

Sponsored by <The NetBSD Foundation>

Revision 1.60.6.1 / (download) - annotate - [select for diffs], Tue Mar 6 09:52:09 2018 UTC (6 years ago) by martin
Branch: netbsd-8
Changes since 1.60: +5 -9 lines
Diff to previous 1.60 (colored) to selected 1.72.2.1 (colored)

Pull up following revision(s) (requested by kamil in ticket #602):
	doc/CHANGES{,.prev}: revision 1.138
	sys/sys/ptrace.h: revision 1.63
	lib/libc/sys/ptrace.2: revision 1.68
	sys/kern/sys_ptrace_common.c: revision 1.35 (via patch)
	tests/lib/libc/sys/t_ptrace_wait.c: revision 1.23

Remove PT_GET_SIGMASK / PT_SET_SIGMASK

These operations cloned Linux's specific PTRACE_GETSIGMASK /
PTRACE_SETSIGMASK.

This feature was useful in applications like rr/criu/reptyr-like, where
the ptrace(2) interface is abused for the purpose of constructing an
arbitrary
process. It's not reliable and not portable. For the NetBSD case it will =
be
better to invent something dedicated for serializing and deserializing a
process with threads.

Noted on tech-toolchain@ and blog entry
"LLDB restoration and return to ptrace(2)"
https://blog.netbsd.org/tnf/entry/lldb_restoration_and_return_to

Revision 1.63 / (download) - annotate - [select for diffs], Mon Mar 5 11:24:34 2018 UTC (6 years ago) by kamil
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, isaki-audio2-base, isaki-audio2
Branch point for: phil-wifi
Changes since 1.62: +5 -9 lines
Diff to previous 1.62 (colored) to selected 1.72.2.1 (colored)

Remove PT_GET_SIGMASK / PT_SET_SIGMASK

These operations cloned Linux's specific PTRACE_GETSIGMASK / PTRACE_SETSIGMASK.
This feature was useful in applications like rr/criu/reptyr-like, where
the ptrace(2) interface is abused for the purpose of constructing an arbitrary
process. It's not reliable and not portable. For the NetBSD case it will be
better to invent something dedicated for serializing and deserializing a
process with threads.

Noted on tech-toolchain@ and blog entry

"LLDB restoration and return to ptrace(2)"
https://blog.netbsd.org/tnf/entry/lldb_restoration_and_return_to

Revision 1.62 / (download) - annotate - [select for diffs], Sun Dec 17 20:59:28 2017 UTC (6 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.61: +5 -3 lines
Diff to previous 1.61 (colored) to selected 1.72.2.1 (colored)

handle siginfo requests for ptrace32

Revision 1.61 / (download) - annotate - [select for diffs], Sun Dec 10 10:56:50 2017 UTC (6 years, 3 months ago) by martin
Branch: MAIN
Changes since 1.60: +2 -2 lines
Diff to previous 1.60 (colored) to selected 1.72.2.1 (colored)

PR kern/52805: fix copy & pasto, from Onno van der Linden.

Revision 1.44.12.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:39:20 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.44.12.1: +102 -10 lines
Diff to previous 1.44.12.1 (colored) to branchpoint 1.44 (colored) next main 1.45 (colored) to selected 1.72.2.1 (colored)

update from HEAD

Revision 1.45.6.4 / (download) - annotate - [select for diffs], Mon Aug 28 17:53:16 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.45.6.3: +43 -56 lines
Diff to previous 1.45.6.3 (colored) to branchpoint 1.45 (colored) next main 1.46 (colored) to selected 1.72.2.1 (colored)

Sync with HEAD

Revision 1.46.2.4 / (download) - annotate - [select for diffs], Wed Apr 26 02:53:31 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.46.2.3: +2 -3 lines
Diff to previous 1.46.2.3 (colored) to branchpoint 1.46 (colored) next main 1.47 (colored) to selected 1.72.2.1 (colored)

Sync with HEAD

Revision 1.54.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:54:08 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.54: +43 -55 lines
Diff to previous 1.54 (colored) next main 1.55 (colored) to selected 1.72.2.1 (colored)

Sync with HEAD

Revision 1.60 / (download) - annotate - [select for diffs], Fri Mar 24 17:40:44 2017 UTC (7 years ago) by christos
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: netbsd-8
Changes since 1.59: +2 -3 lines
Diff to previous 1.59 (colored) to selected 1.72.2.1 (colored)

Instead of copying parts of sigswitch to process_stoptrace, use it directly.
Rename process_stoptrace -> proc_stoptrace and put it in kern_sig.c so we
don't need to expose any more functions from it.

Revision 1.59 / (download) - annotate - [select for diffs], Thu Mar 23 21:59:54 2017 UTC (7 years ago) by christos
Branch: MAIN
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (colored) to selected 1.72.2.1 (colored)

kern/5201{2,8,9}: Fix PT_SYSCALL stopping.
1. Supply the siginfo we expect TRAP_SC{E,X} to process_stoptrace() and set it.
2. Change the second argument of proc_stop from notify, to now meaning that
   we want to stop right now. Wait in process_stoptrace until that has happened.
3. While here, fix the locking order in process_stoptrace().

Revision 1.46.2.3 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:53 2017 UTC (7 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.46.2.2: +54 -55 lines
Diff to previous 1.46.2.2 (colored) to branchpoint 1.46 (colored) to selected 1.72.2.1 (colored)

Sync with HEAD

Revision 1.58 / (download) - annotate - [select for diffs], Thu Feb 23 03:34:23 2017 UTC (7 years, 1 month ago) by kamil
Branch: MAIN
CVS Tags: pgoyette-localcount-20170320
Changes since 1.57: +30 -51 lines
Diff to previous 1.57 (colored) to selected 1.72.2.1 (colored)

Introduce PT_GETDBREGS and PT_SETDBREGS in ptrace(2) on i386 and amd64

This interface is modeled after FreeBSD API with the usage.

This replaced previous watchpoint API. The previous one was introduced
recently in NetBSD-current and remove its spurs without any
backward-compatibility.

Design choices for Debug Register accessors:
 - exec() (TRAP_EXEC event) must remove debug registers from LWP
 - debug registers are only per-LWP, not per-process globally
 - debug registers must not be inherited after (v)forking a process
 - debug registers must not be inherited after forking a thread
 - a debugger is responsible to set global watchpoints/breakpoints with the
   debug registers, to achieve this PTRACE_LWP_CREATE/PTRACE_LWP_EXIT event
   monitoring function is designed to be used
 - debug register traps must generate SIGTRAP with si_code TRAP_DBREG
 - debugger is responsible to retrieve debug register state to distinguish
   the exact debug register trap (DR6 is Status Register on x86)
 - kernel must not remove debug register traps after triggering a trap event
   a debugger is responsible to detach this trap with appropriate PT_SETDBREGS
   call (DR7 is Control Register on x86)
 - debug registers must not be exposed in mcontext
 - userland must not be allowed to set a trap on the kernel

Implementation notes on i386 and amd64:
 - the initial state of debug register is retrieved on boot and this value is
   stored in a local copy (initdbregs), this value is used to initialize dbreg
   context after PT_GETDBREGS
 - struct dbregs is stored in pcb as a pointer and by default not initialized
 - reserved registers (DR4-DR5, DR9-DR15) are ignored

Further ideas:
 - restrict this interface with securelevel

Tested on real hardware i386 (Intel Pentium IV) and amd64 (Intel i7).

This commit enables 390 debug register ATF tests in kernel/arch/x86.
All tests are passing.

This commit does not cover netbsd32 compat code. Currently other interface
PT_GET_SIGINFO/PT_SET_SIGINFO is required in netbsd32 compat code in order to
validate reliably PT_GETDBREGS/PT_SETDBREGS.

This implementation does not cover FreeBSD specific defines in their
<x86/reg.h>: DBREG_DR7_LOCAL_ENABLE, DBREG_DR7_GLOBAL_ENABLE, DBREG_DR7_LEN_1
etc. These values tend to be reinvented by each tracer on its own. GNU
Debugger (GDB) works with NetBSD debug registers after adding this patch:

--- gdb/amd64bsd-nat.c.orig	2016-02-10 03:19:39.000000000 +0000
+++ gdb/amd64bsd-nat.c
@@ -167,6 +167,10 @@ amd64bsd_target (void)

 #ifdef HAVE_PT_GETDBREGS

+#ifndef DBREG_DRX
+#define	DBREG_DRX(d,x)	((d)->dr[(x)])
+#endif
+
 static unsigned long
 amd64bsd_dr_get (ptid_t ptid, int regnum)
 {


Another reason to stop introducing unpopular defines covering machine
specific register macros is that these value varies across generations of
the same CPU family.

GDB demo:
  (gdb) c
  Continuing.

  Watchpoint 2: traceme

  Old value = 0
  New value = 16
  main (argc=1, argv=0x7f7fff79fe30) at test.c:8
  8               printf("traceme=%d\n", traceme);

(Currently the GDB interface is not reliable due to NetBSD support bugs)

Sponsored by <The NetBSD Foundation>

Revision 1.57 / (download) - annotate - [select for diffs], Wed Feb 22 23:43:43 2017 UTC (7 years, 1 month ago) by kamil
Branch: MAIN
Changes since 1.56: +10 -5 lines
Diff to previous 1.56 (colored) to selected 1.72.2.1 (colored)

Introduce new ptrace(2) API to allow/prevent exection of LWP

Introduce new API for debuggers to allow/prevent execution of the specified
thread.

New ptrace(2) operations:

     PT_RESUME     Allow execution of a specified thread, change its state
                   from suspended to continued.  The addr argument is unused.
                   The data argument specifies the LWP ID.

                   This call is equivalent to _lwp_continue(2) called by a
                   traced process.  This call does not change the general
                   process state from stopped to continued.

     PT_SUSPEND    Prevent execution of a specified thread, change its state
                   from continued to suspended.  The addr argument is unused.
                   The data argument specifies the requested LWP ID.

                   This call is equivalent to _lwp_suspend(2) called by a
                   traced process.  This call does not change the general
                   process state from continued to stopped.

This interface is modeled after FreeBSD, however with NetBSD specific arguments
passed to ptrace(2) -- FreeBSD passes only thread id, NetBSD passes process and
thread id.

Extend PT_LWPINFO operation in ptrace(2) to report suspended threads. In the
ptrace_lwpinfo structure in pl_event next to PL_EVENT_NONE and PL_EVENT_SIGNAL
add new value PL_EVENT_SUSPENDED.

Add new errno(2) value EDEADLK that might be returned by ptrace(2). It prevents
dead-locking in a scenario of resuming a process or thread that is prevented
from execution. This fixes bug that old API was vulnerable to this scenario.

Kernel bump delayed till introduction of PT_GETDBREGS/PT_SETDBREGS soon.

Add new ATF tests:
 - resume1
   Verify that a thread can be suspended by a debugger and later
   resumed by the debugger

 - suspend1
   Verify that a thread can be suspended by a debugger and later
   resumed by a tracee

 - suspend2
   Verify that the while the only thread within a process is
   suspended, the whole process cannot be unstopped

Sponsored by <The NetBSD Foundation>

Revision 1.56 / (download) - annotate - [select for diffs], Sun Feb 12 06:09:52 2017 UTC (7 years, 1 month ago) by kamil
Branch: MAIN
Changes since 1.55: +6 -2 lines
Diff to previous 1.55 (colored) to selected 1.72.2.1 (colored)

Introduce new interface in ptrace(2) - PT_GET_SIGMASK and PT_SET_SIGMASK

Add new interface to add ability to get/set signal mask of a tracee.
It has been inspired by Linux PTRACE_GETSIGMASK and PTRACE_SETSIGMASK, but
adapted for NetBSD API.

This interface is used for checkpointing software to set/restore context
of a process including signal mask like criu or just to track this property
in reverse-execution software like Record and Replay Framework (rr).


Add new ATF tests for this interface
====================================
getsigmask1:
    Verify that plain PT_SET_SIGMASK can be called

getsigmask2:
    Verify that PT_SET_SIGMASK reports correct mask from tracee

setsigmask1:
    Verify that plain PT_SET_SIGMASK can be called with empty mask

setsigmask2:
    Verify that sigmask is preserved between PT_GET_SIGMASK and
    PT_SET_SIGMASK

setsigmask3:
    Verify that sigmask is preserved between PT_GET_SIGMASK, process
    resumed and PT_SET_SIGMASK

setsigmask4:
    Verify that new sigmask is visible in tracee


Kernel ABI bump delayed as there are more interfaces to come in ptrace(2).

Sponsored by <The NetBSD Foundation>

Revision 1.45.6.3 / (download) - annotate - [select for diffs], Sun Feb 5 13:41:01 2017 UTC (7 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.45.6.2: +84 -6 lines
Diff to previous 1.45.6.2 (colored) to branchpoint 1.45 (colored) to selected 1.72.2.1 (colored)

Sync with HEAD

Revision 1.55 / (download) - annotate - [select for diffs], Mon Jan 16 21:35:59 2017 UTC (7 years, 2 months ago) by kamil
Branch: MAIN
CVS Tags: nick-nhusb-base-20170204
Changes since 1.54: +2 -1 lines
Diff to previous 1.54 (colored) to selected 1.72.2.1 (colored)

Refactor ptrace_watchpoint structure to allow extensions

Add new field pw_type in the ptrace_watchpoint structure.

amd64 and i386 offer the current set of watchpoints as
PTRACE_PW_TYPE_DBREGS.

On other archs than x86, there are readily available different types of
hardware assisted watchpoints like for code-only or data-only registers on
ARM. Also in future there is an option to implement MMU-based watchpoints
and future per-port or per-cpu extensions.

Next step is to alter this interface on x86 to generate SIGTRAP with
si_code TRAP_HWWTRAP with additional information on occurred event:
 - which watchpoint fired,
 - additional watchpoint-type specific information, like on amd64 with
   PTRACE_PW_TYPE_DBREGS.:
   * only watchpoint fired
   * watchpoint fired and single step occurred

Adjust ATF tests for the pw_type change.

Sponsored by <The NetBSD Foundation>

Revision 1.54 / (download) - annotate - [select for diffs], Sat Jan 14 06:36:52 2017 UTC (7 years, 2 months ago) by kamil
Branch: MAIN
CVS Tags: bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.53: +10 -2 lines
Diff to previous 1.53 (colored) to selected 1.72.2.1 (colored)

Introduce PTRACE_LWP_{CREATE,EXIT} in ptrace(2) and TRAP_LWP in siginfo(5)

Add interface in ptrace(2) to track thread (LWP) events:
 - birth,
 - termination.

The purpose of this thread is to keep track of the current thread state in
a tracee and apply e.g. per-thread designed hardware assisted watchpoints.

This interface reuses the EVENT_MASK and PROCESS_STATE interface, and
shares it with PTRACE_FORK, PTRACE_VFORK and PTRACE_VFORK_DONE.

Change the following structure:

typedef struct ptrace_state {
        int     pe_report_event;
        pid_t   pe_other_pid;
} ptrace_state_t;

to

typedef struct ptrace_state {
        int     pe_report_event;
        union {
                pid_t   _pe_other_pid;
                lwpid_t _pe_lwp;
        } _option;
} ptrace_state_t;

#define pe_other_pid    _option._pe_other_pid
#define pe_lwp          _option._pe_lwp

This keeps size of ptrace_state_t unchanged as both pid_t and lwpid_t are
defined as int32_t-like integer. This change does not break existing
prebuilt software and has minimal effect on necessity for source-code
changes. In summary, this change should be binary compatible and shouldn't
break build of existing software.


Introduce new siginfo(5) type for LWP events under the SIGTRAP signal:
TRAP_LWP. This change will help debuggers to distinguish exact source of
SIGTRAP.


Add two basic t_ptrace_wait* tests:
lwp_create1:
    Verify that 1 LWP creation is intercepted by ptrace(2) with
    EVENT_MASK set to PTRACE_LWP_CREATE

lwp_exit1:
    Verify that 1 LWP creation is intercepted by ptrace(2) with
    EVENT_MASK set to PTRACE_LWP_EXIT

All tests are passing.


Surfing the previous kernel ABI bump to 7.99.59 for PTRACE_VFORK{,_DONE}.

Sponsored by <The NetBSD Foundation>

Revision 1.53 / (download) - annotate - [select for diffs], Fri Jan 13 23:00:35 2017 UTC (7 years, 2 months ago) by kamil
Branch: MAIN
Changes since 1.52: +4 -2 lines
Diff to previous 1.52 (colored) to selected 1.72.2.1 (colored)

Add support for PTRACE_VFORK_DONE and stub for PTRACE_VFORK in ptrace(2)

PTRACE_VFORK is supposed to be used to track vfork(2)-like events, when
parent gives birth to new process child and stops till it exits or calls
exec().
Currently PTRACE_VFORK is a stub.

PTRACE_VFORK_DONE is notification to notify a debugger that a parent has
resumed after vfork(2)-like action.
PTRACE_VFORK_DONE throws SIGTRAP with TRAP_CHLD.

Sponsored by <The NetBSD Foundation>

Revision 1.46.2.2 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:53 2017 UTC (7 years, 2 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.46.2.1: +72 -4 lines
Diff to previous 1.46.2.1 (colored) to branchpoint 1.46 (colored) to selected 1.72.2.1 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.52 / (download) - annotate - [select for diffs], Fri Jan 6 22:53:17 2017 UTC (7 years, 2 months ago) by kamil
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107
Changes since 1.51: +18 -2 lines
Diff to previous 1.51 (colored) to selected 1.72.2.1 (colored)

Introduce new ptrace(2) interface: PT_SET_SIGINFO and PT_GET_SIGINFO

This interface is designed to read signal information emited to tracee and
fake this signal with new value.

This functionality is required to distinguish types of events that occured
in the tracee and intercepted by a debugger.

These accessors introduce a new structure type ptrace_siginfo:
/*
 * Signal Information structure
 */
typedef struct ptrace_siginfo {
       siginfo_t       psi_siginfo;    /* signal information structure */
       lwpid_t         psi_lwpid;      /* destination LWP of the signal
                                        * value 0 means the whole process
                                        * (route signal to all LWPs) */
} ptrace_siginfo_t;

Include <sys/siginfo.h> in <sys/ptrace.h> in order to not break existing
software due to unknown symbol siginfo_t.

This interface has been proposed to the tech-kern@ mailing list.

Sponsored by <The NetBSD Foundation>

Revision 1.51 / (download) - annotate - [select for diffs], Thu Dec 15 20:04:36 2016 UTC (7 years, 3 months ago) by martin
Branch: MAIN
Changes since 1.50: +3 -5 lines
Diff to previous 1.50 (colored) to selected 1.72.2.1 (colored)

Simplify #ifdefs so this compiles on architectures that do not support
watchpoints.

Revision 1.50 / (download) - annotate - [select for diffs], Thu Dec 15 12:04:18 2016 UTC (7 years, 3 months ago) by kamil
Branch: MAIN
Changes since 1.49: +54 -1 lines
Diff to previous 1.49 (colored) to selected 1.72.2.1 (colored)

Add support for hardware assisted watchpoints/breakpoints API in ptrace(2)

Add new ptrace(2) calls:
 - PT_COUNT_WATCHPOINTS - count the number of available hardware watchpoints
 - PT_READ_WATCHPOINT   - read struct ptrace_watchpoint from the kernel state
 - PT_WRITE_WATCHPOINT  - write new struct ptrace_watchpoint state, this
                          includes enabling and disabling watchpoints

The ptrace_watchpoint structure contains MI and MD parts:

typedef struct ptrace_watchpoint {
	int		pw_index;	/* HW Watchpoint ID (count from 0) */
	lwpid_t		pw_lwpid;	/* LWP described */
	struct mdpw	pw_md;		/* MD fields */
} ptrace_watchpoint_t;

For example amd64 defines MD as follows:
struct mdpw {
	void	*md_address;
	int	 md_condition;
	int	 md_length;
};

These calls are protected with the __HAVE_PTRACE_WATCHPOINTS guard.

Tested on amd64, initial support added for i386 and XEN.

Sponsored by <The NetBSD Foundation>

Revision 1.45.6.2 / (download) - annotate - [select for diffs], Mon Dec 5 10:55:29 2016 UTC (7 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.45.6.1: +28 -2 lines
Diff to previous 1.45.6.1 (colored) to branchpoint 1.45 (colored) to selected 1.72.2.1 (colored)

Sync with HEAD

Revision 1.49 / (download) - annotate - [select for diffs], Fri Nov 4 18:14:04 2016 UTC (7 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: nick-nhusb-base-20161204
Changes since 1.48: +2 -1 lines
Diff to previous 1.48 (colored) to selected 1.72.2.1 (colored)

deduplicate the complex lock reparent dance.

Revision 1.46.2.1 / (download) - annotate - [select for diffs], Fri Nov 4 14:49:22 2016 UTC (7 years, 4 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.46: +27 -2 lines
Diff to previous 1.46 (colored) to selected 1.72.2.1 (colored)

Sync with HEAD

Revision 1.48 / (download) - annotate - [select for diffs], Wed Nov 2 00:12:00 2016 UTC (7 years, 4 months ago) by pgoyette
Branch: MAIN
CVS Tags: pgoyette-localcount-20161104
Changes since 1.47: +4 -2 lines
Diff to previous 1.47 (colored) to selected 1.72.2.1 (colored)

* 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.

Revision 1.47 / (download) - annotate - [select for diffs], Wed Oct 19 09:44:01 2016 UTC (7 years, 5 months ago) by skrll
Branch: MAIN
Changes since 1.46: +24 -1 lines
Diff to previous 1.46 (colored) to selected 1.72.2.1 (colored)

PR kern/51514: ptrace(2) fails for 32-bit process on 64-bit kernel

Updated from the original patch in the PR by me.

Revision 1.45.6.1 / (download) - annotate - [select for diffs], Tue Sep 22 12:06:17 2015 UTC (8 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.45: +2 -1 lines
Diff to previous 1.45 (colored) to selected 1.72.2.1 (colored)

Sync with HEAD

Revision 1.46 / (download) - annotate - [select for diffs], Thu Jul 2 03:47:54 2015 UTC (8 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.45: +2 -1 lines
Diff to previous 1.45 (colored) to selected 1.72.2.1 (colored)

Support PIOD_READ_AUXV so that gdb can handle PIE binaries. From OpenBSD.

Revision 1.44.12.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:44 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.44: +9 -17 lines
Diff to previous 1.44 (colored) to selected 1.72.2.1 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.44.2.1 / (download) - annotate - [select for diffs], Thu May 22 11:41:18 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.44: +9 -17 lines
Diff to previous 1.44 (colored) next main 1.45 (colored) to selected 1.72.2.1 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.44.16.1 / (download) - annotate - [select for diffs], Sun May 18 17:46:21 2014 UTC (9 years, 10 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.44: +9 -17 lines
Diff to previous 1.44 (colored) next main 1.45 (colored) to selected 1.72.2.1 (colored)

sync with head

Revision 1.45 / (download) - annotate - [select for diffs], Sat Jan 4 00:10:03 2014 UTC (10 years, 2 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Branch point for: nick-nhusb
Changes since 1.44: +9 -17 lines
Diff to previous 1.44 (colored) to selected 1.72.2.1 (colored)

Remove __HAVE_PROCESS_XFPREGS and add the extra parameter for the size
  of the fp save area to all the process_read_fpregs() and
  process_write_fpregs() functions.
None of the functions have been modified to use the new parameters.
The size is set for all the writes, but some of the arch-specific reads
  just pass NULL.
The amd64 (and i386) need variable sized fp register save areas in order
  to support AVX and other enhanced register areas.
These functions are rarely called - so the extra argument won't matter.

Revision 1.40.20.1 / (download) - annotate - [select for diffs], Sat Feb 4 16:57:59 2012 UTC (12 years, 1 month ago) by bouyer
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2
Changes since 1.40: +2 -1 lines
Diff to previous 1.40 (colored) next main 1.41 (colored) to selected 1.72.2.1 (colored)

Apply patch, requested by jmcneill in ticket #1668:
	sys/arch/amd64/amd64/syscall.c			patch
	sys/arch/i386/i386/syscall.c			patch
	sys/arch/i386/i386/trap.c			patch
	sys/kern/kern_sig.c				patch
	sys/kern/kern_sleepq.c				patch
	sys/kern/kern_subr.c				patch
	sys/kern/sys_process.c				patch
	sys/secmodel/bsd44/secmodel_bsd44_suser.c	patch
	sys/sys/proc.h					patch
	sys/sys/ptrace.h				patch

arch/i386/i386/machdep.c, arch/amd64/amd64/machdep.c (from
arch/x86/x86/machdep.c) by christos:
Remove code that was used to avoid register spills. setcontext(2) can change
the registers, so re-fetching will produce the wrong result for trace_exit().
arch/i386/i386/trap.c by reinoud:
Fix the illegal instruction return address. It was using the value of the
cpu's %cr2 register but thats not valid:

CR2 Contains a value called Page Fault Linear Address (PFLA). When a page
fault occurs, the address the program attempted to access is stored in the CR2
register.

And this is thus NOT the illegal instruction address!
kern/kern_sig.c by christos:
PR kern/45327: Jared McNeill: ptrace: siginfo doesn't work with traced processes
When saving the signal in p->p_xstat, clear it from the pending mask, but
don't remove it from the siginfo queue, so that next time the debugger
delivers it, the original information is found.
When posting a signal from the debugger l->l_sigpendset is not set, so we
use the process pending signal and add it back to the process pending set.
Split sigget into sigget() and siggetinfo(). When a signal comes from the
debugger (l->l_sigpendset == NULL), using siggetinfo() try to fetch the
siginfo information from l->l_sigpend and then from p->p_sigpend if it
was not found. This allows us to pass siginfo information for traps from
the debugger.
don't delete signal from the debugger.
kern/kern_sleepq.c by christos:
PR kern/40594: Antti Kantee: Don't call issignal() here to determine what errno
to set for the interrupted syscall, because issignal() will consume the signal
and it will not be delivered to the process afterwards. Instead call
sigispending() (which now returns the first pending signal) and does not
consume the signal.
We need to process SA_STOP signals immediately, and not deliver them to
the process. Instead of re-structuring the code to do that, call issignal()
like before in that case. (tail -F /file^Zfg should not get interrupted).
kern/kern_subr.c by jmcneill, christos:
PR kern/45312: ptrace: PT_SETREGS can't alter system calls

Add a new PT_SYSCALLEMU request that cancels the current syscall, for
use with PT_SYSCALL.
For PT_SYSCALLEMU, no need to stop again on syscall exit.
ifdef unused variable with -UPTRACE

kern/sys_process.c, sys/proc.h, sys/ptrace.h, secmodel/bsd44/secmodel_bsd44_suser.c by jmcneill, christos:
PR kern/43681: PT_SYSCALL appears to be broken

sys_ptrace: For PT_CONTINUE/PT_SYSCALL/PT_DETACH, modify the p_trace_enabled
flag of the target process, not the calling process.
Process the signal now, otherwise calling issignal() and ignoring
the return will lose the signal if it came from the debugger
(issignal() clears p->p_xstat)
PR kern/45312: ptrace: PT_SETREGS can't alter system calls

Add a new PT_SYSCALLEMU request that cancels the current syscall, for
use with PT_SYSCALL.
PR kern/45330: ptrace: signals can alter syscall return values

process_stoptrace: defer signal processing to userret, ok christos@

Revision 1.44 / (download) - annotate - [select for diffs], Fri Sep 2 20:10:19 2011 UTC (12 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, khorben-n900, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, agc-symver-base, agc-symver
Branch point for: yamt-pagecache, tls-maxphys, rmind-smpnet
Changes since 1.43: +55 -17 lines
Diff to previous 1.43 (colored) to selected 1.72.2.1 (colored)

Add support for PTRACE_FORK.
- add a field in struct proc to save the forker/forkee pid, and a flag.
- add 3 new ptrace calls: PT_GET_PROCESS_STATE, PT_GET_EVENT_MASK,
  PT_SET_EVENT_MASK
Add a PT_STRINGS constant so that we don't hard-code the list of ptrace
subcalls in other programs (kdump).

Revision 1.43 / (download) - annotate - [select for diffs], Wed Aug 31 22:58:39 2011 UTC (12 years, 7 months ago) by jmcneill
Branch: MAIN
Changes since 1.42: +2 -1 lines
Diff to previous 1.42 (colored) to selected 1.72.2.1 (colored)

PR# kern/45312: ptrace: PT_SETREGS can't alter system calls

Add a new PT_SYSCALLEMU request that cancels the current syscall, for
use with PT_SYSCALL.

Revision 1.40.10.1 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:43 2010 UTC (14 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.40: +17 -1 lines
Diff to previous 1.40 (colored) next main 1.41 (colored) to selected 1.72.2.1 (colored)

sync with head

Revision 1.42 / (download) - annotate - [select for diffs], Mon Dec 14 00:48:35 2009 UTC (14 years, 3 months ago) by matt
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base7, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.41: +15 -1 lines
Diff to previous 1.41 (colored) to selected 1.72.2.1 (colored)

Merge from matt-nb5-mips64

Revision 1.41 / (download) - annotate - [select for diffs], Fri Oct 2 22:18:56 2009 UTC (14 years, 5 months ago) by elad
Branch: MAIN
CVS Tags: matt-premerge-20091211, jym-xensuspend-nbase
Changes since 1.40: +3 -1 lines
Diff to previous 1.40 (colored) to selected 1.72.2.1 (colored)

Move ptrace's security policy back to the subsystem itself.

Add a ptrace_init() so we have a place to register the listener; called
next to ktrinit().

Revision 1.40.28.1 / (download) - annotate - [select for diffs], Sun Aug 23 03:38:18 2009 UTC (14 years, 7 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb4-mips64-k7-u2a-k9b
Changes since 1.40: +15 -1 lines
Diff to previous 1.40 (colored) next main 1.41 (colored) to selected 1.72.2.1 (colored)

Change lazy fp load/save is done.  fpcurlwp is never NULL.
If no current lwp has the FP, then fpcurlwp is set to lwp0.
this allows many check for NULL and avoids a few null-derefs.
Since savefpregs clear COP1, loadfpregs can be called to reload
fpregs.  If it notices that situation, it just sets COP1 and returns
Save does not reset fpcurlwp, just clears COP1.  load does set fpcurlwp.

If MIPS3_SR_FR is set, all 32 64-bit FP registers are saved/restored via Xdc1.
If MIPS3_SR_FR is clear, only 32 32-bit FP register are saved/restore via Xwc1.
This preserves the existing ABI.

Revision 1.39.22.1 / (download) - annotate - [select for diffs], Mon Feb 18 21:07:23 2008 UTC (16 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored) next main 1.40 (colored) to selected 1.72.2.1 (colored)

Sync with HEAD.

Revision 1.34.2.4 / (download) - annotate - [select for diffs], Mon Jan 21 09:47:57 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.34.2.3: +2 -2 lines
Diff to previous 1.34.2.3 (colored) to branchpoint 1.34 (colored) next main 1.35 (colored) to selected 1.72.2.1 (colored)

sync with head

Revision 1.39.16.1 / (download) - annotate - [select for diffs], Wed Jan 9 01:58:15 2008 UTC (16 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored) next main 1.40 (colored) to selected 1.72.2.1 (colored)

sync with HEAD

Revision 1.39.28.1 / (download) - annotate - [select for diffs], Tue Jan 8 22:11:58 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored) next main 1.40 (colored) to selected 1.72.2.1 (colored)

Sync with HEAD

Revision 1.40 / (download) - annotate - [select for diffs], Sat Jan 5 12:41:43 2008 UTC (16 years, 2 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, nick-net80211-sync-base, nick-net80211-sync, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, netbsd-5-base, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, mjf-devfs2-base, mjf-devfs2, mjf-devfs-base, matt-nb5-pq3-base, matt-nb5-pq3, matt-mips64-base2, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jymxensuspend-base, jym-xensuspend-base, jym-xensuspend, hpcarm-cleanup-nbase, hpcarm-cleanup-base, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, bouyer-xeni386-nbase, bouyer-xeni386-base, ad-socklock-base1, ad-audiomp2-base, ad-audiomp2
Branch point for: yamt-nfs-mp, netbsd-5, matt-nb5-mips64
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored) to selected 1.72.2.1 (colored)

Don't pass curlwp into process_stoptrace()

Revision 1.34.2.3 / (download) - annotate - [select for diffs], Mon Sep 3 14:46:33 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.34.2.2: +4 -4 lines
Diff to previous 1.34.2.2 (colored) to branchpoint 1.34 (colored) to selected 1.72.2.1 (colored)

sync with head.

Revision 1.38.4.1 / (download) - annotate - [select for diffs], Mon Mar 12 06:00:53 2007 UTC (17 years ago) by rmind
Branch: yamt-idlelwp
Changes since 1.38: +4 -4 lines
Diff to previous 1.38 (colored) next main 1.39 (colored) to selected 1.72.2.1 (colored)

Sync with HEAD.

Revision 1.39 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:41 2007 UTC (17 years ago) by christos
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, yamt-idlelwp-base8, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, vmlocking, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, reinoud-bufcleanup, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, mjf-ufs-trans, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs, matt-armv6, bouyer-xeni386
Changes since 1.38: +4 -4 lines
Diff to previous 1.38 (colored) to selected 1.72.2.1 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.37.10.1 / (download) - annotate - [select for diffs], Fri Jan 12 01:04:24 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.37: +1 -2 lines
Diff to previous 1.37 (colored) next main 1.38 (colored) to selected 1.72.2.1 (colored)

Sync with head.

Revision 1.34.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:55 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.34.2.1: +1 -2 lines
Diff to previous 1.34.2.1 (colored) to branchpoint 1.34 (colored) to selected 1.72.2.1 (colored)

sync with head.

Revision 1.37.12.1 / (download) - annotate - [select for diffs], Sun Dec 10 07:19:29 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.37: +1 -2 lines
Diff to previous 1.37 (colored) next main 1.38 (colored) to selected 1.72.2.1 (colored)

sync with head.

Revision 1.38 / (download) - annotate - [select for diffs], Tue Nov 28 17:58:10 2006 UTC (17 years, 4 months ago) by elad
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.37: +1 -2 lines
Diff to previous 1.37 (colored) to selected 1.72.2.1 (colored)

Kill process_checkioperm().

While here, adjust comments.

Revision 1.35.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:59:42 2006 UTC (17 years, 6 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.35: +28 -1 lines
Diff to previous 1.35 (colored) next main 1.36 (colored) to selected 1.72.2.1 (colored)

sync with head

Revision 1.34.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:12:03 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.34: +35 -8 lines
Diff to previous 1.34 (colored) to selected 1.72.2.1 (colored)

sync with head.

Revision 1.35.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:40:19 2006 UTC (17 years, 11 months ago) by simonb
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.35: +28 -1 lines
Diff to previous 1.35 (colored) next main 1.36 (colored) to selected 1.72.2.1 (colored)

Sync with head.

Revision 1.36.4.1 / (download) - annotate - [select for diffs], Wed Apr 19 04:36:02 2006 UTC (17 years, 11 months ago) by elad
Branch: elad-kernelauth
Changes since 1.36: +25 -1 lines
Diff to previous 1.36 (colored) next main 1.37 (colored) to selected 1.72.2.1 (colored)

sync with head.

Revision 1.36.2.2 / (download) - annotate - [select for diffs], Mon Mar 13 09:07:43 2006 UTC (18 years ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.36.2.1: +160 -0 lines
Diff to previous 1.36.2.1 (colored) to branchpoint 1.36 (colored) next main 1.37 (colored) to selected 1.72.2.1 (colored)

sync with head.

Revision 1.37 / (download) - annotate - [select for diffs], Sun Mar 12 20:25:26 2006 UTC (18 years ago) by cube
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, simonb-timecounters-base, rpaulo-netinet-merge-pcb-base, peter-altq-base, peter-altq, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.36: +25 -1 lines
Diff to previous 1.36 (colored) to selected 1.72.2.1 (colored)

Support the generation of coredumps for 32-bits binaries under
COMPAT_NETBSD32.  They haven't worked for 5 years.

Silently agreed by the tech-kern readers.

XXX sparc64 MD glue still lacking.
XXX The FPU registers on i386 are not dumped correctly, according to my
XXX tests.  It shouldn't be much work for someone who has the slightest
XXX idea of how that stuff is supposed to be laid out on i386.

Revision 1.36.2.1, Sun Mar 5 07:21:38 2006 UTC (18 years ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.36: +0 -136 lines
FILE REMOVED

file ptrace.h was added on branch yamt-pdpolicy on 2006-03-13 09:07:43 +0000

Revision 1.36 / (download) - annotate - [select for diffs], Sun Mar 5 07:21:38 2006 UTC (18 years ago) by christos
Branch: MAIN
CVS Tags: yamt-pdpolicy-base
Branch point for: yamt-pdpolicy, elad-kernelauth
Changes since 1.35: +4 -1 lines
Diff to previous 1.35 (colored) to selected 1.72.2.1 (colored)

implement PT_SYSCALL

Revision 1.35 / (download) - annotate - [select for diffs], Sun Dec 11 12:25:21 2005 UTC (18 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace
Branch point for: simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.34: +8 -8 lines
Diff to previous 1.34 (colored) to selected 1.72.2.1 (colored)

merge ktrace-lwp.

Revision 1.30.2.6 / (download) - annotate - [select for diffs], Thu Nov 10 14:12:12 2005 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.30.2.5: +3 -3 lines
Diff to previous 1.30.2.5 (colored) next main 1.31 (colored) to selected 1.72.2.1 (colored)

Sync with HEAD. Here we go again...

Revision 1.34 / (download) - annotate - [select for diffs], Wed Jun 1 13:01:35 2005 UTC (18 years, 10 months ago) by scw
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: yamt-lazymbuf
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored) to selected 1.72.2.1 (colored)

Declare the second arg of process_write_{fp,}regs() to be const.
This permits sh5 to continue to re-use those functions in cpu_setmcontext()
with the recent change to Makefile.kern.inc (revision 1.62).

Revision 1.32.8.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:38 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.32: +15 -15 lines
Diff to previous 1.32 (colored) next main 1.33 (colored) to selected 1.72.2.1 (colored)

sync with -current

Revision 1.32.10.1 / (download) - annotate - [select for diffs], Sat Feb 12 18:17:56 2005 UTC (19 years, 1 month ago) by yamt
Branch: yamt-km
Changes since 1.32: +15 -15 lines
Diff to previous 1.32 (colored) next main 1.33 (colored) to selected 1.72.2.1 (colored)

sync with head.

Revision 1.30.2.5 / (download) - annotate - [select for diffs], Fri Feb 4 11:48:06 2005 UTC (19 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.30.2.4: +15 -15 lines
Diff to previous 1.30.2.4 (colored) to selected 1.72.2.1 (colored)

Sync with HEAD.

Revision 1.33 / (download) - annotate - [select for diffs], Thu Feb 3 19:20:02 2005 UTC (19 years, 1 month ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, kent-audio2-base
Changes since 1.32: +15 -15 lines
Diff to previous 1.32 (colored) to selected 1.72.2.1 (colored)

de-__P

Revision 1.30.2.4 / (download) - annotate - [select for diffs], Tue Sep 21 13:38:49 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.30.2.3: +8 -8 lines
Diff to previous 1.30.2.3 (colored) to selected 1.72.2.1 (colored)

Fix the sync with head I botched.

Revision 1.30.2.3 / (download) - annotate - [select for diffs], Sat Sep 18 14:56:30 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.30.2.2: +8 -8 lines
Diff to previous 1.30.2.2 (colored) to selected 1.72.2.1 (colored)

Sync with HEAD.

Revision 1.30.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:56:29 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.30.2.1: +9 -13 lines
Diff to previous 1.30.2.1 (colored) to selected 1.72.2.1 (colored)

Sync with HEAD

Revision 1.32 / (download) - annotate - [select for diffs], Thu Aug 7 16:34:11 2003 UTC (20 years, 7 months ago) by agc
Branch: MAIN
CVS Tags: yamt-km-base, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.31: +2 -6 lines
Diff to previous 1.31 (colored) to selected 1.72.2.1 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.

Revision 1.31 / (download) - annotate - [select for diffs], Tue Jul 8 06:18:00 2003 UTC (20 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.30: +8 -8 lines
Diff to previous 1.30 (colored) to selected 1.72.2.1 (colored)

prototype must not have variable name

Revision 1.30.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:27:17 2003 UTC (20 years, 9 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.30: +8 -8 lines
Diff to previous 1.30 (colored) to selected 1.72.2.1 (colored)

Apply the aborted ktrace-lwp changes to a specific branch.  This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it.  This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.

Revision 1.30 / (download) - annotate - [select for diffs], Sun Jun 29 22:32:27 2003 UTC (20 years, 9 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.29: +7 -7 lines
Diff to previous 1.29 (colored) to selected 1.72.2.1 (colored)

Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Jun 28 14:22:22 2003 UTC (20 years, 9 months ago) by darrenr
Branch: MAIN
Changes since 1.28: +8 -8 lines
Diff to previous 1.28 (colored) to selected 1.72.2.1 (colored)

Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V

Revision 1.28 / (download) - annotate - [select for diffs], Tue May 20 18:16:08 2003 UTC (20 years, 10 months ago) by nathanw
Branch: MAIN
Changes since 1.27: +14 -2 lines
Diff to previous 1.27 (colored) to selected 1.72.2.1 (colored)

Add a ptrace interface for iterating over and collecting information
about LWPs. Loosely inspired by a similar interface in HP-UX ttrace(2).

Revision 1.27 / (download) - annotate - [select for diffs], Thu Jan 23 17:35:18 2003 UTC (21 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.26: +2 -1 lines
Diff to previous 1.26 (colored) to selected 1.72.2.1 (colored)

PT_DUMPCORE support.

Revision 1.26 / (download) - annotate - [select for diffs], Sat Jan 18 09:53:20 2003 UTC (21 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.25: +10 -10 lines
Diff to previous 1.25 (colored) to selected 1.72.2.1 (colored)

Merge the nathanw_sa branch.

Revision 1.21.42.8 / (download) - annotate - [select for diffs], Tue Oct 15 18:01:59 2002 UTC (21 years, 5 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.21.42.7: +3 -3 lines
Diff to previous 1.21.42.7 (colored) to branchpoint 1.21 (colored) next main 1.22 (colored) to selected 1.72.2.1 (colored)

Make _validfoo() routines go back to taking a proc.

Revision 1.22.2.2 / (download) - annotate - [select for diffs], Sun Jun 23 17:51:59 2002 UTC (21 years, 9 months ago) by jdolecek
Branch: kqueue
Changes since 1.22.2.1: +27 -1 lines
Diff to previous 1.22.2.1 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored) to selected 1.72.2.1 (colored)

catch up with -current on kqueue branch

Revision 1.21.42.7 / (download) - annotate - [select for diffs], Thu Jun 20 23:04:22 2002 UTC (21 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.21.42.6: +5 -5 lines
Diff to previous 1.21.42.6 (colored) to branchpoint 1.21 (colored) to selected 1.72.2.1 (colored)

LWPify the sys_process/procfs rearrangement.

Revision 1.21.42.6 / (download) - annotate - [select for diffs], Thu Jun 20 03:50:15 2002 UTC (21 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.21.42.5: +10 -1 lines
Diff to previous 1.21.42.5 (colored) to branchpoint 1.21 (colored) to selected 1.72.2.1 (colored)

Catch up to -current.

Revision 1.25 / (download) - annotate - [select for diffs], Thu May 9 15:44:46 2002 UTC (21 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, gehenna-devsw-base, gehenna-devsw, fvdl_fs64_base
Changes since 1.24: +10 -1 lines
Diff to previous 1.24 (colored) to selected 1.72.2.1 (colored)

Move code shared by procfs and the kernel proper out of procfs and
into the kernel proper (renaming functions from procfs_* to process_*).

Revision 1.21.42.5 / (download) - annotate - [select for diffs], Mon Apr 1 07:49:12 2002 UTC (22 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.21.42.4: +18 -1 lines
Diff to previous 1.21.42.4 (colored) to branchpoint 1.21 (colored) to selected 1.72.2.1 (colored)

Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.24 / (download) - annotate - [select for diffs], Sun Mar 17 17:02:45 2002 UTC (22 years ago) by thorpej
Branch: MAIN
CVS Tags: eeh-devprop-base, eeh-devprop
Changes since 1.23: +18 -1 lines
Diff to previous 1.23 (colored) to selected 1.72.2.1 (colored)

Add a new ptrace request, PT_IO, as proposed by Artur Grabowski
on the <bsd-api-discuss@wasabisystems.com> mailing list.  PT_IO
is a more general inferior I/D space I/O mechanism.  FreeBSD and
OpenBSD have also added PT_IO.

From lha@stacken.kth.se, kern/15945.

Revision 1.22.2.1 / (download) - annotate - [select for diffs], Thu Jan 10 20:04:47 2002 UTC (22 years, 2 months ago) by thorpej
Branch: kqueue
Changes since 1.22: +6 -1 lines
Diff to previous 1.22 (colored) to selected 1.72.2.1 (colored)

Sync kqueue branch with -current.

Revision 1.21.42.4 / (download) - annotate - [select for diffs], Wed Jan 9 02:55:36 2002 UTC (22 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.21.42.3: +2 -2 lines
Diff to previous 1.21.42.3 (colored) to branchpoint 1.21 (colored) to selected 1.72.2.1 (colored)

Adapt ptrace_machdep_dorequest() to LWPs.

Revision 1.21.42.3 / (download) - annotate - [select for diffs], Tue Jan 8 00:34:44 2002 UTC (22 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.21.42.2: +6 -1 lines
Diff to previous 1.21.42.2 (colored) to branchpoint 1.21 (colored) to selected 1.72.2.1 (colored)

Catch up to -current.

Revision 1.23 / (download) - annotate - [select for diffs], Wed Dec 5 00:58:06 2001 UTC (22 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base
Changes since 1.22: +6 -1 lines
Diff to previous 1.22 (colored) to selected 1.72.2.1 (colored)

* Allow machine-dependent code to specify hooks for ptrace(2)
  (__HAVE_PTRACE_MACHDEP) and procfs (__HAVE_PROCFS_MACHDEP).
  These changes will allow platforms like x86 (XMM) and PowerPC
  (AltiVec) to export extended register sets in a sane manner.

* Use __HAVE_PTRACE_MACHDEP to export x86 XMM registers (standard
  FP + SSE/SSE2) using PT_{GET,SET}XMMREGS (in the machdep
  ptrace request space).
* Use __HAVE_PROCFS_MACHDEP to export x86 XMM registers via
  /proc/N/xmmregs in procfs.

Revision 1.21.42.2 / (download) - annotate - [select for diffs], Thu Jun 21 20:09:51 2001 UTC (22 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.21.42.1: +1 -3 lines
Diff to previous 1.21.42.1 (colored) to branchpoint 1.21 (colored) to selected 1.72.2.1 (colored)

Catch up to -current.

Revision 1.22 / (download) - annotate - [select for diffs], Wed Jun 13 16:06:27 2001 UTC (22 years, 9 months ago) by nathanw
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: kqueue
Changes since 1.21: +1 -3 lines
Diff to previous 1.21 (colored) to selected 1.72.2.1 (colored)

The trace_req() function is a no-op; garbage collect it.

Revision 1.21.42.1 / (download) - annotate - [select for diffs], Mon Mar 5 22:50:03 2001 UTC (23 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.21: +7 -7 lines
Diff to previous 1.21 (colored) to selected 1.72.2.1 (colored)

Initial commit of scheduler activations and lightweight process support.

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:11:08 1998 UTC (26 years, 1 month ago) by fvdl
Branch: WFJ-920714, CSRG
CVS Tags: lite-2, lite-1, date-03-may-96
Changes since 1.1.1.1: +14 -7 lines
Diff to previous 1.1.1.1 (colored) to selected 1.72.2.1 (colored)

Import 4.4BSD-Lite for reference

Revision 1.21 / (download) - annotate - [select for diffs], Fri Feb 9 18:25:26 1996 UTC (28 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej_scsipi, thorpej-signal-base, thorpej-signal, thorpej-setroot, netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2, mrg-vm-swap, minoura-xpg4dl-base, minoura-xpg4dl, marc-pcmcia-bp, marc-pcmcia-base, marc-pcmcia, kenh-if-detach-base, kenh-if-detach, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, is-newarp-before-merge, is-newarp-base, is-newarp, fvdl-softdep-base, fvdl-softdep, eeh-paddr_t-base, eeh-paddr_t, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-newbase, chs-ubc2-base, chs-ubc2, chs-ubc-base, chs-ubc, bouyer-scsipi
Branch point for: nathanw_sa
Changes since 1.20: +3 -1 lines
Diff to previous 1.20 (colored) to selected 1.72.2.1 (colored)

Filesystem prototype changes

Revision 1.20 / (download) - annotate - [select for diffs], Sun Mar 26 20:24:35 1995 UTC (29 years ago) by jtc
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.19: +4 -4 lines
Diff to previous 1.19 (colored) to selected 1.72.2.1 (colored)

KERNEL -> _KERNEL

Revision 1.19 / (download) - annotate - [select for diffs], Thu Jan 26 17:56:22 1995 UTC (29 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.18: +1 -3 lines
Diff to previous 1.18 (colored) to selected 1.72.2.1 (colored)

Remove PT_{READ,WRITE}_U.

Revision 1.17.2.1 / (download) - annotate - [select for diffs], Mon Aug 15 16:56:54 1994 UTC (29 years, 7 months ago) by mycroft
Branch: netbsd-1-0
CVS Tags: netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0
Changes since 1.17: +5 -10 lines
Diff to previous 1.17 (colored) next main 1.18 (colored) to selected 1.72.2.1 (colored)

update from trunk

Revision 1.18 / (download) - annotate - [select for diffs], Mon Aug 15 16:37:51 1994 UTC (29 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.17: +5 -10 lines
Diff to previous 1.17 (colored) to selected 1.72.2.1 (colored)

changes for the new sys_process.c, and some cleanup

Revision 1.17 / (download) - annotate - [select for diffs], Wed Jun 29 06:44:56 1994 UTC (29 years, 9 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base
Branch point for: netbsd-1-0
Changes since 1.16: +2 -1 lines
Diff to previous 1.16 (colored) to selected 1.72.2.1 (colored)

New RCS ID's, take two.  they're more aesthecially pleasant, and use 'NetBSD'

Revision 1.16 / (download) - annotate - [select for diffs], Mon Jun 27 19:31:48 1994 UTC (29 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored) to selected 1.72.2.1 (colored)

new standard, minimally intrusive ID format

Revision 1.15 / (download) - annotate - [select for diffs], Sat May 21 04:21:27 1994 UTC (29 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.14: +24 -22 lines
Diff to previous 1.14 (colored) to selected 1.72.2.1 (colored)

update to 4.4-lite, clean up, alphabetize

Revision 1.14 / (download) - annotate - [select for diffs], Sat May 21 03:52:05 1994 UTC (29 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.13: +2 -1 lines
Diff to previous 1.13 (colored) to selected 1.72.2.1 (colored)

update to 4.4-Lite; no serious changes

Revision 1.13 / (download) - annotate - [select for diffs], Wed May 4 03:42:34 1994 UTC (29 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored) to selected 1.72.2.1 (colored)

Rename a lot of process flags.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Feb 3 20:12:18 1994 UTC (30 years, 2 months ago) by pk
Branch: MAIN
CVS Tags: wnvm, nvm-base, nvm
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored) to selected 1.72.2.1 (colored)

fix typo

Revision 1.11 / (download) - annotate - [select for diffs], Sun Jan 30 17:44:58 1994 UTC (30 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.10: +10 -1 lines
Diff to previous 1.10 (colored) to selected 1.72.2.1 (colored)

Add prototypes for fpreg diddlers.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jan 20 21:23:18 1994 UTC (30 years, 2 months ago) by ws
Branch: MAIN
Changes since 1.9: +4 -4 lines
Diff to previous 1.9 (colored) to selected 1.72.2.1 (colored)

Make procfs really work for debugging.
Implement not & notepg files in procfs.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Jan 9 23:58:45 1994 UTC (30 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.8: +1 -3 lines
Diff to previous 1.8 (colored) to selected 1.72.2.1 (colored)

don't #ifdef out PT_ATTACH and PT_DETACH.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Jan 9 16:52:11 1994 UTC (30 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.7: +3 -4 lines
Diff to previous 1.7 (colored) to selected 1.72.2.1 (colored)

PT_STEP is actually machine dependent.  not all machines have it!

Revision 1.7 / (download) - annotate - [select for diffs], Sat Jan 8 15:19:13 1994 UTC (30 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.6: +1 -4 lines
Diff to previous 1.6 (colored) to selected 1.72.2.1 (colored)

Move some prototypes to a better location.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Jan 8 11:19:53 1994 UTC (30 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.5: +38 -10 lines
Diff to previous 1.5 (colored) to selected 1.72.2.1 (colored)

core reorg

Revision 1.5 / (download) - annotate - [select for diffs], Sun Sep 5 03:54:18 1993 UTC (30 years, 6 months ago) by sef
Branch: MAIN
CVS Tags: magnum-base, magnum
Changes since 1.4: +4 -1 lines
Diff to previous 1.4 (colored) to selected 1.72.2.1 (colored)

Yet more of the ptrace() reorg; now ptrace_setregs() and ptrace_getregs()
are present, along with PT_GETREGS and PT_SETREGS ptrace commands.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Sep 4 05:32:42 1993 UTC (30 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.3: +3 -2 lines
Diff to previous 1.3 (colored) to selected 1.72.2.1 (colored)

better ptrace() support from Sean Eric Fagan <sef@kithrup.com>

Revision 1.3 / (download) - annotate - [select for diffs], Thu May 20 16:22:53 1993 UTC (30 years, 10 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-0-9-patch-001, netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored) to selected 1.72.2.1 (colored)

add rcs ids as necessary, and also clean up headers

Revision 1.2 / (download) - annotate - [select for diffs], Mon Apr 19 01:23:03 1993 UTC (30 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored) to selected 1.72.2.1 (colored)

Add consistent multiple-inclusion protection.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (31 years ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-8, WFJ-386bsd-01
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored) to selected 1.72.2.1 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (31 years ago) by cgd
Branch: MAIN
Diff to selected 1.72.2.1 (colored)

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>