summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_ktrace.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Support sending struct info to kdump. So far for struct stat andotto2011-07-081-1/+25
| | | | struct sockaddress; mostly from freebsd. ok deraadt@ tedu@ nicm@
* There is a bunch of places in the kernel entry points where we don'tart2011-07-071-1/+6
| | | | | | | | | | | hold the kernel lock, but still need call one function that needs it. Instead of grabbing the lock all over the place, move the locks into the affected functions: trapsignal, scdebug*, ktrsyscall, ktrsysret, systrace_redirect and ADDUPROF. In the cases we already hold the biglock we'll just recurse. kettenis@, beck@ ok
* We will ignore retval2; it is not an issuederaadt2011-06-021-2/+2
|
* Move P_SUGID and P_SUGIDEXEC from struct proc to struct process, soguenther2011-04-021-2/+2
| | | | | | that you can't evade the checks by doing the dirty work in an rthread ok blambert@, deraadt@
* Correct the links between threads, processes, pgrps, and sessions,guenther2010-07-261-18/+25
| | | | | | | | | so that the process-level stuff is to/from struct process and not struct proc. This fixes a bunch of problem cases in rthreads. Based on earlier work by blambert and myself, but mostly written at c2k10. Tested by many: deraadt, sthen, krw, ray, and in snapshots
* Use suser when possible. Suggested by miod@.fgsch2009-10-311-2/+2
| | | | miod@ deraadt@ ok.
* Remove the VREF() macro and replaces all instances with a call to verf(),thib2009-07-091-2/+2
| | | | | | | | | | | which is exactly what the macro does. Macro's that are nothing more then: #define FUNCTION(arg) function(arg) are almost always pointless and should go away. OK blambert@ Agreed by many.
* Grab a reference to the trace vnode of the process when traversing thepedro2008-11-011-6/+8
| | | | | | global process list and calling ktrsettracevnode() in ktrwrite(), so that we don't sleep in vrele(). Discussed with deraadt@, okay beck@, tedu@ and thib@.
* accidental commit ... backoutderaadt2008-10-311-29/+22
|
* kern_sysctl.cderaadt2008-10-311-22/+29
|
* Use LIST_FOREACH() instead of handrolling.thib2008-05-221-3/+3
| | | | | From: Pierre Riteau pierre.riteau_att_gmail.com OK miod@
* The world of __HAVEs and __HAVE_NOTs is reducing. All architecturesart2007-05-161-5/+1
| | | | | | have cpu_info now, so kill the option. eyeballed by jsg@ and grange@
* properly check for native emulation binaries, so that the correct sysctlderaadt2006-11-141-4/+8
| | | | mib numbers are appended to the syscall record; broken by niklas in 1.39
* change ktr_len to size_t. put ktr_type after comm for better alignmenttedu2006-05-171-4/+4
| | | | ok deraadt
* When checking syscall numbers, qualify the test with the emulation as well.niklas2006-02-271-3/+4
| | | | fixes potential panics on emulated binaries. ok deraadt@
* ansi/deregister.jsg2005-11-281-56/+18
| | | | 'go for it' deraadt@
* Save process context in ktrwrite(), as it may be needed for lockingpedro2005-11-151-2/+2
| | | | | purposes by the file system specific write routine. Fixes PR 4612. Okay deraadt@.
* do not trust user input for sysctl. constrain arguments passed to ktracederaadt2005-09-101-6/+11
| | | | to CTL_MAXNAME; ok espie uwe
* for sysctl syscall pass the mib[] back to kdump to parse;mickey2005-06-021-1/+7
| | | | always print () on syscalls w/ void args even (deraadt version)
* Use list and queue macros where applicable to make the code easier to read;miod2004-12-261-6/+6
| | | | no change in compiler assembly output.
* debranch SMP, have funniklas2004-06-131-1/+2
|
* Merge in a piece of the SMP branch into HEAD.art2004-06-091-1/+5
| | | | | | | | | | | Introduce the cpu_info structure, p_cpu field in struct proc and global scheduling context and various changed code to deal with this. At the moment no architecture uses this stuff yet, but it will allow us slow and controlled migration to the new APIs. All new code is ifdef:ed out. ok deraadt@ niklas@
* match syscallargs comments with realityhenning2003-09-011-2/+2
| | | | | from Patrick Latifi <patrick.l@hermes.usherb.ca> ok jason@ tedu@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* do not permit ktrace on P_SUGID; millert okderaadt2002-06-271-2/+3
|
* Fix *documentation*: one arg of the ktrace(2) is pid_t not int, found whilempech2002-06-061-2/+2
| | | | | | have fun w/ pid_t cleanups. millert@ ok
* First round of __P removal in sysmillert2002-03-141-7/+7
|
* include a siginfo_t with ktrace PSIG information, so that kdump can printderaadt2002-02-221-3/+5
| | | | | | | fault addresses and other information. (a small bug exists: in some signal delivery cases, two PSIG records may be inserted, because postsig() is unaware a PSIG record has already been placed. but this small bug can stay since the siginfo_t information helps us find and fix other bugs)
* Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.miod2001-11-061-2/+2
| | | | (Look ma, I might have broken the tree)
* Appease gcc by not using void pointers in arithmetic operations; art@ okaaron2001-06-261-3/+3
|
* KNFderaadt2001-06-221-6/+6
|
* Change the ktrace interface functions from taking the trace vnode to taking theart2000-11-101-35/+28
| | | | traced proc. The vnode is in the proc and all functions need the proc.
* replace MALLOC/FREE w/ malloc/free for non-constant-sized memory allocations; art@ okmickey2000-09-271-5/+5
|
* ktrace(2) should not follow symbolic links; from FreeBSDmillert2000-04-291-2/+2
|
* do not declare and use a local variable which conflicts with a globalderaadt2000-04-211-10/+10
| | | | | variable which is used by a macro when VM is used instead of UVM. very cute, Art -- 10 points for artistic expression.
* Add a function "ktrsettracevnode", that changes the ktrace vnode for a processart2000-04-201-18/+28
| | | | | in a correct way. Use it in all places where the vnode was changed. (most of the earlier code was incorrect and had races).
* Unbreak genio (how could I commit that garbage?).art2000-04-191-11/+25
| | | | | Let ktrwrite return an error if the write failed so that we won't loop in genio writing to a full disk (or whatever other error happened).
* When logging genio, check if we need to yield in the same way as in uiomove.art2000-04-191-1/+7
|
* Don't abuse malloc to allocate small fixed-size structs that we can keep on the stack.art2000-04-191-52/+42
|
* If the user does a huge I/O split the genio logging into smaller chunksart2000-04-181-15/+22
| | | | to avoid allocating a huge buffer which could lead to kmem starvation.
* Random cleanup.art2000-04-061-25/+25
|
* Use LIST_ macros instead of internal field names to walk the allproc list.art2000-03-031-3/+3
|
* do not copyout uninitialized memory; arnej@math.ntnu.noderaadt1999-02-111-1/+2
|
* Integrated fix from NetBSD kern/5357.csapuntz1998-06-021-3/+2
|
* bad types; wileyc@sekiya.twics.co.jpderaadt1998-02-031-2/+2
|
* Fixed up a VOP_UNLOCK call so that it uses the correction proc *csapuntz1997-11-141-4/+3
|
* uninitialized variableniklas1997-11-111-2/+2
|
* Updates for VFS Lite 2 + soft update.csapuntz1997-11-061-4/+6
|
* back out vfs lite2 till after 2.2deraadt1997-10-061-6/+4
|
* VFS Lite2 Changescsapuntz1997-10-061-4/+6
|