CVS log for src/sys/sys/ptrace.h
Up to [FreeBSD] / src / sys / sys
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.36: download - view: text, markup, annotated - select for diffs
Fri Feb 10 00:02:13 2012 UTC (110 minutes, 7 seconds ago) by kib
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +1 -0 lines
SVN rev 231320 on 2012-02-10 00:02:13Z by kib Mark the automatically attached child with PL_FLAG_CHILD in struct lwpinfo flags, for PT_FOLLOWFORK auto-attachment. In collaboration with: Dmitry Mikulin <dmitrym juniper net> MFC after: 1 week
Revision 1.35.2.1.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 11 04:20:22 2011 UTC (2 months, 4 weeks ago) by kensmith
Branches: RELENG_9_0
CVS tags: RELENG_9_0_0_RELEASE
Diff to: previous 1.35.2.1: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35.2.1: +0 -0 lines
SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release cycle. Approved by: re (implicit)
Revision 1.35.2.1: download - view: text, markup, annotated - select for diffs
Fri Sep 23 00:51:37 2011 UTC (4 months, 2 weeks ago) by kensmith
Branches: RELENG_9
CVS tags: RELENG_9_0_BP
Branch point for: RELENG_9_0
Diff to: previous 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35: +0 -0 lines
SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith Copy head to stable/9 as part of 9.0-RELEASE release cycle. Approved by: re (implicit)
Revision 1.28.10.7: download - view: text, markup, annotated - select for diffs
Sat Feb 5 22:57:14 2011 UTC (12 months ago) by kib
Branches: RELENG_8
Diff to: previous 1.28.10.6: preferred, colored; branchpoint 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28.10.6: +4 -0 lines
SVN rev 218355 on 2011-02-05 22:57:14Z by kib MFC r217819: Allow debugger to specify that children of the traced process should be automatically traced. Extend the ptrace(PL_LWPINFO) to report that child just forked. To not change the struct thread layout, td_dbg_forked was placed at the end of the structure.
Revision 1.35: download - view: text, markup, annotated - select for diffs
Tue Jan 25 10:59:21 2011 UTC (12 months, 2 weeks ago) by kib
Branches: MAIN
CVS tags: RELENG_9_BP
Branch point for: RELENG_9
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +4 -0 lines
SVN rev 217819 on 2011-01-25 10:59:21Z by kib Allow debugger to specify that children of the traced process should be automatically traced. Extend the ptrace(PL_LWPINFO) to report that child just forked. Reviewed by: davidxu, jhb MFC after: 2 weeks
Revision 1.28.10.6: download - view: text, markup, annotated - select for diffs
Mon Dec 27 12:39:24 2010 UTC (13 months, 2 weeks ago) by attilio
Branches: RELENG_8
Diff to: previous 1.28.10.5: preferred, colored; branchpoint 1.28: preferred, colored
Changes since revision 1.28.10.5: +2 -0 lines
SVN rev 216734 on 2010-12-27 12:39:24Z by attilio MFC r215679: Add the ability for GDB to printout the thread name along with other thread specific informations. In order to achieve that, for both on-line debugging and core analysis, a new member to PT_LWPINFO ptrace(2) interface is added and a new ELF note (NT_THRMISC) as well. Sponsored by: Sandvine Incorporated
Revision 1.28.14.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:10:29 2010 UTC (13 months, 2 weeks ago) by kensmith
Branches: RELENG_7_4
CVS tags: RELENG_7_4_0_RELEASE
Diff to: previous 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28: +0 -0 lines
SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release. Approved by: re (implicit)
Revision 1.28.10.5.2.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:09:25 2010 UTC (13 months, 2 weeks ago) by kensmith
Branches: RELENG_8_2
CVS tags: RELENG_8_2_0_RELEASE
Diff to: previous 1.28.10.5: preferred, colored; next MAIN 1.28.10.6: preferred, colored
Changes since revision 1.28.10.5: +0 -0 lines
SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release. Approved by: re (implicit)
Revision 1.34: download - view: text, markup, annotated - select for diffs
Mon Nov 22 14:42:13 2010 UTC (14 months, 2 weeks ago) by attilio
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +2 -0 lines
SVN rev 215679 on 2010-11-22 14:42:13Z by attilio Add the ability for GDB to printout the thread name along with other thread specific informations. In order to do that, and in order to avoid KBI breakage with existing infrastructure the following semantic is implemented: - For live programs, a new member to the PT_LWPINFO is added (pl_tdname) - For cores, a new ELF note is added (NT_THRMISC) that can be used for storing thread specific, miscellaneous, informations. Right now it is just popluated with a thread name. GDB, then, retrieves the correct informations from the corefile via the BFD interface, as it groks the ELF notes and create appropriate pseudo-sections. Sponsored by: Sandvine Incorporated Tested by: gianni Discussed with: dim, kan, kib MFC after: 2 weeks
Revision 1.28.10.5: download - view: text, markup, annotated - select for diffs
Wed Nov 3 21:24:21 2010 UTC (15 months ago) by kib
Branches: RELENG_8
CVS tags: RELENG_8_2_BP
Branch point for: RELENG_8_2
Diff to: previous 1.28.10.4: preferred, colored; branchpoint 1.28: preferred, colored
Changes since revision 1.28.10.4: +3 -1 lines
SVN rev 214756 on 2010-11-03 21:24:21Z by kib MFC r209688: Extend ptrace(PT_LWPINFO) to report siginfo for the signal that caused debugee stop.
Revision 1.28.10.4: download - view: text, markup, annotated - select for diffs
Wed Nov 3 21:21:12 2010 UTC (15 months ago) by kib
Branches: RELENG_8
Diff to: previous 1.28.10.3: preferred, colored; branchpoint 1.28: preferred, colored
Changes since revision 1.28.10.3: +3 -0 lines
SVN rev 214755 on 2010-11-03 21:21:12Z by kib MFC r208453: Reorganize syscall entry and leave handling. Implement ptrace_lwpinfo pl_flags PL_FLAG_SCE, PL_FLAG_SCX and PL_FLAG_EXEC. The i386, amd64, sparc64, sun4v, powerpc and ia64 syscall()s are changed to use syscallenter()/syscallret(). MIPS and arm are not converted and use the mostly unchanged syscall() implementation. MFC r208514: Change ia64' struct syscall_args definition so that args is a pointer to the arguments array instead of array itself. MFC r208566: Allow to use syscallname(9) outside subr_trap.c. MFC r209258 (by rpaulo): Make DTrace syscall provider work again by including opt_kdtrace.h here. MFC r209313: Only enable kdtrace hook in the LINT on the architectures that implement it. MFC r209697: Obey sv_syscallnames bounds in syscallname(). NOTE: The KBI of the struct sysentvec is changed, new required members sv_set_syscall_retval, sv_fetch_syscall_args and sv_syscallnames are added. The sv_prepsyscall field is now ignored. Third-party modules using the struct sysentvec must be modified and recompiled, we believe that only ABI emulators are affected. No such out-of-tree modules are known. In-tree modules that are affected by the change were converted to depend on exact version of the kernel, see r214421.
Revision 1.33: download - view: text, markup, annotated - select for diffs
Sun Jul 4 11:48:30 2010 UTC (19 months, 1 week ago) by kib
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +3 -1 lines
SVN rev 209688 on 2010-07-04 11:48:30Z by kib Extend ptrace(PT_LWPINFO) to report siginfo for the signal that caused debugee stop. The change should keep the ABI. Take care of compat32. Discussed with: davidxu, jhb MFC after: 2 weeks
Revision 1.28.10.3.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 14 02:09:06 2010 UTC (19 months, 4 weeks ago) by kensmith
Branches: RELENG_8_1
CVS tags: RELENG_8_1_0_RELEASE
Diff to: previous 1.28.10.3: preferred, colored; next MAIN 1.28.10.4: preferred, colored
Changes since revision 1.28.10.3: +0 -0 lines
SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith Copy stable/8 to releng/8.1 in preparation for 8.1-RC1. Approved by: re (implicit)
Revision 1.32: download - view: text, markup, annotated - select for diffs
Sun May 23 18:32:02 2010 UTC (20 months, 2 weeks ago) by kib
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -0 lines
SVN rev 208453 on 2010-05-23 18:32:02Z by kib Reorganize syscall entry and leave handling. Extend struct sysvec with three new elements: sv_fetch_syscall_args - the method to fetch syscall arguments from usermode into struct syscall_args. The structure is machine-depended (this might be reconsidered after all architectures are converted). sv_set_syscall_retval - the method to set a return value for usermode from the syscall. It is a generalization of cpu_set_syscall_retval(9) to allow ABIs to override the way to set a return value. sv_syscallnames - the table of syscall names. Use sv_set_syscall_retval in kern_sigsuspend() instead of hardcoding the call to cpu_set_syscall_retval(). The new functions syscallenter(9) and syscallret(9) are provided that use sv_*syscall* pointers and contain the common repeated code from the syscall() implementations for the architecture-specific syscall trap handlers. Syscallenter() fetches arguments, calls syscall implementation from ABI sysent table, and set up return frame. The end of syscall bookkeeping is done by syscallret(). Take advantage of single place for MI syscall handling code and implement ptrace_lwpinfo pl_flags PL_FLAG_SCE, PL_FLAG_SCX and PL_FLAG_EXEC. The SCE and SCX flags notify the debugger that the thread is stopped at syscall entry or return point respectively. The EXEC flag augments SCX and notifies debugger that the process address space was changed by one of exec(2)-family syscalls. The i386, amd64, sparc64, sun4v, powerpc and ia64 syscall()s are changed to use syscallenter()/syscallret(). MIPS and arm are not converted and use the mostly unchanged syscall() implementation. Reviewed by: jhb, marcel, marius, nwhitehorn, stas Tested by: marcel (ia64), marius (sparc64), nwhitehorn (powerpc), stas (mips) MFC after: 1 month
Revision 1.28.10.3: download - view: text, markup, annotated - select for diffs
Wed Apr 7 02:24:41 2010 UTC (22 months ago) by nwhitehorn
Branches: RELENG_8
CVS tags: RELENG_8_1_BP
Branch point for: RELENG_8_1
Diff to: previous 1.28.10.2: preferred, colored; branchpoint 1.28: preferred, colored
Changes since revision 1.28.10.2: +2 -1 lines
SVN rev 206336 on 2010-04-07 02:24:41Z by nwhitehorn MFC r205014,205015: Provide groundwork for 32-bit binary compatibility on non-x86 platforms, for upcoming 64-bit PowerPC and MIPS support. This renames the COMPAT_IA32 option to COMPAT_FREEBSD32, removes some IA32-specific code from MI parts of the kernel and enhances the freebsd32 compatibility code to support big-endian platforms. This MFC is required for MFCs of later changes to the freebsd32 compatibility from HEAD. Requested by: kib
Revision 1.31: download - view: text, markup, annotated - select for diffs
Thu Mar 11 14:49:06 2010 UTC (23 months ago) by nwhitehorn
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +2 -1 lines
SVN rev 205014 on 2010-03-11 14:49:06Z by nwhitehorn Provide groundwork for 32-bit binary compatibility on non-x86 platforms, for upcoming 64-bit PowerPC and MIPS support. This renames the COMPAT_IA32 option to COMPAT_FREEBSD32, removes some IA32-specific code from MI parts of the kernel and enhances the freebsd32 compatibility code to support big-endian platforms. Reviewed by: kib, jhb
Revision 1.28.10.2: download - view: text, markup, annotated - select for diffs
Sun Mar 7 00:05:44 2010 UTC (23 months ago) by marcel
Branches: RELENG_8
Diff to: previous 1.28.10.1: preferred, colored; branchpoint 1.28: preferred, colored
Changes since revision 1.28.10.1: +18 -0 lines
SVN rev 204813 on 2010-03-07 00:05:44Z by marcel MFC revs 203696, 203708, 203783 and 203788: Add PT_VM_TIMESTAMP and PT_VM_ENTRY so that the tracing process can obtain the memory map of the traced process. Requested by: kib@
Revision 1.30: download - view: text, markup, annotated - select for diffs
Thu Feb 11 18:00:53 2010 UTC (23 months, 4 weeks ago) by marcel
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +10 -7 lines
SVN rev 203783 on 2010-02-11 18:00:53Z by marcel o Add support for COMPAT_IA32. o Incorporate review comments: - Properly reference and lock the map - Take into account that the VM map can change inbetween requests - Add the fileid and fsid attributes Credits: kib@ Reviewed by: kib@
Revision 1.28.12.1: download - view: text, markup, annotated - select for diffs
Wed Feb 10 00:26:20 2010 UTC (2 years ago) by kensmith
Branches: RELENG_7_3
CVS tags: RELENG_7_3_0_RELEASE
Diff to: previous 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28: +0 -0 lines
SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process. Approved by: re (implicit)
Revision 1.29: download - view: text, markup, annotated - select for diffs
Tue Feb 9 05:52:35 2010 UTC (2 years ago) by marcel
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +15 -0 lines
SVN rev 203696 on 2010-02-09 05:52:35Z by marcel Add PT_VM_TIMESTAMP and PT_VM_ENTRY so that the tracing process can obtain the memory map of the traced process. PT_VM_TIMESTAMP can be used to check if the memory map changed since the last time to avoid iterating over all the VM entries unnecesarily. MFC after: 1 month
Revision 1.28.10.1.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 25 01:10:29 2009 UTC (2 years, 3 months ago) by kensmith
Branches: RELENG_8_0
CVS tags: RELENG_8_0_0_RELEASE
Diff to: previous 1.28.10.1: preferred, colored; next MAIN 1.28.10.2: preferred, colored
Changes since revision 1.28.10.1: +0 -0 lines
SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure. Approved by: re (implicit)
Revision 1.28.10.1: download - view: text, markup, annotated - select for diffs
Mon Aug 3 08:13:06 2009 UTC (2 years, 6 months ago) by kensmith
Branches: RELENG_8
CVS tags: RELENG_8_0_BP
Branch point for: RELENG_8_0
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +0 -0 lines
SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith Copy head to stable/8 as part of 8.0 Release cycle. Approved by: re (Implicit)
Revision 1.28.8.1: download - view: text, markup, annotated - select for diffs
Wed Apr 15 03:14:26 2009 UTC (2 years, 9 months ago) by kensmith
Branches: RELENG_7_2
CVS tags: RELENG_7_2_0_RELEASE
Diff to: previous 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28: +0 -0 lines
SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE. Approved by: re (implicit)
Revision 1.28.6.1: download - view: text, markup, annotated - select for diffs
Tue Nov 25 02:59:29 2008 UTC (3 years, 2 months ago) by kensmith
Branches: RELENG_7_1
CVS tags: RELENG_7_1_0_RELEASE
Diff to: previous 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28: +0 -0 lines
SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith Create releng/7.1 in preparation for moving into RC phase of 7.1 release cycle. Approved by: re (implicit)
Revision 1.27.2.1.6.1: download - view: text, markup, annotated - select for diffs
Thu Oct 2 02:57:24 2008 UTC (3 years, 4 months ago) by kensmith
Branches: RELENG_6_4
CVS tags: RELENG_6_4_0_RELEASE
Diff to: previous 1.27.2.1: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27.2.1: +0 -0 lines
SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith Create releng/6.4 from stable/6 in preparation for 6.4-RC1. Approved by: re (implicit)
Revision 1.27.2.1: download - view: text, markup, annotated - select for diffs
Wed May 17 00:41:48 2006 UTC (5 years, 8 months ago) by davidxu
Branches: RELENG_6
CVS tags: RELENG_6_4_BP, RELENG_6_3_BP, RELENG_6_3_0_RELEASE, RELENG_6_3, RELENG_6_2_BP, RELENG_6_2_0_RELEASE, RELENG_6_2
Branch point for: RELENG_6_4
Diff to: previous 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27: +4 -0 lines
MFC following revisions: sys/ptrace.h 1.27 kern/sys_process 1.135 get LWP's signal info.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Mon Feb 6 09:41:56 2006 UTC (6 years ago) by davidxu
Branches: MAIN
CVS tags: RELENG_8_BP, RELENG_7_BP, RELENG_7_4_BP, RELENG_7_3_BP, RELENG_7_2_BP, RELENG_7_1_BP, RELENG_7_0_BP, RELENG_7_0_0_RELEASE, RELENG_7_0, RELENG_7
Branch point for: RELENG_8, RELENG_7_4, RELENG_7_3, RELENG_7_2, RELENG_7_1
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +4 -0 lines
Add members pl_sigmask and pl_siglist into ptrace_lwpinfo to get lwp's signal mask and pending signals.
Revision 1.27: download - view: text, markup, annotated - select for diffs
Thu Jun 30 07:49:22 2005 UTC (6 years, 7 months ago) by peter
Branches: MAIN
CVS tags: RELENG_6_BP, RELENG_6_1_BP, RELENG_6_1_0_RELEASE, RELENG_6_1, RELENG_6_0_BP, RELENG_6_0_0_RELEASE, RELENG_6_0
Branch point for: RELENG_6
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +11 -0 lines
Jumbo-commit to enhance 32 bit application support on 64 bit kernels. This is good enough to be able to run a RELENG_4 gdb binary against a RELENG_4 application, along with various other tools (eg: 4.x gcore). We use this at work. ia32_reg.[ch]: handle the 32 bit register file format, used by ptrace, procfs and core dumps. procfs_*regs.c: vary the format of proc/XXX/*regs depending on the client and target application. procfs_map.c: Don't print a 64 bit value to 32 bit consumers, or their sscanf fails. They expect an unsigned long. imgact_elf.c: produce a valid 32 bit coredump for 32 bit apps. sys_process.c: handle 32 bit consumers debugging 32 bit targets. Note that 64 bit consumers can still debug 32 bit targets. IA64 has got stubs for ia32_reg.c. Known limitations: a 5.x/6.x gdb uses get/setcontext(), which isn't implemented in the 32/64 wrapper yet. We also make a tiny patch to gdb pacify it over conflicting formats of ld-elf.so.1. Approved by: re
Revision 1.25.6.1: download - view: text, markup, annotated - select for diffs
Sun May 1 04:03:06 2005 UTC (6 years, 9 months ago) by cperciva
Branches: RELENG_5_4
CVS tags: RELENG_5_4_0_RELEASE
Diff to: previous 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25: +1 -0 lines
MFC revision 1.26: Add PROC_UNLOCK(p) to PTRACESTOP_SC(p, td, flag), in order to catch up to changes in the behaviour of ptracestop(). Approved by: re (kensmith)
Revision 1.25.2.1: download - view: text, markup, annotated - select for diffs
Sun May 1 04:02:05 2005 UTC (6 years, 9 months ago) by cperciva
Branches: RELENG_5
CVS tags: RELENG_5_5_BP, RELENG_5_5_0_RELEASE, RELENG_5_5
Diff to: previous 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25: +1 -0 lines
MFC revision 1.26: Add PROC_UNLOCK(p) to PTRACESTOP_SC(p, td, flag), in order to catch up to changes in the behaviour of ptracestop(). Approved by: re (kensmith)
Revision 1.26: download - view: text, markup, annotated - select for diffs
Fri Apr 29 22:38:02 2005 UTC (6 years, 9 months ago) by cperciva
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +1 -0 lines
Add PROC_UNLOCK(p) to PTRACESTOP_SC(p, td, flag). This is necessary due to a change made in revision 1.284 of sys/kern/kern_sig.c in August 2004 which made ptracestop() return with the process still locked. Submitted by: Mauritz Sundell MFC After: 3 days
Revision 1.25: download - view: text, markup, annotated - select for diffs
Sun Aug 8 22:26:11 2004 UTC (7 years, 6 months ago) by davidxu
Branches: MAIN
CVS tags: RELENG_5_BP, RELENG_5_4_BP, RELENG_5_3_BP, RELENG_5_3_0_RELEASE, RELENG_5_3
Branch point for: RELENG_5_4, RELENG_5
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -0 lines
Add pl_flags to ptrace_lwpinfo, two flags PL_FLAG_SA and PL_FLAG_BOUND indicate that a thread is in UTS critical region. Reviewed by: deischen Approved by: marcel
Revision 1.24: download - view: text, markup, annotated - select for diffs
Tue Jul 13 07:25:23 2004 UTC (7 years, 6 months ago) by davidxu
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +8 -2 lines
Implement following commands: PT_CLEARSTEP, PT_SETSTEP, PT_SUSPEND PT_RESUME, PT_GETNUMLWPS, PT_GETLWPLIST.
Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Jul 12 05:07:50 2004 UTC (7 years, 7 months ago) by marcel
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +9 -0 lines
Implement the PT_LWPINFO request. This request can be used by the
tracing process to obtain information about the LWP that caused the
traced process to stop. Debuggers can use this information to select
the thread currently running on the LWP as the current thread.
The request has been made compatible with NetBSD for as much as
possible. This implementation differs from NetBSD in the following
ways:
1. The data argument is allowed to be smaller than the size of the
ptrace_lwpinfo structure known to the kernel, but not 0. This
is opposite to what NetBSD allows. The reason for this is that
we can extend the structure without affecting older binaries.
2. On NetBSD the tracing process is to set the pl_lwpid field to
the Id of the LWP it wants information of. We don't do that.
Our ptrace interface allows passing the LWP Id instead of the
PID. The tracing process is to set the PID to the LWP Id it
wants information of.
3. When the PID is actually the PID of the tracing process, this
request returns the information about the LWP that caused the
process to stop. This was the whole purpose of the request in
the first place.
When the traced process has exited, this request will return the
LWP Id 0, indicating that the process state is not the result of
an event specific to a LWP.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Wed Apr 7 04:19:49 2004 UTC (7 years, 10 months ago) by imp
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +0 -4 lines
Remove advertising clause from University of California Regent's license, per letter dated July 22, 1999. Approved by: core
Revision 1.21: download - view: text, markup, annotated - select for diffs
Thu Oct 9 10:17:16 2003 UTC (8 years, 4 months ago) by robert
Branches: MAIN
CVS tags: RELENG_5_2_BP, RELENG_5_2_1_RELEASE, RELENG_5_2_0_RELEASE, RELENG_5_2
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +17 -0 lines
Implement preliminary support for the PT_SYSCALL command to ptrace(2).
Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri Aug 15 05:25:06 2003 UTC (8 years, 5 months ago) by marcel
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +4 -0 lines
Add or finish support for machine dependent ptrace requests. When we check for permissions, do it for all requests, not the known requests. Later when we actually service the request we deal with the invalid requests we previously caught earlier. This commit changes the behaviour of the ptrace(2) interface for boundary cases such as an unknown request without proper permissions. Previously we would return EINVAL. Now we return EBUSY or EPERM. Platforms need to define __HAVE_PTRACE_MACHDEP when they have MD requests. This makes the prototype of cpu_ptrace() visible and introduces a call to this function for all requests greater or equal to PT_FIRSTMACH. Silence on: audit
Revision 1.10.2.2: download - view: text, markup, annotated - select for diffs
Thu Jan 2 20:39:13 2003 UTC (9 years, 1 month ago) by kan
Branches: RELENG_4
CVS tags: RELENG_4_9_BP, RELENG_4_9_0_RELEASE, RELENG_4_9, RELENG_4_8_BP, RELENG_4_8_0_RELEASE, RELENG_4_8, RELENG_4_11_BP, RELENG_4_11_0_RELEASE, RELENG_4_11, RELENG_4_10_BP, RELENG_4_10_0_RELEASE, RELENG_4_10
Diff to: previous 1.10.2.1: preferred, colored; branchpoint 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10.2.1: +19 -1 lines
MFC: split ptrace(2) syscall into a wrapper doing copyin/copyout operations and kern_ptrace implementation function. This is required for an upcoming Linux/i386 emulator ptrace syscall.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat Mar 16 02:40:01 2002 UTC (9 years, 10 months ago) by des
Branches: MAIN
CVS tags: RELENG_5_1_BP, RELENG_5_1_0_RELEASE, RELENG_5_1, RELENG_5_0_BP, RELENG_5_0_0_RELEASE, RELENG_5_0
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +16 -0 lines
Implement PT_IO (read / write arbitrary amounts of data or text).
Submitted by: Artur Grabowski <art@{blahonga,openbsd}.org>
Obtained from: OpenBSD
Revision 1.18: download - view: text, markup, annotated - select for diffs
Sat Mar 16 00:25:53 2002 UTC (9 years, 10 months ago) by des
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +8 -1 lines
Move the definition of PT_[GS]ET{,DB,FP}REGS from the MD ptrace.h to the
MI ptrace.h, since all platforms define them. Keep the MD ptrace.h around
for FIX_SSTEP (which is currently only needed on Alpha).
Revision 1.17: download - view: text, markup, annotated - select for diffs
Sat Nov 3 03:17:16 2001 UTC (10 years, 3 months ago) by des
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +1 -0 lines
Declare struct uio so consumers don't have to #include <sys/uio.h> unless they intend to call proc_rwmem().
Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun Oct 21 23:57:24 2001 UTC (10 years, 3 months ago) by des
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +8 -8 lines
Move procfs_* from procfs_machdep.c into sys_process.c, and rename them to proc_* in the process; procfs_machdep.c is no longer needed. Run-tested on i386, build-tested on Alpha, untested on other platforms.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Oct 7 20:08:42 2001 UTC (10 years, 4 months ago) by des
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +22 -4 lines
Dissociate ptrace from procfs.
Until now, the ptrace syscall was implemented as a wrapper that called
various functions in procfs depending on which ptrace operation was
requested. Most of these functions were themselves wrappers around
procfs_{read,write}_{,db,fp}regs(), with only some extra error checks,
which weren't necessary in the ptrace case anyway.
This commit moves procfs_rwmem() from procfs_mem.c into sys_process.c
(renaming it to proc_rwmem() in the process), and implements ptrace()
directly in terms of procfs_{read,write}_{,db,fp}regs() instead of
having it fake up a struct uio and then call procfs_do{,db,fp}regs().
It also moves the prototypes for procfs_{read,write}_{,db,fp}regs()
and proc_rwmem() from proc.h to ptrace.h, and marks all procfs files
except procfs_machdep.c as "optional procfs" instead of "standard".
Revision 1.10.2.1: download - view: text, markup, annotated - select for diffs
Wed Oct 3 06:55:43 2001 UTC (10 years, 4 months ago) by peter
Branches: RELENG_4
CVS tags: RELENG_4_7_BP, RELENG_4_7_0_RELEASE, RELENG_4_7, RELENG_4_6_BP, RELENG_4_6_2_RELEASE, RELENG_4_6_1_RELEASE, RELENG_4_6_0_RELEASE, RELENG_4_6, RELENG_4_5_BP, RELENG_4_5_0_RELEASE, RELENG_4_5
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -3 lines
MFC: Initiate de-orbit burn for PT_READ_U/PT_WRITE_U. These particularly nasty interfaces should have been put to death long ago. Nothing in the tree uses them (and should not anyway since we have PT_GETREGS etc) and as near as I can tell, no ports use it either.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Wed Sep 12 08:38:05 2001 UTC (10 years, 5 months ago) by julian
Branches: MAIN
CVS tags: KSE_MILESTONE_2
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -3 lines
KSE Milestone 2 Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha
Revision 1.13: download - view: text, markup, annotated - select for diffs
Tue Aug 21 13:41:46 2001 UTC (10 years, 5 months ago) by jhb
Branches: MAIN
CVS tags: KSE_PRE_MILESTONE_2
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +1 -2 lines
GC unused prototype of ptrace_write_u(). Forgotten by: peter
Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed Aug 8 05:25:15 2001 UTC (10 years, 6 months ago) by peter
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -3 lines
Zap 'ptrace(PT_READ_U, ...)' and 'ptrace(PT_WRITE_U, ...)' since they are a really nasty interface that should have been killed long ago when 'ptrace(PT_[SG]ETREGS' etc came along. The entity that they operate on (struct user) will not be around much longer since it is part-per-process and part-per-thread in a post-KSE world. gdb does not actually use this except for the obscure 'info udot' command which does a hexdump of as much of the child's 'struct user' as it can get. It carries its own #defines so it doesn't break compiles.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu Oct 19 18:55:22 2000 UTC (11 years, 3 months ago) by jhb
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +1 -2 lines
- Move the prototype for proc_reparent from sys/ptrace.h to sys/proc.h - Fix the sorting of function prototypes in sys/proc.h
Revision 1.10: download - view: text, markup, annotated - select for diffs
Wed Dec 29 04:24:45 1999 UTC (12 years, 1 month ago) by peter
Branches: MAIN
CVS tags: RELENG_4_BP, RELENG_4_4_BP, RELENG_4_4_0_RELEASE, RELENG_4_4, RELENG_4_3_BP, RELENG_4_3_0_RELEASE, RELENG_4_3, RELENG_4_2_0_RELEASE, RELENG_4_1_1_RELEASE, RELENG_4_1_0_RELEASE, RELENG_4_0_0_RELEASE, PRE_SMPNG
Branch point for: RELENG_4
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +4 -4 lines
Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL" is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come.
Revision 1.4.4.1: download - view: text, markup, annotated - select for diffs
Sun Sep 5 08:37:50 1999 UTC (12 years, 5 months ago) by peter
Branches: RELENG_2_1_0
Diff to: previous 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4: +1 -1 lines
$Id$ -> $FreeBSD$
Revision 1.5.4.1: download - view: text, markup, annotated - select for diffs
Sun Sep 5 08:22:46 1999 UTC (12 years, 5 months ago) by peter
Branches: RELENG_2_2
Diff to: previous 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5: +1 -1 lines
$Id$ -> $FreeBSD$
Revision 1.8.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 29 16:32:38 1999 UTC (12 years, 5 months ago) by peter
Branches: RELENG_3
CVS tags: RELENG_3_5_0_RELEASE, RELENG_3_4_0_RELEASE, RELENG_3_3_0_RELEASE
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +1 -1 lines
$Id$ -> $FreeBSD$
Revision 1.9: download - view: text, markup, annotated - select for diffs
Sat Aug 28 00:51:57 1999 UTC (12 years, 5 months ago) by peter
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +1 -1 lines
$Id$ -> $FreeBSD$
Revision 1.8: download - view: text, markup, annotated - select for diffs
Sun Jun 7 17:13:03 1998 UTC (13 years, 8 months ago) by dfr
Branches: MAIN
CVS tags: RELENG_3_BP, RELENG_3_2_PAO_BP, RELENG_3_2_PAO, RELENG_3_2_0_RELEASE, RELENG_3_1_0_RELEASE, RELENG_3_0_0_RELEASE, PRE_VFS_BIO_NFS_PATCH, PRE_SMP_VMSHARE, PRE_NOBDEV, PRE_NEWBUS, POST_VFS_BIO_NFS_PATCH, POST_SMP_VMSHARE, POST_NEWBUS
Branch point for: RELENG_3
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -3 lines
This commit fixes various 64bit portability problems required for FreeBSD/alpha. The most significant item is to change the command argument to ioctl functions from int to u_long. This change brings us inline with various other BSD versions. Driver writers may like to use (__FreeBSD_version == 300003) to detect this change. The prototype FreeBSD/alpha machdep will follow in a couple of days time.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Sat Feb 22 09:45:43 1997 UTC (14 years, 11 months ago) by peter
Branches: MAIN
CVS tags: pre_smp_merge, post_smp_merge, WOLLMAN_MBUF, PRE_SOFTUPDATE, PRE_DEVFS_SLICE, POST_SOFTUPDATE, POST_DEVFS_SLICE, BP_WOLLMAN_MBUF
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +1 -1 lines
Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not ready for it yet.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue Jan 14 06:55:27 1997 UTC (15 years ago) by jkh
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +1 -1 lines
Make the long-awaited change from $Id$ to $FreeBSD$ This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Wed Jan 24 18:11:11 1996 UTC (16 years ago) by peter
Branches: MAIN
CVS tags: wollman_polling, RELENG_2_2_BP, RELENG_2_2_8_RELEASE, RELENG_2_2_7_RELEASE, RELENG_2_2_6_RELEASE, RELENG_2_2_5_RELEASE, RELENG_2_2_2_RELEASE, RELENG_2_2_1_RELEASE, RELENG_2_2_0_RELEASE
Branch point for: RELENG_2_2
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +1 -3 lines
proc.h: Add PHOLD()/PRELE() macros to ensure the U area is not swapped while doing ptrace/procfs in it. ptrace.h: uncomment PT_ATTACH/PT_DETACH, I am committing code to do this.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Mar 16 18:16:23 1995 UTC (16 years, 10 months ago) by bde
Branches: MAIN
CVS tags: RELENG_2_1_7_RELEASE, RELENG_2_1_6_RELEASE, RELENG_2_1_6_1_RELEASE, RELENG_2_1_5_RELEASE, RELENG_2_1_0_RELEASE, RELENG_2_1_0_BP, RELENG_2_0_5_RELEASE, RELENG_2_0_5_BP, RELENG_2_0_5_ALPHA, RELENG_2_0_5
Branch point for: RELENG_2_1_0
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -1 lines
Add and move declarations to fix all of the warnings from `gcc -Wimplicit' (except in netccitt, netiso and netns) and most of the warnings from `gcc -Wnested-externs'. Fix all the bugs found. There were no serious ones.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Mon Aug 8 13:00:27 1994 UTC (17 years, 6 months ago) by davidg
Branches: MAIN
CVS tags: RELEASE_2_0, OLAH_TTCP, BETA_2_0, ALPHA_2_0
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +4 -1 lines
Process tracing code. Written by Sean Eric Fagan. Submitted by: Sean Eric Fagan
Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Aug 2 07:53:24 1994 UTC (17 years, 6 months ago) by davidg
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +1 -0 lines
Added $Id$
Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Tue May 24 10:09:02 1994 UTC (17 years, 8 months ago) by rgrimes
Branches: CSRG
CVS tags: bsd_44_lite_2, bsd_44_lite, REL_before_johndavid_2_0_0
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
BSD 4.4 Lite Kernel Sources
Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue May 24 10:09:01 1994 UTC (17 years, 8 months ago) by rgrimes
Branches: MAIN
Initial revision
