summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_syscall.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix build on ARM (and probably other platforms)gonzo2012-12-281-2/+2
|
* - Add new machine parsable KTR macros for timing events.jeff2012-12-191-10/+8
| | | | | | | - Use this new format to automatically handle syscalls and VOPs. This changes the earlier format but is still human readable. Sponsored by: EMC / Isilon Storage Division
* Move the checks for td_pinned, td_critnest, TDP_NOFAULTING andattilio2012-09-081-21/+0
| | | | | | | | | | TDP_NOSLEEPING leaking from syscallret() to userret() so that also trap handling is covered. Also, the check on td_locks is not duplicated between the two functions. Reported by: avg Reviewed by: kib MFC after: 1 week
* Assert that system calls do not leak a pinned thread (via sched_pin()) tojhb2012-08-221-0/+3
| | | | userland.
* Assert that TDP_NOFAULTING and TDP_NOSPEEPING thread flags do not leakkib2012-05-301-0/+6
| | | | | | | when thread returns from a syscall to usermode. Tested by: pho MFC after: 1 week
* Add thread-private flag to indicate that error value is already placedkib2012-04-121-3/+7
| | | | | | | | | | | | in td_errno. Flag is supposed to be used by syscalls returning EJUSTRETURN because errno was already placed into the usermode frame by a call to set_syscall_retval(9). Both ktrace and dtrace get errno value from td_errno if the flag is set. Use the flag to fix sigsuspend(2) error return ktrace records. Requested by: bde MFC after: 1 week
* Currently, the debugger attached to the process executing vfork() doeskib2012-02-271-1/+20
| | | | | | | | | | not get syscall exit notification until the child performed exec of exit. Swap the order of doing ptracestop() and waiting for P_PPWAIT clearing, by postponing the wait into syscallret after ptracestop() notification is done. Reported, tested and reviewed by: Dmitry Mikulin <dmitrym juniper net> MFC after: 2 weeks
* The PTRACESTOP() macro is used only once. Inline the only use and removekib2012-02-111-1/+5
| | | | | | the macro. MFC after: 1 week
* A debugger which requested PT_FOLLOW_FORK should get the notificationkib2012-01-301-1/+2
| | | | | | | | | about new child not only when doing PT_TO_SCX, but also for PT_CONTINUE. If TDB_FORK flag is set, always issue a stop, the same as is done for TDB_EXEC. Reported by: Dmitry Mikulin <dmitrym juniper net> MFC after: 1 week
* Revert rev. 226893: subr_syscall.c is being included from C files andmarcel2011-10-301-9/+0
| | | | | on amd64 with FREEBSD32 enabled, this means that systrace_probe_func gets defined twice.
* Define systrace_probe_func in subr_syscall.c where it's used, insteadmarcel2011-10-291-0/+9
| | | | of defining it in MD code. This eliminates porting to other architectures.
* Do not deliver SIGTRAP on exec as the normal signal, use ptracestop() onkib2011-09-271-1/+9
| | | | | | | | | | syscall exit path. Otherwise, if SIGTRAP is ignored, that tdsendsignal() do not want to deliver the signal, and debugger never get a notification of exec. Found and tested by: Anton Yuzhaninov <citrin citrin ru> Discussed with: jhb MFC after: 2 weeks
* Inline the syscallenter() and syscallret(). This reduces the time measuredkib2011-09-111-0/+213
by the syscall entry speed microbenchmarks by ~10% on amd64. Submitted by: jhb Approved by: re (bz) MFC after: 2 weeks
OpenPOWER on IntegriCloud