Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | add -T option to make time related system calls more prominent. | 2020-07-16 | 1 | -4/+7 | |
| | | | | ok deraadt | ||||
* | When system calls indicate an error they return -1, not some arbitrary | 2019-06-28 | 1 | -6/+6 | |
| | | | | | | value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future. | ||||
* | set tracefile to null when clearing points. | 2019-01-06 | 1 | -1/+2 | |
| | | | | ok kn | ||||
* | usr/bin/ktrace: replace snprintf(3)/write(2) with dprintf(3) | 2017-06-11 | 1 | -5/+2 | |
| | | | | | | Brought to attention by BlackFrog on #openbsd-daily OK deraadt@ | ||||
* | Add 'p' trace point for KTRFAC_PLEDGE, as noted by | 2016-07-18 | 1 | -3/+3 | |
| | | | | | | Michal Mazurek <akfaew@jasminek.net> While here, fix handling of -t+ in ltrace. | ||||
* | Convert many atoi() calls to strtonum(), adding range checks and failure | 2015-04-18 | 1 | -2/+9 | |
| | | | | | handling along the way. Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert | ||||
* | Replace <sys/param.h> with <limits.h> and other less dirty headers where | 2015-01-16 | 1 | -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 pathname | 2014-05-24 | 1 | -3/+9 | |
| | | | | ok miod | ||||
* | add -t to usage() for ltrace; | 2014-04-07 | 1 | -3/+3 | |
| | |||||
* | Add the -t ktrace(1) option to ltrace(1), so that you can trigger both | 2014-04-04 | 1 | -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() | 2013-11-06 | 1 | -2/+2 | |
| | |||||
* | typo in usage, comand/command; Arto Jonsson | 2013-06-05 | 1 | -2/+2 | |
| | |||||
* | Introduce ltrace(1). This tool works with ld.so to inject utrace record for | 2013-06-01 | 1 | -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(); | 2012-07-12 | 1 | -2/+2 | |
| | |||||
* | Add -B option to pass down LD_BIND_NOW to suppress ld.so blather | 2012-07-12 | 1 | -2/+5 | |
| | | | | ok pirofti@ deraadt@ | ||||
* | rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and | 2009-10-27 | 1 | -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 contexts | 2009-02-23 | 1 | -3/+3 | |
| | | | | ok deraadt | ||||
* | let synopsis, options description, and usage() agree; | 2007-03-03 | 1 | -3/+4 | |
| | | | | from Igor Sobrado, tweaked by myself | ||||
* | Userland programs should include <errno.h> not <sys/errno.h> | 2005-12-21 | 1 | -3/+3 | |
| | | | | OK deraadt@ | ||||
* | ARGSUSED before signal handler with unused signo | 2004-09-14 | 1 | -2/+3 | |
| | |||||
* | mostly ansi cleanup; pval ok | 2003-06-10 | 1 | -10/+6 | |
| | |||||
* | Remove the advertising clause in the UCB license which Berkeley | 2003-06-03 | 1 | -7/+3 | |
| | | | | rescinded 22 July 1999. Proofed by myself and Theo. | ||||
* | improve docs; raj@cerias.purdue.edu | 2003-02-19 | 1 | -5/+5 | |
| | |||||
* | bring in prototypes | 2002-03-25 | 1 | -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. | 2002-02-16 | 1 | -5/+5 | |
| | |||||
* | get rid of signal race | 2001-11-14 | 1 | -4/+7 | |
| | |||||
* | Add lots of missing prototypes, constify a few things. Add explicit ints. | 2001-08-18 | 1 | -9/+11 | |
| | | | | Makes gcc much happier, less warnings. | ||||
* | first pass at a -Wall cleanup | 2001-07-12 | 1 | -3/+7 | |
| | |||||
* | warnx?/errx? paranoia (use "%s" not a bare string unless it is a | 2000-06-30 | 1 | -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. | 1999-08-17 | 1 | -3/+3 | |
| | |||||
* | fix usage; nathanw@MIT.EDU | 1998-04-25 | 1 | -3/+3 | |
| | |||||
* | Someone forgot to declare the "sb" variable... | 1997-06-19 | 1 | -2/+3 | |
| | |||||
* | unlink ktrace file more carefully; wosch/joerg | 1997-06-18 | 1 | -8/+18 | |
| | |||||
* | getopt(3) returns -1 when out of args, not EOF, whee! | 1997-01-15 | 1 | -3/+3 | |
| | |||||
* | gen ktrace.out with restrictive umask; from joerg@freebsd.org | 1996-09-21 | 1 | -2/+5 | |
| | |||||
* | rcsid | 1996-06-26 | 1 | -1/+2 | |
| | |||||
* | initial import of NetBSD tree | 1995-10-18 | 1 | -0/+187 | |