Commit Graph

121 Commits

Author SHA1 Message Date
uwe da0afac854 ktrace(1): tweak -c wording for clarity 2023-05-06 10:45:14 +00:00
gutteridge 42d743eb34 ktrace.1: correct historical reference and minor grammar tweak 2022-09-02 03:43:53 +00:00
wiz a1209b298d Sort options.
Prompted by pgoyette.
2020-11-18 20:00:15 +00:00
christos 4ea9b97786 Add the ability to:
1. list all ioctls (-l)
2. print the internal definition symbolically
3. search by name

$ ioctlprint -f "%n %E %e\n" TIOCGETA
TIOCGETA _IOR('t', 19, struct termios) _IOR('t',0x13,0x2c)
2020-04-02 17:41:33 +00:00
sevan 1374c74081 tense 2020-03-29 17:50:23 +00:00
sevan 76f7101b9e Document ktrace history 2020-03-29 17:48:18 +00:00
riastradh 3299a48014 Omit no longer existing l, m from default trace points. 2015-01-08 22:03:42 +00:00
christos 4cde7eb37e use O_CLOEXEC. 2013-01-24 17:47:58 +00:00
joerg 6818646ac8 Use __dead 2011-09-16 15:39:25 +00:00
wiz 518b4753cf Bump date for previous. 2011-06-01 22:17:43 +00:00
alnsn a739efc5b5 kern/42030 - tracking of file descriptors by ktrace/kdump 2011-06-01 21:24:59 +00:00
joerg 5e6a27ebbb Remove Mach specific trace points. 2011-04-27 00:00:46 +00:00
yamt 5ec575268f update usage 2011-02-05 15:22:17 +00:00
lukem c1ceae17f0 Enable WARNS=4 by default for usr.bin, except for:
awk  bdes  checknr  compile_et  error  gss  hxtool  kgetcred  kinit
	klist  ldd  less  lex  locale  login  m4  man  menuc  mk_cmds
	mklocale  msgc  openssl  rpcgen  rpcinfo  sdiff  spell  ssh
	string2key  telnet  tn3270  verify_krb5_conf  xlint
2009-04-14 22:15:16 +00:00
christos 50728e7823 merge christos-time_t 2009-01-11 02:57:17 +00:00
lukem 98e5374ccb Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
2008-07-21 14:19:20 +00:00
matt 2b18923184 siginfocodename returns const char *, not char *. 2008-02-16 07:19:23 +00:00
dsl 932f8298e3 Remove 'U' (was scheduler activations) from the list of default trace points. 2007-08-27 16:35:47 +00:00
wiz d8d952c242 Fix typo. 2007-03-02 20:45:45 +00:00
ad 487f0ed78f Remove ref to SA. 2007-02-27 12:42:00 +00:00
ad 401499f30e Sync with kernel changes introduced by merging the newlock2 branch. 2007-02-09 22:08:48 +00:00
drochner 628f1591c1 include <signal.h> where signal(3) is used 2007-02-08 21:36:58 +00:00
hubertf 48b31403c5 Remove duplicate #includes
From Slava Semushin <slava.semushin@gmail.com>, via private mail
2007-01-17 00:21:43 +00:00
wiz 1e1b91be4d Remove dot and end of SEE ALSO. 2007-01-08 07:22:42 +00:00
rillig cb42376f86 See also: ktrace(2). 2007-01-07 15:33:48 +00:00
wiz 6ff90ba3e6 Bump date for previous. 2006-09-24 07:18:40 +00:00
manu 8a1037a46b Add a -t+S flag to ktrace for tracing activity related to sysctl. MIB
names will be displayed, with data readen and written as well.
2006-09-23 22:01:04 +00:00
yamt 49cee5da7c #include a necessary header directly, rather than via user.h.
while i'm here, remove unnecessary #include.
2006-05-11 11:58:04 +00:00
skrll 633207bbf9 Add scheduler activations upcall data to the default list of trace
points.

OK'd by christos.
2006-02-07 06:39:47 +00:00
wiz 54282824e9 Sync usage with man page. 2005-12-12 22:42:34 +00:00
wiz c64e5a3705 Improve -v description slightly. 2005-12-12 22:38:28 +00:00
christos 74757293f7 add a trace facility for upcalls. 2005-12-11 19:29:27 +00:00
christos e297758924 Learn about ktrace v1 records. 2005-12-11 11:29:06 +00:00
christos 58fc70c4d6 WARNS=3 2005-07-16 22:00:01 +00:00
enami 686e03f5e7 - If fktrace(2) failed, just exit rather than waiting for trace output.
- Reduce #ifdef a bit.
2004-07-16 23:52:01 +00:00
enami 66820706e0 No need to pretty print the errno with err() or warn(). 2004-07-10 00:00:58 +00:00
wiz b25f3c1fec Drop trailing whitespace, and bump date for previous. 2004-06-24 15:59:13 +00:00
christos 1e77a9474a Fix a bug in ktruss and ktrace, where they would randomly stop tracing if
the write to the ktraced file descriptor (when they used fktrace internally)
would block. Fix by clearing the non-blocking bit in the file descriptor by
default, so that the writes will block. This has the side effect of stopping
the traced process. Add a flag to override (-n) this behavior and have the
trace stop without blocking the traced process (the previous behavior).
Fix lint, add checks to failed syscalls, ansify.
2004-06-24 15:50:50 +00:00
enami a612fb0b9d Replace rest of exit status `1' with EXIT_FAILURE. 2004-02-28 02:42:45 +00:00
enami 698c01aba0 Fix usage:
- ktrace(1) takes -s.
- ktruss(1) takes -l.
- -C/-c and commands are exclusive.
- make output fits 80 column.
2004-02-28 02:22:31 +00:00
enami 8a1309b72f - Make ktruss(1) works as expected when -c or -C is specified.
- Include pid or file descriptor in error message when
  ktrace(2)/fktrace(2) failed.
- Remove unnecessary cast.
2004-02-28 01:43:07 +00:00
enami 4d34b523bc Fix whitespace usage. 2004-02-28 01:37:56 +00:00
jmmv b635f565e7 Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.
2004-01-05 23:23:32 +00:00
wiz c4f3c3c55c Bump date for previous (hi manu!). 2003-11-24 18:00:49 +00:00
manu 23f30b17cb Enable tracing of out of line data sent with Mach messages 2003-11-24 16:53:38 +00:00
christos 309234359e declaration for siginfo code number to name converter function. 2003-09-19 22:49:29 +00:00
agc 89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
wiz 52c00b06b5 Sort translation options list. 2003-07-24 18:21:31 +00:00
dsl fde07830ad Grok KTR_EXEC_ENV and KTR_EXEC_ARG.
Make ktrace -c default to removing all trace points (not just the default ones).
Make kdump default to dumping everything in the trace file.
Add 'A' (all) and '-' (remove following) to valid -t arguments.
Dump data block of UNKNOWN trace points in hex + ascii.
Make first time output with -R 0 (instead of time since epoch).
Use svis() instead of vis() to get " escaped (as \") (needs fixed libc)
Correctly pass unsigned values to svis()
Update man pages.
2003-07-17 09:05:11 +00:00
wiz 36e4d83a5e Grammar and mdoc fixes. Bump date for last two. 2003-05-06 08:22:08 +00:00