summaryrefslogtreecommitdiff
path: root/usr.bin/ktrace
AgeCommit message (Collapse)Author
2015-10-25Fold "malloc" into "stdio" and -- recognizing that no program so far hasTheo de Raadt
used less than "stdio" -- include all the "self" operations. Instead of different defines, use regular PLEDGE_* in the "p_pledgenote" variable (which indicates the operation subtype a system call is performing). Many checks before easier to understand. p_pledgenote can often be passed directly to ktrace, so that kdump says: 15565 test CALL pledge(0xa9a3f804c51,0) 15565 test STRU pledge request="stdio" 15565 test RET pledge 0 15565 test CALL open(0xa9a3f804c57,0x2<O_RDWR>) 15565 test NAMI "/tmp/testfile" 15565 test PLDG open, "wpath", errno 1 Operation not permitted with help from semarie, ok guenther
2015-10-02Add ktracing of argv and envp to execve(2), with envp not traced by defaultPhilip Guenther
ok tedu@ deraadt@
2015-09-07put back an El macro, wrongly zapped in previous;Jason McIntyre
2015-09-07Delete ktracing of context switches: it's unused, and not particularly useful,Philip Guenther
and doing VOP_WRITE() from inside tsleep/msleep makes the locking too complicated, making it harder to move forward on MP changes. ok deraadt@ kettenis@
2015-04-18Convert many atoi() calls to strtonum(), adding range checks and failureTheo de Raadt
handling along the way. Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert
2015-03-13remove the first comma from constructs like ", and," and ", or,": you can useJason McIntyre
"and" and "or" to join sentence clauses, and you can use commas, but both hinders reading;
2015-01-19Make some $OpenBSD$ lines prettier/standardier by eliminatingKenneth R Westerback
superflous '*' after '/*' and adding blank after terminating '$'. Also eases parsing of the lines by simple awk scripts. Aesthetic approval from tedu@.
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
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)
2014-05-24when ktrace() return ESRCH, the error is regarding the pid, not the pathnameTheo de Raadt
ok miod
2014-04-07add -t to usage() for ltrace;Jason McIntyre
2014-04-04Add the -t ktrace(1) option to ltrace(1), so that you can trigger bothMiod Vallat
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.
2013-11-06fix spacing in usage()Igor Sobrado
2013-09-12remove some redundancy within a sentence, and describe "!" as anJason McIntyre
exclamation mark rather than a bang; From: Ross L Richardson
2013-06-05typo in usage, comand/command; Arto JonssonStuart Henderson
2013-06-02Pq -> Qq, as confirmed by miod;Jason McIntyre
2013-06-02tweak previous; ok miodJason McIntyre
2013-06-01Introduce ltrace(1). This tool works with ld.so to inject utrace record forMiod Vallat
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
2013-06-01Userland bits for utrace record handling; from otto@Miod Vallat
2012-07-12add -B to usage();Jason McIntyre
2012-07-12Add -B option to pass down LD_BIND_NOW to suppress ld.so blatherPhilip Guenthe
ok pirofti@ deraadt@
2011-07-08zap trailing whitespace;Jason McIntyre
2011-07-08Support sending struct info to kdump. So far for struct stat andOtto Moerbeek
struct sockaddress; mostly from freebsd. ok deraadt@ tedu@ nicm@
2011-06-25some improvements from Cl??ment B??sch; ok teduJason McIntyre
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
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
2009-02-23matthew haub pointed out that pid may be used uninitialized in some contextsTed Unangst
ok deraadt
2007-05-31convert to new .Dd format;Jason McIntyre
2007-04-01fix the description of -f; from Igor SobradoJason McIntyre
2007-03-03let synopsis, options description, and usage() agree;Jason McIntyre
from Igor Sobrado, tweaked by myself
2006-07-06do something sane to EXAMPLES;Jason McIntyre
2006-07-06Xr ktrace 2 , else some people might mistake we use ptrace() or sth elseAlexander von Gernler
ok mickey@ jmc@
2005-12-21Userland programs should include <errno.h> not <sys/errno.h>Todd C. Miller
OK deraadt@
2004-09-14ARGSUSED before signal handler with unused signoTheo de Raadt
2003-09-03- sync SYNOPSIS with usage()Jason McIntyre
- use -width and -offset for lists - some macro cleanup
2003-06-10mostly ansi cleanup; pval okTheo de Raadt
2003-06-10- section reorderJason McIntyre
- COMPATIBILITY merge - macro cleanup - kill whitespace at EOL - new sentence, new line ssh pages ok markus@
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-02-19improve docs; raj@cerias.purdue.eduTheo de Raadt
2002-03-25bring in prototypesTheo de Raadt
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-11-14get rid of signal raceTheo de Raadt
2001-08-18Add lots of missing prototypes, constify a few things. Add explicit ints.Marc Espie
Makes gcc much happier, less warnings.
2001-07-12first pass at a -Wall cleanupTheo de Raadt
2000-11-09Change all option list specifications to ".Bl -tag -width Ds". Most manAaron Campbell
pages just needed their -width parameter tweaked to "Ds", which provides a nice width of 6 constant characters. For consistency more than anything.
2000-06-30warnx?/errx? paranoia (use "%s" not a bare string unless it is aTodd C. Miller
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).
2000-03-08Various cleanups and improvements.Aaron Campbell
2000-03-04Improve.Aaron Campbell
1999-08-17More <sys/file.h> vs. <fcntl.h> and open() flags fixes.Todd C. Miller
1999-06-05- remove trailing white spaceAaron Campbell
- remove arguments from .Os macros - remove arguments from .Nm macros, where appropriate - some more Dq/Sq/Ql insanity - still lots to do in the usr.bin tree... :/
1998-09-26usr.bin/ man page fixes, f-m.Aaron Campbell
1998-04-25fix usage; nathanw@MIT.EDUTheo de Raadt