summaryrefslogtreecommitdiffstats
path: root/usr.bin/ktrace/subr.c
Commit message (Collapse)AuthorAgeFilesLines
* Add new ktrace records for the start and end of VM faults. This givesjhb2012-04-051-0/+3
| | | | | | | | | | a pair of records similar to syscall entry and return that a user can use to determine how long page faults take. The new ktrace records are enabled via the 'p' trace type, and are enabled in the default set of trace points. Reviewed by: kib MFC after: 2 weeks
* Add a new trace point, KTRFAC_CAPFAIL, which traces capability checkdes2011-10-111-2/+5
| | | | failures. It is included in the default set for ktrace(1) and kdump(1).
* Remove the advertising clause from UCB copyrighted files in usr.bin. Thisjoel2010-12-111-4/+0
| | | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson
* Revert most part of 200420 as requested, as more review and polish isdelphij2009-12-131-0/+2
| | | | needed.
* Remove unneeded header includes from usr.bin/ except contributed code.delphij2009-12-111-2/+0
| | | | Tested with: make universe
* Add a new type of KTRACE record for sysctl(3) invocations. It uses thejhb2009-03-111-0/+3
| | | | | | | | internal sysctl_sysctl_name() handler to map the MIB array to a string name and logs this name in the trace log. This can be useful to see exactly which sysctls a thread is invoking. MFC after: 1 month
* This patch adds a new ktrace(2) record type, KTR_STRUCT, whose payloaddes2008-02-231-0/+3
| | | | | | | | | | | | | | | | | | | | | | | consists of the null-terminated name and the contents of any structure you wish to record. A new ktrstruct() function constructs and emits a KTR_STRUCT record. It is accompanied by convenience macros for struct stat and struct sockaddr. In kdump(1), KTR_STRUCT records are handled by a dispatcher function that runs stringent sanity checks on its contents before handing it over to individual decoding funtions for each type of structure. Currently supported structures are struct stat and struct sockaddr for the AF_INET, AF_INET6 and AF_UNIX families; support for AF_APPLETALK and AF_IPX is present but disabled, as I am unable to test it properly. Since 's' was already taken, the letter 't' is used by ktrace(1) to enable KTR_STRUCT trace points, and in kdump(1) to enable their decoding. Derived from patches by Andrew Li <andrew2.li@citi.com>. PR: kern/117836 MFC after: 3 weeks
* Don't include sys/user.h merely for its side-effect of recursivelydas2004-11-271-1/+1
| | | | including other headers.
* Do not start err(3) strings with uppercase nor dot terminate them.charnier2003-02-051-4/+2
| | | | Standard sccsid[] area according to style(9).
* Consistently use FBSDIDobrien2002-06-301-0/+2
|
* Warnings fix; ANSIfy, constify, mark unused function parameter(s).markm2002-04-281-8/+4
|
* 1) Clean up vendor and ID strings.dwmalone2002-04-011-2/+11
| | | | | | | 2) include stdlib.h for atoi. 3) staticise and constify. 4) add some missing prototypes. 5) add some parens to keep gcc happy.
* Compensate for "Compensate for header dethreading" by backing it out.bde2001-10-101-1/+0
|
* Compensate for header dethreading.markm2001-05-011-0/+1
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | 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.
* The userland change to the utrace(2) call.phk1996-09-191-1/+4
|
* Merged in 4.4Lite2 versions, added $Id$'s. The ktrace changes shouldjraynard1996-06-191-0/+6
| | | | fix the garbage error messages printed out under certain circumstances.
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+107
OpenPOWER on IntegriCloud