summaryrefslogtreecommitdiff
path: root/sys/kern/kern_synch.c
AgeCommit message (Expand)Author
2024-04-18Clear PCATCH for procs that have P_WEXIT set.Claudio Jeker
2024-03-30Prevent a recursion inside wakeup(9) when scheduler tracepoints are enabled.Martin Pieuchot
2023-09-13Revert commitid: yfAefyNWibUyjkU2, ESyyH5EKxtrXGkS6 and itscfpFvJLOj8mHB;Claudio Jeker
2023-09-08Change how ps_threads and p_thr_link are locked away from using SCHED_LOCK.Claudio Jeker
2023-08-16Move SCHED_LOCK after sleep_signal_check.Claudio Jeker
2023-08-14Extend scheduler tracepoints to follow CPU jumping.Martin Pieuchot
2023-08-10Add some KASSERT on the proc p_stat in sleep_finish()Claudio Jeker
2023-07-14struct sleep_state is no longer used, remove it.Claudio Jeker
2023-07-11Rework sleep_setup()/sleep_finish() to no longer hold the scheduler lockClaudio Jeker
2023-06-28First step at removing struct sleep_state.Claudio Jeker
2023-06-01Change wakeup_proc() to no longer grab the SCHED_LOCK() instead it mustClaudio Jeker
2023-02-15Relax kernel lock assertion within tsleep(9). The `nowake' channel isVitaliy Makkoveev
2022-08-14remove unneeded includes in sys/kernJonathan Gray
2022-06-28Use btrace(8) to debug reference counting. dt(4) provides a staticAlexander Bluhm
2022-06-12Allow sleeping while clearing a sleep timeoutVisa Hankala
2022-05-13Use the process ps_mtx to protect the process sigacts structure.Claudio Jeker
2022-04-30Enforce proper memory ordering in refcnt_rele() and refcnt_finalize()Visa Hankala
2022-03-18Cleanup reference counting. Remove #ifdef DIAGNOSTIC to keep theAlexander Bluhm
2022-03-16Add refcnt_shared() and refcnt_read()Visa Hankala
2022-03-10Use atomic load and store functions to access refcnt and waitAlexander Bluhm
2022-02-19tsleep() prints a stack trace when cold==2. The suspend/resume code hasTheo de Raadt
2022-02-14Introduce a signal context that is used to pass signal related informationClaudio Jeker
2021-10-07Remove the assertion that `curproc' must be SONPROC if found on the sleepqueue.Martin Pieuchot
2021-09-09Add THREAD_PID_OFFSET to tracepoint arguments that pass a TID to userland.Martin Pieuchot
2021-09-09Move a check to avoid panicing on contended rwlock(9) outside of DIAGNOSTIC.Martin Pieuchot
2021-03-04Merge issignal() and CURSIG() in preparation for turning it mp-safe.Martin Pieuchot
2021-02-08Revert the convertion of per-process thread into a SMR_TAILQ.Martin Pieuchot
2021-02-08Simplify sleep_setup API to two operations in preparation for splittingMartin Pieuchot
2021-01-11Simplify sleep signal handling a bit by introducing sleep_signal_check().Claudio Jeker
2020-12-24tsleep(9): add global "nowake" channel for threads avoiding wakeup(9)cheloha
2020-12-07Convert the per-process thread list into a SMR_TAILQ.Martin Pieuchot
2020-10-23sleep_setup_timeout(): always KASSERT that P_TIMEOUT is unsetcheloha
2020-04-06Fix single thread behaviour in sleep_setup_signal(). If a thread needs toClaudio Jeker
2020-03-31Move sleep_finish_all() down to where sleep_finish() and all otherClaudio Jeker
2020-03-26Revert Rev 1.164. Setting sls_sig to 0 uncovered a bunch of issues when itClaudio Jeker
2020-03-23Prevent tsleep(9) with PCATCH from returning immediately without errorVisa Hankala
2020-03-20__thrsleep(2): ensure timeout is set when calling tsleep_nsec(9)cheloha
2020-03-20__thrsleep(2): fix absolute timeout checkcheloha
2020-03-13Initialize sls_sig to 0 and not 1. sls_sig stores the signal number of aClaudio Jeker
2020-03-02msleep() and rwsleep() allow to release the lock when going toAlexander Bluhm
2020-01-30Split `p_priority' into `p_runpri' and `p_slppri'.Martin Pieuchot
2020-01-24*sleep_nsec(9): log process name and pid when nsecs == 0cheloha
2020-01-21Import dt(4) a driver and framework for Dynamic Profiling.Martin Pieuchot
2020-01-21Make __thrsleep(2) and __thrwakeup(2) MP-safeVisa Hankala
2020-01-16Introduce wakeup_proc() a function to un-SSTOP/SSLEEP a thread.Martin Pieuchot
2020-01-14Introduce TIMESPEC_TO_NSEC() and use it to convert userland facingMartin Pieuchot
2020-01-12*sleep_nsec(9): sleep *at least* the given number of nanosecondscheloha
2019-11-30Move kernel locking inside the sleep machinery. This enables callingVisa Hankala
2019-11-12Check sleep timeout state only if the sleep has a timeout. Otherwise,Visa Hankala
2019-10-15Reduce the number of places where `p_priority' and `p_stat' are set.Martin Pieuchot