summaryrefslogtreecommitdiffstats
path: root/usr.bin/ktrace/ktrace.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-2/+3
| | | | | | | | | possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
* when ktrace() return ESRCH, the error is regarding the pid, not the pathnamederaadt2014-05-241-3/+9
| | | | ok miod
* add -t to usage() for ltrace;jmc2014-04-071-3/+3
|
* Add the -t ktrace(1) option to ltrace(1), so that you can trigger bothmiod2014-04-041-2/+9
| | | | | | | library function call trace and other kernel events trace at the same time. Suggested by kurt@ a long time ago, I have been sitting on this diff for no good reason.
* fix spacing in usage()sobrado2013-11-061-2/+2
|
* typo in usage, comand/command; Arto Jonssonsthen2013-06-051-2/+2
|
* Introduce ltrace(1). This tool works with ld.so to inject utrace record formiod2013-06-011-47/+89
| | | | | | | | | | | | | | | | | each plt call, allowing to trace a binary linked against shared library at the public function call level. To do so, ltrace(1) sets up some environment variables to enable plt tracing in ld.so, and invokes ktrace(2) for utrace events. ld.so will force lazy binding and will send an utrace record in the plt resolver, without updating the plt. Minimal filtering capabilities are provided, inspired by Solaris' truss -u, to limit tracing to libraries and/or symbol names. Non-traced libraries and symbols will have the regular resolver processing, with the expected plt update. "Get it in" deraadt
* add -B to usage();jmc2012-07-121-2/+2
|
* Add -B option to pass down LD_BIND_NOW to suppress ld.so blatherguenther2012-07-121-2/+5
| | | | ok pirofti@ deraadt@
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-14/+1
| | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
* matthew haub pointed out that pid may be used uninitialized in some contextstedu2009-02-231-3/+3
| | | | ok deraadt
* let synopsis, options description, and usage() agree;jmc2007-03-031-3/+4
| | | | from Igor Sobrado, tweaked by myself
* Userland programs should include <errno.h> not <sys/errno.h>millert2005-12-211-3/+3
| | | | OK deraadt@
* ARGSUSED before signal handler with unused signoderaadt2004-09-141-2/+3
|
* mostly ansi cleanup; pval okderaadt2003-06-101-10/+6
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-031-7/+3
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* improve docs; raj@cerias.purdue.eduderaadt2003-02-191-5/+5
|
* bring in prototypesderaadt2002-03-251-2/+3
|
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-5/+5
|
* get rid of signal racederaadt2001-11-141-4/+7
|
* Add lots of missing prototypes, constify a few things. Add explicit ints.espie2001-08-181-9/+11
| | | | Makes gcc much happier, less warnings.
* first pass at a -Wall cleanupderaadt2001-07-121-3/+7
|
* warnx?/errx? paranoia (use "%s" not a bare string unless it is amillert2000-06-301-7/+7
| | | | | | | | | constant). These are not security holes but it is worth fixing them anyway both for robustness and so folks looking for examples in the tree are not misled into doing something potentially dangerous. Furthermore, it is a bad idea to assume that pathnames will not include '%' in them and that error routines don't return strings with '%' in them (especially in light of the possibility of locales).
* More <sys/file.h> vs. <fcntl.h> and open() flags fixes.millert1999-08-171-3/+3
|
* fix usage; nathanw@MIT.EDUderaadt1998-04-251-3/+3
|
* Someone forgot to declare the "sb" variable...angelos1997-06-191-2/+3
|
* unlink ktrace file more carefully; wosch/joergderaadt1997-06-181-8/+18
|
* getopt(3) returns -1 when out of args, not EOF, whee!millert1997-01-151-3/+3
|
* gen ktrace.out with restrictive umask; from joerg@freebsd.orgderaadt1996-09-211-2/+5
|
* rcsidderaadt1996-06-261-1/+2
|
* initial import of NetBSD treederaadt1995-10-181-0/+187