#
a2c17aba |
| 20-Mar-2023 |
hannken <hannken@NetBSD.org> |
Adjust pc/npc before syscall allowing EJUSTRETURN to return to the next instruction. Only ERESTART should return to the same instruction. Differences to sparc64 reduced.
Test t_ptrace_wait:syscall
Adjust pc/npc before syscall allowing EJUSTRETURN to return to the next instruction. Only ERESTART should return to the same instruction. Differences to sparc64 reduced.
Test t_ptrace_wait:syscallemu1 now passes on sparc.
Fixes PR kern/52166 "syscallemu does not work on sparc (32-bit)"
Ok: Martin Husemann
show more ...
|
#
9e6996a2 |
| 06-Apr-2019 |
kamil <kamil@NetBSD.org> |
Centralized shared part of child_return() into MI part
Add a new function md_child_return() for MD specific bits only.
New child_return() is now part of MI and central code that handles uniformly t
Centralized shared part of child_return() into MI part
Add a new function md_child_return() for MD specific bits only.
New child_return() is now part of MI and central code that handles uniformly tracing code (KTR and ptrace(2)).
Synchronize value passed to ktrsysret() among ports to SYS_fork. This is a traditional value and accessing p_lflag to check for PL_PPWAIT shall use locking against proc_lock. Returning SYS_fork vs SYS_vfork still isn't correct enough as there are more entry points to forking code. Instead of making it too good, just settle with plain SYS_fork for all ports.
show more ...
|
#
8ef3f099 |
| 03-Apr-2019 |
kamil <kamil@NetBSD.org> |
Rework the fork(2)/vfork(2) event signalling under ptrace(2)
Remove the constraint of SIGTRAP event being maskable by a tracee.
Now all SIGTRAP TRAP_CHLD events are delivered to debugger.
This cod
Rework the fork(2)/vfork(2) event signalling under ptrace(2)
Remove the constraint of SIGTRAP event being maskable by a tracee.
Now all SIGTRAP TRAP_CHLD events are delivered to debugger.
This code touches MD specific logic and the child_return routine. It's an intermediate step with a room for refactoring in future and right now the least invasive approach. This allows to assert expected behavior in already existing ATF tests and make the code prettier in future keeping the same semantics. Probably there is a need for a MI wrapper of child_return for shared functionality between ports.
show more ...
|
#
b40c1335 |
| 04-Oct-2015 |
joerg <joerg@NetBSD.org> |
Unsigned values can not be negative.
|
#
facf216a |
| 26-Jun-2013 |
matt <matt@NetBSD.org> |
Use sy_invoke. Collapse syscall_fancy and syscall_plain into syscall. Use p_trace_enabled.
|
#
154d3024 |
| 19-Feb-2012 |
rmind <rmind@NetBSD.org> |
Remove COMPAT_SA / KERN_SA. Welcome to 6.99.3! Approved by core@.
|
#
a6da3b19 |
| 11-Feb-2012 |
martin <martin@NetBSD.org> |
Add a posix_spawn syscall, as discussed on tech-kern. Based on the summer of code project by Charles Zhang, heavily reworked later by me - all bugs are likely mine. Ok: core, releng.
|
#
d9913150 |
| 27-Mar-2011 |
martin <martin@NetBSD.org> |
On second thought do not use bit 13 as a flag for syscall numbers, userland typically sets those from a 13bit signed integer immediate field in the instruction, so would need to jump through hoops (o
On second thought do not use bit 13 as a flag for syscall numbers, userland typically sets those from a 13bit signed integer immediate field in the instruction, so would need to jump through hoops (ok, small hoops) to avoid sign extension. Use a combination of the existing syscall flags instead.
show more ...
|
#
17af1487 |
| 23-Mar-2011 |
martin <martin@NetBSD.org> |
Add a syscall variant passing the return address in %g5 (we need %g7 for pthread_self and %g2 is an application register, so we can not use those anymore).
|
#
ccde4787 |
| 20-Dec-2010 |
matt <matt@NetBSD.org> |
Move counting of faults, traps, intrs, soft[intr]s, syscalls, and nswtch from uvmexp to per-cpu cpu_data and move them to 64bits. Remove unneeded includes of <uvm/uvm_extern.h> and/or <uvm/uvm.h>.
|
#
7b00c620 |
| 25-Feb-2010 |
skrll <skrll@NetBSD.org> |
s/cpu_fork/cpu_lwp_fork/ in comment
|
#
d1b01a37 |
| 21-Oct-2008 |
ad <ad@NetBSD.org> |
Provide a small inline wrapper for sysent::sy_call() and use it to store the active syscall description in struct lwp. To be used at some future point to prevent unloading of modules that provide sys
Provide a small inline wrapper for sysent::sy_call() and use it to store the active syscall description in struct lwp. To be used at some future point to prevent unloading of modules that provide syscalls, while the syscalls are in use.
show more ...
|
#
fc7511b0 |
| 15-Oct-2008 |
wrstuden <wrstuden@NetBSD.org> |
Merge wrstuden-revivesa into HEAD.
|
#
f9e99b47 |
| 16-Jun-2008 |
ad <ad@NetBSD.org> |
PPWAIT is now in proc::p_lflag.
|
#
30abe394 |
| 24-Apr-2008 |
ad <ad@NetBSD.org> |
- Retire SYCALL_MPSAFE. With the exceptions of darwin and irix emulations, all system calls are now MPSAFE. - Remove unneeded acquire/release of kernel_lock.
|
#
c2a8c787 |
| 06-Feb-2008 |
dsl <dsl@NetBSD.org> |
Remove the 'args' parameter to 'trace_exit()' it is no longer used. Instead of passing the (un)real system call code and syscall table pointer, just pass the number of arguments - which is what ktrac
Remove the 'args' parameter to 'trace_exit()' it is no longer used. Instead of passing the (un)real system call code and syscall table pointer, just pass the number of arguments - which is what ktrace really wants. Ride forthcoming 4.99.53
show more ...
|
#
b8bcdbe9 |
| 05-Jan-2008 |
dsl <dsl@NetBSD.org> |
Don't pass 'curlwp' into trace_enter() and trace_exit().
|
#
d974db0a |
| 17-Oct-2007 |
garbled <garbled@NetBSD.org> |
Merge the ppcoea-renovation branch to HEAD.
This branch was a major cleanup and rototill of many of the various OEA cpu based PPC ports that focused on sharing as much code as possible between the v
Merge the ppcoea-renovation branch to HEAD.
This branch was a major cleanup and rototill of many of the various OEA cpu based PPC ports that focused on sharing as much code as possible between the various ports to eliminate near-identical copies of files in every tree. Additionally there is a new PIC system that unifies the interface to interrupt code for all different OEA ppc arches. The work for this branch was done by a variety of people, too long to list here.
TODO: bebox still needs work to complete the transition to -renovation. ofppc still needs a bunch of work, which I will be looking at. ev64260 still needs to be renovated amigappc was not attempted.
NOTES: pmppc was removed as an arch, and moved to a evbppc target.
show more ...
|
#
63c45061 |
| 15-Aug-2007 |
ad <ad@NetBSD.org> |
Changes to make ktrace LKM friendly and reduce ifdef KTRACE. Proposed on tech-kern.
|
#
b07ec3fc |
| 09-Feb-2007 |
ad <ad@NetBSD.org> |
Merge newlock2 to head.
|
#
2b79369c |
| 19-Jul-2006 |
ad <ad@NetBSD.org> |
- Hold a reference to the process credentials in each struct lwp. - Update the reference on syscall and user trap if p_cred has changed. - Collect accounting flags in the LWP, and collate on LWP exit.
|
#
e61efdcd |
| 29-Jun-2006 |
martin <martin@NetBSD.org> |
Style nits from Christos.
|
#
e7c025db |
| 29-Jun-2006 |
martin <martin@NetBSD.org> |
The arguments to syscalls (struct args) need 64 bit alignment for some syscalls (like mmap), and the same is true for return values (lseek). Make both structs a union to force alignment. Thanks to uw
The arguments to syscalls (struct args) need 64 bit alignment for some syscalls (like mmap), and the same is true for return values (lseek). Make both structs a union to force alignment. Thanks to uwe for helping analyze this! While there move the non syscall-related functions out of this file (back to trap.c).
This makes kernels compiled with gcc4 and -Os work.
show more ...
|
#
61dd49d3 |
| 07-Mar-2006 |
thorpej <thorpej@NetBSD.org> |
Syscall debug tracing is handled by trace_enter() / trace_exit(). Change trace_is_enabled() to return TRUE if SYSCALL_DEBUG is defined, and g/c all of the SYSCALL_DEBUG handling from individual syst
Syscall debug tracing is handled by trace_enter() / trace_exit(). Change trace_is_enabled() to return TRUE if SYSCALL_DEBUG is defined, and g/c all of the SYSCALL_DEBUG handling from individual system call dispatch routines.
show more ...
|
#
be8b2353 |
| 07-Mar-2006 |
thorpej <thorpej@NetBSD.org> |
Clean up fallout proc_is_traced_p() change: - proc_is_traced_p() -> trace_is_enabled(), to match trace_enter() and trace_exit(). - trace_is_enabled() becomes a real function. - Remove unnecessary i
Clean up fallout proc_is_traced_p() change: - proc_is_traced_p() -> trace_is_enabled(), to match trace_enter() and trace_exit(). - trace_is_enabled() becomes a real function. - Remove unnecessary include files from various files that used to care about KTRACE and SYSTRACE, but do no more.
show more ...
|